From 33387c2609aa847004998ea79643374736fffee7 Mon Sep 17 00:00:00 2001 From: Alex Tucker Date: Mon, 11 Nov 2024 18:08:08 +0000 Subject: [PATCH 1/4] Adds endpoint.template type. Bump to 1.3.0 --- Gemfile.lock | 2 +- lib/sapi_client/sapi_endpoint.rb | 3 ++- lib/sapi_client/version.rb | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 84bef53..0fcbb85 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - sapi-client-ruby (1.2.0) + sapi-client-ruby (1.3.0) faraday_middleware (~> 1.0.0) i18n (~> 1.5) diff --git a/lib/sapi_client/sapi_endpoint.rb b/lib/sapi_client/sapi_endpoint.rb index 70f6799..6b54a4f 100644 --- a/lib/sapi_client/sapi_endpoint.rb +++ b/lib/sapi_client/sapi_endpoint.rb @@ -12,9 +12,10 @@ class SapiEndpoint # rubocop:disable Metrics/ClassLength ENDPOINT_TYPE_ITEM = 'endpoint.item' ENDPOINT_TYPE_FORWARD = 'endpoint.forward' ENDPOINT_TYPE_HIERARCHY = 'endpoint.hierarchy' + ENDPOINT_TYPE_TEMPLATE = 'endpoint.template' ENDPOINT_TYPES = [ DEP_ENDPOINT_TYPE_LIST, DEP_ENDPOINT_TYPE_ITEM, DEP_ENDPOINT_TYPE_FORWARD, - ENDPOINT_TYPE_LIST, ENDPOINT_TYPE_ITEM, ENDPOINT_TYPE_FORWARD, ENDPOINT_TYPE_HIERARCHY + ENDPOINT_TYPE_LIST, ENDPOINT_TYPE_ITEM, ENDPOINT_TYPE_FORWARD, ENDPOINT_TYPE_HIERARCHY, ENDPOINT_TYPE_TEMPLATE ].freeze def initialize(base_url, specification, view_registry: ViewRegistry) diff --git a/lib/sapi_client/version.rb b/lib/sapi_client/version.rb index 2bb4d1a..b70d69a 100644 --- a/lib/sapi_client/version.rb +++ b/lib/sapi_client/version.rb @@ -2,7 +2,7 @@ module SapiClient MAJOR = 1 - MINOR = 2 + MINOR = 3 FIX = 0 VERSION = "#{MAJOR}.#{MINOR}.#{FIX}" end From 7c4ca6147ad759be39e2d27e169288bc9fdfee86 Mon Sep 17 00:00:00 2001 From: Alex Tucker Date: Mon, 11 Nov 2024 18:12:31 +0000 Subject: [PATCH 2/4] Fix lint --- lib/sapi_client/sapi_endpoint.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sapi_client/sapi_endpoint.rb b/lib/sapi_client/sapi_endpoint.rb index 6b54a4f..7d83bd3 100644 --- a/lib/sapi_client/sapi_endpoint.rb +++ b/lib/sapi_client/sapi_endpoint.rb @@ -15,7 +15,8 @@ class SapiEndpoint # rubocop:disable Metrics/ClassLength ENDPOINT_TYPE_TEMPLATE = 'endpoint.template' ENDPOINT_TYPES = [ DEP_ENDPOINT_TYPE_LIST, DEP_ENDPOINT_TYPE_ITEM, DEP_ENDPOINT_TYPE_FORWARD, - ENDPOINT_TYPE_LIST, ENDPOINT_TYPE_ITEM, ENDPOINT_TYPE_FORWARD, ENDPOINT_TYPE_HIERARCHY, ENDPOINT_TYPE_TEMPLATE + ENDPOINT_TYPE_LIST, ENDPOINT_TYPE_ITEM, ENDPOINT_TYPE_FORWARD, ENDPOINT_TYPE_HIERARCHY, + ENDPOINT_TYPE_TEMPLATE ].freeze def initialize(base_url, specification, view_registry: ViewRegistry) From fafaa54689fd747e7b4fba10a32741e5876be401 Mon Sep 17 00:00:00 2001 From: Alex Tucker Date: Wed, 8 Jan 2025 11:55:35 +0000 Subject: [PATCH 3/4] Mark as pre-release for testing. --- Gemfile.lock | 34 +++++++++++++++++----------------- lib/sapi_client/version.rb | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 0fcbb85..9a58f29 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - sapi-client-ruby (1.3.0) + sapi-client-ruby (1.3.0.pre.1) faraday_middleware (~> 1.0.0) i18n (~> 1.5) @@ -13,7 +13,7 @@ GEM builder (3.3.0) byebug (11.1.3) concurrent-ruby (1.3.4) - docile (1.4.0) + docile (1.4.1) faraday (1.10.4) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) @@ -30,8 +30,8 @@ GEM faraday-em_synchrony (1.0.0) faraday-excon (1.1.0) faraday-httpclient (1.0.1) - faraday-multipart (1.0.4) - multipart-post (~> 2) + faraday-multipart (1.1.0) + multipart-post (~> 2.0) faraday-net_http (1.0.2) faraday-net_http_persistent (1.2.0) faraday-patron (1.0.0) @@ -47,18 +47,19 @@ GEM builder minitest (>= 5.0) ruby-progressbar - mocha (2.4.5) + mocha (2.5.0) ruby2_keywords (>= 0.0.5) multipart-post (2.4.1) - parallel (1.21.0) - parser (3.1.1.0) + parallel (1.26.3) + parser (3.3.6.0) ast (~> 2.4.1) + racc + racc (1.8.1) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.2.1) - rexml (3.2.8) - strscan (>= 3.0.9) - rubocop (1.26.0) + regexp_parser (2.9.2) + rexml (3.3.9) + rubocop (1.26.1) parallel (~> 1.10) parser (>= 3.1.0.0) rainbow (>= 2.2.2, < 4.0) @@ -67,18 +68,17 @@ GEM rubocop-ast (>= 1.16.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - ruby-progressbar (1.11.0) + rubocop-ast (1.35.0) + parser (>= 3.3.1.0) + ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) simplecov (0.21.2) docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) - simplecov-html (0.12.3) + simplecov-html (0.13.1) simplecov_json_formatter (0.1.4) - strscan (3.1.0) - unicode-display_width (2.1.0) + unicode-display_width (2.6.0) vcr (6.0.0) PLATFORMS diff --git a/lib/sapi_client/version.rb b/lib/sapi_client/version.rb index b70d69a..eee81c2 100644 --- a/lib/sapi_client/version.rb +++ b/lib/sapi_client/version.rb @@ -4,5 +4,5 @@ module SapiClient MAJOR = 1 MINOR = 3 FIX = 0 - VERSION = "#{MAJOR}.#{MINOR}.#{FIX}" + VERSION = "#{MAJOR}.#{MINOR}.#{FIX}.pre.1" end From 59d51bea4e72de97d8381d681a71165841f9c5b4 Mon Sep 17 00:00:00 2001 From: Alex Tucker Date: Wed, 8 Jan 2025 15:32:05 +0000 Subject: [PATCH 4/4] Bump some gems, including Bundler -> 2.4.22, the last version to support Ruby 2.7.8.225 --- Gemfile.lock | 14 +++++++------- sapi-client-ruby.gemspec | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9a58f29..91b2f5d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -41,13 +41,13 @@ GEM faraday (~> 1.0) i18n (1.14.6) concurrent-ruby (~> 1.0) - minitest (5.25.1) + minitest (5.25.4) minitest-reporters (1.7.1) ansi builder minitest (>= 5.0) ruby-progressbar - mocha (2.5.0) + mocha (2.7.1) ruby2_keywords (>= 0.0.5) multipart-post (2.4.1) parallel (1.26.3) @@ -57,8 +57,8 @@ GEM racc (1.8.1) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.9.2) - rexml (3.3.9) + regexp_parser (2.10.0) + rexml (3.4.0) rubocop (1.26.1) parallel (~> 1.10) parser (>= 3.1.0.0) @@ -68,7 +68,7 @@ GEM rubocop-ast (>= 1.16.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.35.0) + rubocop-ast (1.37.0) parser (>= 3.3.1.0) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) @@ -85,7 +85,7 @@ PLATFORMS ruby DEPENDENCIES - bundler (~> 2.1.4) + bundler (~> 2.4.22) byebug (~> 11.1.3) minitest (~> 5.25) minitest-reporters (~> 1.7) @@ -97,4 +97,4 @@ DEPENDENCIES vcr (~> 6.0.0) BUNDLED WITH - 2.1.4 + 2.4.22 diff --git a/sapi-client-ruby.gemspec b/sapi-client-ruby.gemspec index 4f9fe27..449e96b 100644 --- a/sapi-client-ruby.gemspec +++ b/sapi-client-ruby.gemspec @@ -34,7 +34,7 @@ Gem::Specification.new do |spec| spec.add_dependency 'faraday_middleware', '~> 1.0.0' spec.add_dependency 'i18n', '~> 1.5' - spec.add_development_dependency 'bundler', '~> 2.1.4' + spec.add_development_dependency 'bundler', '~> 2.4.22' spec.add_development_dependency 'byebug', '~> 11.1.3' spec.add_development_dependency 'minitest', '~> 5.25' spec.add_development_dependency 'minitest-reporters', '~> 1.7'