Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies to support Ruby 3.2 #9

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.4.4-alpine
FROM ruby:3.2.2-alpine
RUN apk update -q
RUN apk add build-base

Expand Down
98 changes: 52 additions & 46 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,68 +2,74 @@ PATH
remote: .
specs:
apilayer (2.1.0)
faraday (~> 0.14)
faraday (~> 2.0)
json (>= 2.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
coderay (1.1.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
docile (1.3.1)
faraday (0.15.2)
multipart-post (>= 1.2, < 3)
hashdiff (0.3.7)
json (2.1.0)
method_source (0.9.0)
multipart-post (2.0.0)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
public_suffix (3.0.2)
rake (12.3.1)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
base64 (0.1.1)
coderay (1.1.3)
crack (0.4.5)
rexml
diff-lcs (1.5.0)
docile (1.4.0)
faraday (2.7.11)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
hashdiff (1.0.1)
json (2.6.3)
method_source (1.0.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
public_suffix (5.0.3)
rake (12.3.3)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
safe_yaml (1.0.4)
simplecov (0.16.1)
rspec-support (~> 3.12.0)
rspec-support (3.12.1)
ruby2_keywords (0.0.5)
simplecov (0.22.0)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
vcr (4.0.0)
webmock (3.4.1)
addressable (>= 2.3.6)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)
vcr (6.2.0)
webmock (3.19.1)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
apilayer!
bundler (~> 1.16)
pry (~> 0.11)
bundler (~> 2.0)
pry (~> 0.14)
rake (~> 12.1)
rspec (~> 3.7)
simplecov (~> 0.14)
vcr (~> 4.0)
webmock (~> 3.4)
rexml (~> 3.2)
rspec (~> 3.12)
simplecov (~> 0.22)
vcr (~> 6.0)
webmock (~> 3.19)

BUNDLED WITH
1.16.2
2.4.10
11 changes: 10 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Please see https://github.com/actfong/currency_layer and https://github.com/actf
*apilayer* provides a common-interface to configure and create connections to apilayer.net
See http://apilayer.com for more details.

=== Version 3.0
Upgraded dependencies to run against Ruby 3.0 and above.

=== Version 2.0
Removed all code related to currencylayer (Apilayer::Currency) and vatlayer (Apilayer::Vat).
Now act as a dependency to currency_layer and vat_layer gems.
Expand All @@ -33,7 +36,13 @@ ConnectionHelper contains all code related to configuring and creating connectio

Add apilayer in your <tt>Gemfile</tt>:

gem "apilayer"
For Ruby 3.0 and above

gem "apilayer", "~> 3.0"

For < Ruby 3.0

gem "apilayer", "~> 2.0"

Run the following in your console:

Expand Down
17 changes: 9 additions & 8 deletions apilayer.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'apilayer'
spec.version = '2.1.0'
spec.version = '3.0.0'
spec.authors = ["Alex Fong"]
spec.email = ["[email protected]"]
spec.files = Dir["lib/apilayer.rb",
Expand All @@ -17,12 +17,13 @@ Gem::Specification.new do |spec|
spec.licenses = %w(MIT)

spec.add_runtime_dependency 'json', '>= 2.0'
spec.add_runtime_dependency 'faraday', '~> 0.14'
spec.add_runtime_dependency 'faraday', '~> 2.0'
spec.add_development_dependency 'rake', '~> 12.1'
spec.add_development_dependency 'pry', '~> 0.11'
spec.add_development_dependency 'bundler', '~> 1.16'
spec.add_development_dependency 'rspec', '~> 3.7'
spec.add_development_dependency 'simplecov', '~> 0.14'
spec.add_development_dependency 'vcr', '~> 4.0'
spec.add_development_dependency 'webmock', '~> 3.4'
spec.add_development_dependency 'pry', '~> 0.14'
spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'rspec', '~> 3.12'
spec.add_development_dependency 'simplecov', '~> 0.22'
spec.add_development_dependency 'vcr', '~> 6.0'
spec.add_development_dependency 'webmock', '~> 3.19'
spec.add_development_dependency 'rexml', '~> 3.2'
end