Skip to content

Commit

Permalink
Add support for Rails 7.1 and 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
schmijos committed Aug 30, 2024
1 parent df7a030 commit 4b74a53
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
17 changes: 17 additions & 0 deletions gemfiles/rails7.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
source 'https://rubygems.org'

gem 'rails', '~> 7.1.0'
gem 'sprockets-rails'
gem 'i18n', '~> 1.6'

platforms :jruby do
gem "activerecord-jdbc-adapter"
gem "activerecord-jdbcsqlite3-adapter"
gem "jruby-openssl"
end

platforms :ruby do
gem "sqlite3", "~> 1.4"
end

gemspec path: '../'
17 changes: 17 additions & 0 deletions gemfiles/rails7.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
source 'https://rubygems.org'

gem 'rails', '~> 7.2.0'
gem 'sprockets-rails'
gem 'i18n', '~> 1.6'

platforms :jruby do
gem "activerecord-jdbc-adapter"
gem "activerecord-jdbcsqlite3-adapter"
gem "jruby-openssl"
end

platforms :ruby do
gem "sqlite3", "~> 2.0"
end

gemspec path: '../'
6 changes: 3 additions & 3 deletions money-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Gem::Specification.new do |s|
s.add_dependency "railties", ">= 3.0"
s.add_dependency "mime-types", "< 3" if RUBY_VERSION < '2.0' # mime-types > 3 depends on mime-types-data, which doesn't support ruby 1.9

s.add_development_dependency "rails", ">= 3.0", "< 7.0"
s.add_development_dependency "rspec-rails", "~> 3.0"
s.add_development_dependency 'database_cleaner', '~> 1.6.1'
s.add_development_dependency "rails", ">= 3.0", "< 8"
s.add_development_dependency "rspec-rails", "~> 6.1.0"
s.add_development_dependency 'database_cleaner', '~> 2.0.2'
s.add_development_dependency 'test-unit', '~> 3.0' if RUBY_VERSION >= '2.2'
s.add_development_dependency 'bundler'

Expand Down
2 changes: 1 addition & 1 deletion spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

context "when passed an invalid value" do
it "should raise an ArgumentError" do
expect(lambda{MoneyRails.rounding_mode = "booyakasha"}).to raise_error(ArgumentError, 'booyakasha is not a valid rounding mode')
expect { MoneyRails.rounding_mode = "booyakasha" }.to raise_error(ArgumentError, 'booyakasha is not a valid rounding mode')
end
end
end
Expand Down

0 comments on commit 4b74a53

Please sign in to comment.