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

Add template endpoints #64

Merged
merged 4 commits into from
Jan 10, 2025
Merged
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
40 changes: 20 additions & 20 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
sapi-client-ruby (1.2.0)
sapi-client-ruby (1.3.0.pre.1)
faraday_middleware (~> 1.0.0)
i18n (~> 1.5)

Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -41,24 +41,25 @@ 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.4.5)
mocha (2.7.1)
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.10.0)
rexml (3.4.0)
rubocop (1.26.1)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
Expand All @@ -67,25 +68,24 @@ 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.37.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
ruby

DEPENDENCIES
bundler (~> 2.1.4)
bundler (~> 2.4.22)
byebug (~> 11.1.3)
minitest (~> 5.25)
minitest-reporters (~> 1.7)
Expand All @@ -97,4 +97,4 @@ DEPENDENCIES
vcr (~> 6.0.0)

BUNDLED WITH
2.1.4
2.4.22
4 changes: 3 additions & 1 deletion lib/sapi_client/sapi_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ 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)
Expand Down
4 changes: 2 additions & 2 deletions lib/sapi_client/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module SapiClient
MAJOR = 1
MINOR = 2
MINOR = 3
FIX = 0
VERSION = "#{MAJOR}.#{MINOR}.#{FIX}"
VERSION = "#{MAJOR}.#{MINOR}.#{FIX}.pre.1"
end
2 changes: 1 addition & 1 deletion sapi-client-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading