From 5c657f33900f5e4eb7934dcbbb51550eb4be4750 Mon Sep 17 00:00:00 2001 From: ViktoriaM Date: Wed, 25 Jan 2023 14:14:01 +0200 Subject: [PATCH] ruby -v 3.2.0 --- README.md | 2 +- lib/versacommerce/theme_api_client/fetcher.rb | 2 +- lib/versacommerce/theme_api_client/version.rb | 2 +- versacommerce-theme_api_client.gemspec | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 75ba242..23a3ec3 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Versacommerce::ThemeAPIClient is a library to consume the VersaCommerce Theme AP ## Requirements -Ruby ≥ 2.0.0 +Ruby ≥ 3.2.0 ## Installation diff --git a/lib/versacommerce/theme_api_client/fetcher.rb b/lib/versacommerce/theme_api_client/fetcher.rb index b7cc949..f0ba8be 100644 --- a/lib/versacommerce/theme_api_client/fetcher.rb +++ b/lib/versacommerce/theme_api_client/fetcher.rb @@ -84,7 +84,7 @@ def url_for_path(path) end def with_headers - HTTP.with_headers(accept: 'application/json', 'Theme-Authorization' => authorization) + HTTP.headers(accept: 'application/json', 'Theme-Authorization' => authorization) end end end diff --git a/lib/versacommerce/theme_api_client/version.rb b/lib/versacommerce/theme_api_client/version.rb index 08aa07e..ac6421b 100644 --- a/lib/versacommerce/theme_api_client/version.rb +++ b/lib/versacommerce/theme_api_client/version.rb @@ -1,5 +1,5 @@ module Versacommerce class ThemeAPIClient - VERSION = Gem::Version.new('0.1.3') + VERSION = Gem::Version.new('0.1.4') end end diff --git a/versacommerce-theme_api_client.gemspec b/versacommerce-theme_api_client.gemspec index df5b0d0..65ddb13 100644 --- a/versacommerce-theme_api_client.gemspec +++ b/versacommerce-theme_api_client.gemspec @@ -16,13 +16,14 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(/\Aexe/) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.required_ruby_version = '>= 2.0.0' + spec.required_ruby_version = '>= 3.2.0' spec.add_runtime_dependency 'http' + spec.add_runtime_dependency 'bigdecimal', '3.0.0' spec.add_runtime_dependency 'activesupport', '>= 4.2' spec.add_runtime_dependency 'activemodel', '>= 4.2' - spec.add_development_dependency 'bundler', '~> 1.8' + spec.add_development_dependency 'bundler', '~> 2.4' spec.add_development_dependency 'rake', '~> 10.4' spec.add_development_dependency 'pry', '0.10.1' spec.add_development_dependency 'pry-stack_explorer', '0.4.9.2'