angus-remote 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDQ1MWNlNmEwZmVhNDk4NzA5ODY4OTBmNmNiNjg3MGEwZWZmZmQ0Mw==
4
+ YWMwMTViZThkMmM0ODg4YjJiYTM5M2M0NjlmNjUzNjFiYTRjMGJmNA==
5
5
  data.tar.gz: !binary |-
6
- NjBhNDA0MmU2Zjc1OTA5NGVlNWEyYWU4MGIyMzk4N2I3NzBjY2JjMQ==
6
+ MTFjZjRhZmM0OTVlMWYyYzQyMTE1YzEzOTJjM2MzYjVlZDQ0NmQ5ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmZmYjQ5YjFmNDc3YzhiZjA2MTg0Y2IxMDAzNmNhY2RiYzAyNzBiN2U3ZmYx
10
- YTYyNzVlZmQwOTc5ODZlN2Y0ZTJiNjQ0NTZkMTg5MTIzN2Y3NzhjZmUyYzVm
11
- YWU4NTQxN2Q2OWI5OTg0NmY0NDM3NGMyNjI0ZmFiY2FjOTVhMjU=
9
+ ODY3Yzc3MjkxMWY4MGQ5MzcyNmJjNjk5NzA1NGFmNDBmOTJhYzQ4YzBjNTNl
10
+ MDZlOWI3MzRmMzZlMzBiY2Y2Njg5OWViNGYwY2RiNDUwN2ExZTRmMDI0Yjc3
11
+ YzQxZjAxZGE3MDE1ZjM5YzNmYTMyMjNhMmUyMjI2NmNiYTg5Y2U=
12
12
  data.tar.gz: !binary |-
13
- NTlmOGU4MDc1ZjcxNzVhYWVkZjgxYjE2MDcyYzZjYThkZmU2NjFhNTg4Zjhm
14
- NDY2MWNmZWYwZTA0YjNiMWVjMTFjMDhkYjM3MzBkOTU0ZDgyMWU5ODMyZmU1
15
- NjQ4ZTJlMWM1ZTEwNzRlNTE3ODNjZjYxZTIwOTUzYzRmZThhM2I=
13
+ NjRiMTM4OTlkNTdmMWZiZjk1MzU5YWI1ZTQwMDE3NjZjZTQxNjBiOGNkYWU0
14
+ NTRkODUxYjQzNDg2NDIzYjA1NDQzZWRjYTA1NDZiMDNlZWJlMWNkNzNhODZm
15
+ OWQ0ZTllZDUyM2IxYTc1MmI5ZWUyOTliNTRmNWM2ODEwOTJhMjc=
@@ -25,29 +25,29 @@ module Angus
25
25
  # specified in the operation response metadata
26
26
  #
27
27
  # @param [Integer] status_code HTTP status_code
28
- # @param body [String] HTTP body
29
- # @param service_name [String] Name of the service that the response belongs to
30
- # @param version [String] Version of the service that the response belongs to
31
- # @param operation_namespace [String] Namespace of the operation that the response belongs to
32
- # @param operation_name [String] Name of the operation that the response belongs to
28
+ # @param [String] body HTTP body
29
+ # @param [String] service_code_name Name of the service that the response belongs to
30
+ # @param [String] service_version Version of the service that the response belongs to
31
+ # @param [String] operation_namespace Namespace of the operation that the response belongs to
32
+ # @param [String] operation_name Name of the operation that the response belongs to
33
33
  #
34
34
  # @return A Response object that responds to the methods:
35
35
  # - status
36
36
  # - messages
37
37
  #
38
38
  # Also, provides one method for each value / object / array returned
39
- def self.build(status_code, body, service_code_name, version, operation_namespace,
39
+ def self.build(status_code, body, service_code_name, service_version, operation_namespace,
40
40
  operation_code_name)
41
41
  service_definition = Angus::Remote::ServiceDirectory.service_definition(
42
- service_code_name, version
42
+ service_code_name, service_version
43
43
  )
44
44
 
45
- self.build_from_definition(status_code, body, service_definition, operation_namespace,
46
- operation_code_name)
45
+ self.build_from_definition(status_code, body, service_code_name, service_version,
46
+ service_definition, operation_namespace, operation_code_name)
47
47
  end
48
48
 
49
- def self.build_from_definition(status_code, body, service_definition, operation_namespace,
50
- operation_code_name)
49
+ def self.build_from_definition(status_code, body, service_code_name, service_version,
50
+ service_definition, operation_namespace, operation_code_name)
51
51
  representations = service_definition.representations
52
52
  glossary = service_definition.glossary
53
53
 
@@ -63,8 +63,8 @@ module Angus
63
63
  # TODO use constants
64
64
  response[:status_code] = status_code
65
65
  response[:body] = body
66
- response[:service_code_name] = service_definition.code_name
67
- response[:service_version] = service_definition.version
66
+ response[:service_code_name] = service_code_name
67
+ response[:service_version] = service_version
68
68
  response[:operation_namespace] = operation_namespace
69
69
  response[:operation_code_name] = operation_code_name
70
70
 
@@ -1,7 +1,7 @@
1
1
  module Angus
2
2
  module Remote
3
3
 
4
- VERSION = '0.0.14'
4
+ VERSION = '0.0.15'
5
5
 
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angus-remote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Gomez