Skip to content

Conversation

schmijos
Copy link
Contributor

@schmijos schmijos commented Aug 30, 2024

This adds two new Gemfiles and bumps minimal versions.

@@ -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')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an RSpec deprecation warning

@yukideluxe yukideluxe mentioned this pull request Jul 9, 2025
@yukideluxe
Copy link
Member

@schmijos would you mind rebasing your branch with main now that CI has been fixed? 🙏🏻 Thank you!

@schmijos schmijos force-pushed the add-rails-7_x-support branch 2 times, most recently from c10ed9b to b92db01 Compare July 11, 2025 09:38
@schmijos schmijos force-pushed the add-rails-7_x-support branch from b92db01 to 9c5a4bf Compare July 11, 2025 13:46
diff --git a/gemfiles/rails7.1.gemfile b/gemfiles/rails7.1.gemfile
new file mode 100644
index 0000000..3951f70
--- /dev/null
+++ b/gemfiles/rails7.1.gemfile
@@ -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: '../'
diff --git a/gemfiles/rails7.2.gemfile b/gemfiles/rails7.2.gemfile
new file mode 100644
index 0000000..7050731
--- /dev/null
+++ b/gemfiles/rails7.2.gemfile
@@ -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: '../'
@yukideluxe yukideluxe force-pushed the add-rails-7_x-support branch from 9c5a4bf to d917547 Compare July 11, 2025 16:02
Copy link
Member

@yukideluxe yukideluxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schmijos I just removed the Ruby 3.0 test and it's all green now 😊 Based on the discussion here we will just drop support for Ruby 3.0 since the new money-rails version will depend on the newest money version and that requires at least 3.1 ✌🏻

I might simplify a bit the new gemspecs you added based on the changes I've done [here (https://github.com//pull/719) but I am merging your PR as it is!

@yukideluxe yukideluxe merged commit 13fc125 into RubyMoney:main Jul 11, 2025
4 checks passed
@schmijos schmijos deleted the add-rails-7_x-support branch July 11, 2025 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants