Skip to content

Commit

Permalink
Allow Rails 7.0 + bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Kulk committed Nov 4, 2024
1 parent 567d5fc commit def2f07
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 7.1.4

* Allow Rails 7.0
* Wice::Columns#add_css_class does not update the value given
to the :class option of Wice::GridRenderer#column method.

## 7.1.3

* Fixes [the bug](https://github.com/leikind/wice_grid/issues/395).
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ GIT
PATH
remote: .
specs:
wice_grid (7.1.3)
wice_grid (7.1.4)
coffee-rails (>= 5.0.0)
jquery-rails
kaminari
rails (~> 7.1)
rails (~> 7.0)

GEM
remote: https://rubygems.org/
Expand Down
2 changes: 1 addition & 1 deletion lib/wice/columns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def add_css_class(klass_value) #:nodoc:
if html[:class].nil?
html[:class] = klass_value
else
html[:class] << ' ' unless html[:class].empty?
html[:class] += ' ' unless html[:class].empty?
html[:class] << klass_value
end
end
Expand Down
4 changes: 2 additions & 2 deletions wice_grid.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'wice_grid'
s.version = '7.1.3'
s.version = '7.1.4'
s.authors = ['Yuri Leikind, Dimitri Kulk, and contributors']
s.email = ['[email protected]']
s.homepage = 'https://github.com/leikind/wice_grid'
Expand All @@ -15,7 +15,7 @@ Gem::Specification.new do |s|
s.require_paths = ['lib']
s.date = `date +%Y-%m-%d`

s.add_dependency 'rails', '~> 7.1'
s.add_dependency 'rails', '~> 7.0'
s.add_dependency 'kaminari'
s.add_dependency 'coffee-rails', '>= 5.0.0'
s.add_dependency 'jquery-rails'
Expand Down

0 comments on commit def2f07

Please sign in to comment.