File tree Expand file tree Collapse file tree 4 files changed +13
-4
lines changed
lib/bootstrap_form/inputs Expand file tree Collapse file tree 4 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 33
33
fail-fast : false
34
34
matrix :
35
35
ruby-version : [ '3.4', '3.3', '3.2', 'ruby-head' ]
36
- gemfile : [ '7.2', '7.1', 'edge' ]
36
+ gemfile : [ '8.0', ' 7.2', '7.1', 'edge' ]
37
37
env :
38
38
BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.gemfile
39
39
steps :
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ task default: %i[test rubocop:autocorrect]
32
32
namespace :test do
33
33
desc "Run tests for all supported Rails versions, with current Ruby version"
34
34
task :all do
35
- original_directory = Dir . pwd
36
35
original_gemfile = ENV [ "BUNDLE_GEMFILE" ]
37
36
gemfiles = Dir . glob ( "gemfiles/*.gemfile" ) . reject { |f | File . basename ( f ) == "common.gemfile" }
38
37
gemfiles . each do |f |
@@ -41,13 +40,14 @@ namespace :test do
41
40
system ( "bundle exec rake test" )
42
41
end
43
42
43
+ original_directory = Dir . pwd
44
44
Dir . chdir ( "demo" )
45
45
ENV . delete ( "BUNDLE_GEMFILE" )
46
46
system ( "bundle check" ) || system ( "bundle install" )
47
47
system ( "bundle exec rake test:all" )
48
48
49
49
ensure
50
50
original_gemfile . nil? ? ENV . delete ( "BUNDLE_GEMFILE" ) : ENV [ "BUNDLE_GEMFILE" ] = original_gemfile
51
- Dir . chdir ( original_directory )
51
+ Dir . chdir ( original_directory ) unless original_directory . nil?
52
52
end
53
53
end
Original file line number Diff line number Diff line change
1
+ gems = "#{__dir__}/common.gemfile"
2
+ eval File.read(gems), binding, gems # rubocop: disable Security/Eval
3
+
4
+ gem "bigdecimal" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0")
5
+ gem "drb" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0")
6
+ gem "mutex_m" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.4.0")
7
+ gem "rails", "~> 8.0.0"
8
+ gem "sprockets-rails", require: "sprockets/railtie"
9
+ gem "sqlite3"
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def check_box_value(name, value)
63
63
# label's `for` attribute needs to match checkbox tag's id,
64
64
# IE sanitized value, IE
65
65
# https://github.com/rails/rails/blob/5-0-stable/actionview/lib/action_view/helpers/tags/base.rb#L123-L125
66
- "#{ name } _#{ value . to_s . gsub ( /\s / , '_' ) . gsub ( /[^-[[:word:]]]/ , '' ) . mb_chars . downcase } "
66
+ "#{ name } _#{ value . to_s . gsub ( /\s / , '_' ) . gsub ( /[^-[[:word:]]]/ , '' ) . downcase } "
67
67
end
68
68
69
69
def check_box_classes ( name , options )
You can’t perform that action at this time.
0 commit comments