Skip to content

Commit 2d8dccf

Browse files
authored
Merge pull request #64 from epimorphics/issue/61-template-endpoints
Add template endpoints
2 parents b4e80d9 + 59d51be commit 2d8dccf

File tree

4 files changed

+26
-24
lines changed

4 files changed

+26
-24
lines changed

Gemfile.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
sapi-client-ruby (1.2.0)
4+
sapi-client-ruby (1.3.0.pre.1)
55
faraday_middleware (~> 1.0.0)
66
i18n (~> 1.5)
77

@@ -13,7 +13,7 @@ GEM
1313
builder (3.3.0)
1414
byebug (11.1.3)
1515
concurrent-ruby (1.3.4)
16-
docile (1.4.0)
16+
docile (1.4.1)
1717
faraday (1.10.4)
1818
faraday-em_http (~> 1.0)
1919
faraday-em_synchrony (~> 1.0)
@@ -30,8 +30,8 @@ GEM
3030
faraday-em_synchrony (1.0.0)
3131
faraday-excon (1.1.0)
3232
faraday-httpclient (1.0.1)
33-
faraday-multipart (1.0.4)
34-
multipart-post (~> 2)
33+
faraday-multipart (1.1.0)
34+
multipart-post (~> 2.0)
3535
faraday-net_http (1.0.2)
3636
faraday-net_http_persistent (1.2.0)
3737
faraday-patron (1.0.0)
@@ -41,24 +41,25 @@ GEM
4141
faraday (~> 1.0)
4242
i18n (1.14.6)
4343
concurrent-ruby (~> 1.0)
44-
minitest (5.25.1)
44+
minitest (5.25.4)
4545
minitest-reporters (1.7.1)
4646
ansi
4747
builder
4848
minitest (>= 5.0)
4949
ruby-progressbar
50-
mocha (2.4.5)
50+
mocha (2.7.1)
5151
ruby2_keywords (>= 0.0.5)
5252
multipart-post (2.4.1)
53-
parallel (1.21.0)
54-
parser (3.1.1.0)
53+
parallel (1.26.3)
54+
parser (3.3.6.0)
5555
ast (~> 2.4.1)
56+
racc
57+
racc (1.8.1)
5658
rainbow (3.1.1)
5759
rake (13.0.6)
58-
regexp_parser (2.2.1)
59-
rexml (3.2.8)
60-
strscan (>= 3.0.9)
61-
rubocop (1.26.0)
60+
regexp_parser (2.10.0)
61+
rexml (3.4.0)
62+
rubocop (1.26.1)
6263
parallel (~> 1.10)
6364
parser (>= 3.1.0.0)
6465
rainbow (>= 2.2.2, < 4.0)
@@ -67,25 +68,24 @@ GEM
6768
rubocop-ast (>= 1.16.0, < 2.0)
6869
ruby-progressbar (~> 1.7)
6970
unicode-display_width (>= 1.4.0, < 3.0)
70-
rubocop-ast (1.16.0)
71-
parser (>= 3.1.1.0)
72-
ruby-progressbar (1.11.0)
71+
rubocop-ast (1.37.0)
72+
parser (>= 3.3.1.0)
73+
ruby-progressbar (1.13.0)
7374
ruby2_keywords (0.0.5)
7475
simplecov (0.21.2)
7576
docile (~> 1.1)
7677
simplecov-html (~> 0.11)
7778
simplecov_json_formatter (~> 0.1)
78-
simplecov-html (0.12.3)
79+
simplecov-html (0.13.1)
7980
simplecov_json_formatter (0.1.4)
80-
strscan (3.1.0)
81-
unicode-display_width (2.1.0)
81+
unicode-display_width (2.6.0)
8282
vcr (6.0.0)
8383

8484
PLATFORMS
8585
ruby
8686

8787
DEPENDENCIES
88-
bundler (~> 2.1.4)
88+
bundler (~> 2.4.22)
8989
byebug (~> 11.1.3)
9090
minitest (~> 5.25)
9191
minitest-reporters (~> 1.7)
@@ -97,4 +97,4 @@ DEPENDENCIES
9797
vcr (~> 6.0.0)
9898

9999
BUNDLED WITH
100-
2.1.4
100+
2.4.22

lib/sapi_client/sapi_endpoint.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ class SapiEndpoint # rubocop:disable Metrics/ClassLength
1212
ENDPOINT_TYPE_ITEM = 'endpoint.item'
1313
ENDPOINT_TYPE_FORWARD = 'endpoint.forward'
1414
ENDPOINT_TYPE_HIERARCHY = 'endpoint.hierarchy'
15+
ENDPOINT_TYPE_TEMPLATE = 'endpoint.template'
1516
ENDPOINT_TYPES = [
1617
DEP_ENDPOINT_TYPE_LIST, DEP_ENDPOINT_TYPE_ITEM, DEP_ENDPOINT_TYPE_FORWARD,
17-
ENDPOINT_TYPE_LIST, ENDPOINT_TYPE_ITEM, ENDPOINT_TYPE_FORWARD, ENDPOINT_TYPE_HIERARCHY
18+
ENDPOINT_TYPE_LIST, ENDPOINT_TYPE_ITEM, ENDPOINT_TYPE_FORWARD, ENDPOINT_TYPE_HIERARCHY,
19+
ENDPOINT_TYPE_TEMPLATE
1820
].freeze
1921

2022
def initialize(base_url, specification, view_registry: ViewRegistry)

lib/sapi_client/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module SapiClient
44
MAJOR = 1
5-
MINOR = 2
5+
MINOR = 3
66
FIX = 0
7-
VERSION = "#{MAJOR}.#{MINOR}.#{FIX}"
7+
VERSION = "#{MAJOR}.#{MINOR}.#{FIX}.pre.1"
88
end

sapi-client-ruby.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
3434
spec.add_dependency 'faraday_middleware', '~> 1.0.0'
3535
spec.add_dependency 'i18n', '~> 1.5'
3636

37-
spec.add_development_dependency 'bundler', '~> 2.1.4'
37+
spec.add_development_dependency 'bundler', '~> 2.4.22'
3838
spec.add_development_dependency 'byebug', '~> 11.1.3'
3939
spec.add_development_dependency 'minitest', '~> 5.25'
4040
spec.add_development_dependency 'minitest-reporters', '~> 1.7'

0 commit comments

Comments
 (0)