Skip to content

Commit 5e3ed5a

Browse files
committed
Pull over other differences
1 parent 0767d73 commit 5e3ed5a

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

.yarnrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# yarn lockfile v1
33

44

5-
lastUpdateCheck 1761786460258
5+
lastUpdateCheck 1762373771610

Rakefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ begin
44
require "minitest/test_task"
55
require "rdoc/task"
66
require "rubocop/rake_task"
7-
rescue LoadError
8-
puts "You must run `bundle install` to run rake tasks"
7+
rescue LoadError => e
8+
puts "You must run `bundle install` to run rake tasks (#{e.message})"
99
end
1010

1111
RDoc::Task.new(:rdoc) do |rdoc|
@@ -17,7 +17,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
1717
end
1818

1919
Minitest::TestTask.create(:test) do |t|
20-
t.warning = false
20+
t.warning = true
2121
t.test_globs = ["test/**/*_test.rb"]
2222
end
2323

@@ -33,15 +33,17 @@ namespace :test do
3333
gemfiles = Dir.glob("gemfiles/*.gemfile").reject { |f| File.basename(f) == "common.gemfile" }
3434
gemfiles.each do |f|
3535
ENV["BUNDLE_GEMFILE"] = f
36+
system("bundle update --bundler")
3637
system("bundle check") || system("bundle install")
37-
system("bundle exec rake test")
38+
system("rake test")
3839
end
3940

4041
original_directory = Dir.pwd
4142
Dir.chdir("demo")
4243
ENV.delete("BUNDLE_GEMFILE")
44+
system("bundle update --bundler")
4345
system("bundle check") || system("bundle install")
44-
system("bundle exec rake test:all")
46+
system("rake test:all")
4547
ensure
4648
original_gemfile.nil? ? ENV.delete("BUNDLE_GEMFILE") : ENV["BUNDLE_GEMFILE"] = original_gemfile
4749
Dir.chdir(original_directory) unless original_directory.nil?

demo/Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ gem "sqlite3", ">= 2.1"
1414
gem "stimulus-rails"
1515
gem "thruster", require: false
1616
gem "turbo-rails"
17-
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]
17+
gem "tzinfo-data", platforms: %i[windows jruby]
1818

1919
group :development, :test do
2020
gem "brakeman", require: false
21-
gem "debug", platforms: %i[mri mingw x64_mingw]
21+
gem "debug", platforms: %i[mri windows]
2222
end
2323

2424
group :development do

demo/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,4 +310,4 @@ DEPENDENCIES
310310
web-console
311311

312312
BUNDLED WITH
313-
2.5.9
313+
2.7.2

gemfiles/common.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ end
2020
group :development, :test do
2121
gem "debug"
2222
gem "ostruct" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("3.5.0")
23+
gem "warning"
2324
end
2425

2526
group :ci do

lib/bootstrap_form/form_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def initialize(object_name, object, template, options)
6969

7070
def add_default_form_attributes_and_form_inline(options)
7171
options[:html] ||= {}
72-
options[:html].reverse_merge!(BootstrapForm.configuration.default_form_attributes)
72+
options[:html].reverse_merge!(BootstrapForm.config.default_form_attributes)
7373

7474
return unless options[:layout] == :inline
7575

test/test_helper.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
ENV["RAILS_ENV"] ||= "test"
22

3+
puts "BUNDLE_GEMFILE: #{ENV.fetch('BUNDLE_GEMFILE', nil)}" # rubocop/ignore Rails/Output
4+
5+
require "warning"
6+
mail_gem_path = Gem::Specification.find_by_name("mail").full_gem_path
7+
Warning.ignore(:not_reached, mail_gem_path)
8+
Warning.ignore(/warning: assigned but unused variable - testEof/, mail_gem_path)
9+
310
require "diffy"
411
require "nokogiri"
512
require "equivalent-xml"

0 commit comments

Comments
 (0)