Skip to content

Commit

Permalink
Use matrix to test different ruby versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Agroang committed Jan 31, 2025
1 parent 4e896db commit 379856a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on: [push,pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.1
ruby-version: ${{ matrix.ruby-version }}
- name: Run the default task
run: |
bundle install
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ PATH
remote: .
specs:
omni_exchange (2.1.0)
bigdecimal (~> 3)
faraday (~> 2)
money (~> 6.13.1)
stringio (~> 3.1)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
bigdecimal (3.1.9)
coderay (1.1.3)
concurrent-ruby (1.3.5)
diff-lcs (1.5.0)
Expand Down Expand Up @@ -63,6 +66,7 @@ GEM
rubocop-ast (1.21.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
stringio (3.1.2)
unicode-display_width (1.8.0)
uri (1.0.2)
vcr (6.1.0)
Expand Down
4 changes: 2 additions & 2 deletions lib/omni_exchange.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'omni_exchange/provider'
# in order to make sure that all API data providers are registered correctly,
# all of the provider files in the providers folder must be required
# all of the provider files in the providers folder must be required
require 'omni_exchange/providers/open_exchange_rates'
require 'omni_exchange/providers/xe'
require 'omni_exchange/version'
Expand All @@ -11,7 +11,7 @@
require 'faraday'
require 'money'
require 'json'
require 'bigdecimal/util'
require 'bigdecimal'
require 'net/http'

# rubocop:disable Lint/Syntax
Expand Down
4 changes: 3 additions & 1 deletion omni_exchange.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = 'OmniExchange converts currencies using up-to-the-minute foreign exchange rates.'
spec.homepage = 'https://degica.com'
spec.license = 'MIT'
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0')

spec.metadata['allowed_push_host'] = 'https://rubygems.org'

Expand All @@ -29,6 +29,8 @@ Gem::Specification.new do |spec|

spec.add_dependency 'faraday', '~> 2'
spec.add_dependency 'money', '~> 6.13.1'
spec.add_dependency 'bigdecimal', '~> 3'
spec.add_dependency 'stringio', '~> 3.1'

spec.add_development_dependency 'dotenv'
spec.add_development_dependency 'pry'
Expand Down

0 comments on commit 379856a

Please sign in to comment.