Skip to content

Commit

Permalink
Merge pull request #1087 from tagliala/chore/1085-1086-bigdecimal-rub…
Browse files Browse the repository at this point in the history
…y-version

Require Ruby 3.1 and fix bigdecimal requirement
  • Loading branch information
semmons99 authored Mar 13, 2024
2 parents 2ef600a + 815b618 commit 3a45a68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
ruby-version: ['3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 3 additions & 2 deletions money.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ Gem::Specification.new do |s|
s.description = "A Ruby Library for dealing with money and currency conversion."
s.license = "MIT"


s.add_dependency "bigdecimal", "~> 3.1" if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('6.19.0')
s.add_dependency "bigdecimal"
s.add_dependency 'i18n', [">= 0.6.4", '<= 2']

s.add_development_dependency "bundler"
Expand All @@ -24,6 +23,8 @@ Gem::Specification.new do |s|
s.add_development_dependency "yard", "~> 0.9.11"
s.add_development_dependency "kramdown", "~> 2.3"

s.required_ruby_version = '>= 3.1'

s.files = `git ls-files -z -- config/* lib/* CHANGELOG.md LICENSE money.gemspec README.md`.split("\x0")
s.require_paths = ["lib"]

Expand Down

0 comments on commit 3a45a68

Please sign in to comment.