hermes_api 0.7.1 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +14 -13
- data/hermes_api.gemspec +6 -5
- data/lib/hermes_api/connection.rb +7 -5
- data/lib/hermes_api/version.rb +1 -1
- data/lib/hermes_api.rb +1 -0
- metadata +25 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae9139cfe25c072cb1e3f43a889c0498bd2f10e318fee0ce3ca43bda0f0f9f36
|
4
|
+
data.tar.gz: 31ff5d952b17e45d34e177402445a3a4ae68ef516f9088fe2d72ea4886c09db8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0360946ae3d0b044fa4c14da7d517fe8fc00dd168cd3b55d8bf3a1ff9909c3949c1b6943e30e3a48fe31e75667f5fdef41844642183d74e4ed2260f8e63832bd'
|
7
|
+
data.tar.gz: '02917e8849dbb808d21f103478cd099a7a5c93b1883286a07235357bdef5ea7453883a1ffb2cb3d354f5bee2d0290831ab7362388161e742e055bd652c0b7a2d'
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,34 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
hermes_api (0.7.
|
5
|
-
activeresource (>= 4.1.0
|
4
|
+
hermes_api (0.7.3)
|
5
|
+
activeresource (>= 4.1.0)
|
6
6
|
rexml (~> 3.2, >= 3.2.4)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activemodel (
|
12
|
-
activesupport (=
|
11
|
+
activemodel (7.0.2.3)
|
12
|
+
activesupport (= 7.0.2.3)
|
13
13
|
activemodel-serializers-xml (1.0.2)
|
14
14
|
activemodel (> 5.x)
|
15
15
|
activesupport (> 5.x)
|
16
16
|
builder (~> 3.1)
|
17
|
-
activeresource (
|
18
|
-
activemodel (>=
|
17
|
+
activeresource (6.0.0)
|
18
|
+
activemodel (>= 6.0)
|
19
19
|
activemodel-serializers-xml (~> 1.0)
|
20
|
-
activesupport (>=
|
21
|
-
activesupport (
|
20
|
+
activesupport (>= 6.0)
|
21
|
+
activesupport (7.0.2.3)
|
22
22
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
23
|
i18n (>= 1.6, < 2)
|
24
24
|
minitest (>= 5.1)
|
25
25
|
tzinfo (~> 2.0)
|
26
|
-
zeitwerk (~> 2.3)
|
27
26
|
ast (2.4.2)
|
28
27
|
builder (3.2.4)
|
29
28
|
byebug (11.1.3)
|
30
29
|
coderay (1.1.3)
|
31
|
-
concurrent-ruby (1.1.
|
30
|
+
concurrent-ruby (1.1.10)
|
32
31
|
diff-lcs (1.4.4)
|
33
32
|
dotenv (2.7.6)
|
34
33
|
ffi (1.15.3)
|
@@ -48,7 +47,7 @@ GEM
|
|
48
47
|
guard (~> 2.1)
|
49
48
|
guard-compat (~> 1.1)
|
50
49
|
rspec (>= 2.99.0, < 4.0)
|
51
|
-
i18n (1.
|
50
|
+
i18n (1.10.0)
|
52
51
|
concurrent-ruby (~> 1.0)
|
53
52
|
listen (3.5.1)
|
54
53
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
@@ -112,11 +111,12 @@ GEM
|
|
112
111
|
tzinfo (2.0.4)
|
113
112
|
concurrent-ruby (~> 1.0)
|
114
113
|
unicode-display_width (2.0.0)
|
115
|
-
zeitwerk (2.5.
|
114
|
+
zeitwerk (2.5.4)
|
116
115
|
|
117
116
|
PLATFORMS
|
118
117
|
arm64-darwin-21
|
119
118
|
x86_64-darwin-19
|
119
|
+
x86_64-darwin-21
|
120
120
|
|
121
121
|
DEPENDENCIES
|
122
122
|
dotenv
|
@@ -129,6 +129,7 @@ DEPENDENCIES
|
|
129
129
|
rspec (~> 3.0)
|
130
130
|
rubocop (~> 1.7)
|
131
131
|
standard
|
132
|
+
zeitwerk
|
132
133
|
|
133
134
|
BUNDLED WITH
|
134
|
-
2.3.
|
135
|
+
2.3.8
|
data/hermes_api.gemspec
CHANGED
@@ -29,16 +29,17 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ["lib"]
|
31
31
|
|
32
|
-
spec.add_dependency "activeresource", ">= 4.1.0"
|
32
|
+
spec.add_dependency "activeresource", ">= 4.1.0"
|
33
33
|
spec.add_dependency "rexml", "~> 3.2", ">= 3.2.4"
|
34
34
|
|
35
|
-
spec.add_development_dependency "rspec", "~> 3.2"
|
36
35
|
spec.add_development_dependency "dotenv"
|
37
|
-
spec.add_development_dependency "
|
38
|
-
spec.add_development_dependency "pry"
|
36
|
+
spec.add_development_dependency "gem-release"
|
39
37
|
spec.add_development_dependency "guard-rspec"
|
38
|
+
spec.add_development_dependency "pry"
|
39
|
+
spec.add_development_dependency "pry-byebug"
|
40
|
+
spec.add_development_dependency "rspec", "~> 3.2"
|
40
41
|
spec.add_development_dependency "standard"
|
41
|
-
spec.add_development_dependency "
|
42
|
+
spec.add_development_dependency "zeitwerk"
|
42
43
|
|
43
44
|
# Uncomment to register a new dependency of your gem
|
44
45
|
# spec.add_dependency "example-gem", "~> 1.0"
|
@@ -4,17 +4,19 @@ module HermesAPI
|
|
4
4
|
result = ActiveSupport::Notifications.instrument("request.active_resource") do |payload|
|
5
5
|
payload[:method] = method
|
6
6
|
payload[:request_uri] = "#{site.scheme}://#{site.host}:#{site.port}#{path}"
|
7
|
+
# TODO: Figure out why the headers set in the Base class are not being set here
|
8
|
+
arguments.last["Content-Type"] = "text/xml"
|
7
9
|
payload[:result] = http.send(method, path, *arguments)
|
10
|
+
payload[:result]
|
8
11
|
end
|
9
12
|
|
10
|
-
if result.body.include?("errorMessages")
|
11
|
-
|
12
|
-
end
|
13
|
+
raise HermesAPI::CreationError, result if result.body.include?("errorMessages")
|
14
|
+
|
13
15
|
handle_response(result)
|
14
16
|
rescue Timeout::Error => e
|
15
|
-
raise TimeoutError
|
17
|
+
raise TimeoutError, e.message
|
16
18
|
rescue OpenSSL::SSL::SSLError => e
|
17
|
-
raise SSLError
|
19
|
+
raise SSLError, e.message
|
18
20
|
end
|
19
21
|
end
|
20
22
|
end
|
data/lib/hermes_api/version.rb
CHANGED
data/lib/hermes_api.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hermes_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Chong
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.1.0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 6.0.0
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 4.1.0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 6.0.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: rexml
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -51,21 +45,21 @@ dependencies:
|
|
51
45
|
- !ruby/object:Gem::Version
|
52
46
|
version: 3.2.4
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
48
|
+
name: dotenv
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
56
50
|
requirements:
|
57
|
-
- - "
|
51
|
+
- - ">="
|
58
52
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
53
|
+
version: '0'
|
60
54
|
type: :development
|
61
55
|
prerelease: false
|
62
56
|
version_requirements: !ruby/object:Gem::Requirement
|
63
57
|
requirements:
|
64
|
-
- - "
|
58
|
+
- - ">="
|
65
59
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
60
|
+
version: '0'
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
62
|
+
name: gem-release
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
70
64
|
requirements:
|
71
65
|
- - ">="
|
@@ -79,7 +73,7 @@ dependencies:
|
|
79
73
|
- !ruby/object:Gem::Version
|
80
74
|
version: '0'
|
81
75
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
76
|
+
name: guard-rspec
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
84
78
|
requirements:
|
85
79
|
- - ">="
|
@@ -107,7 +101,7 @@ dependencies:
|
|
107
101
|
- !ruby/object:Gem::Version
|
108
102
|
version: '0'
|
109
103
|
- !ruby/object:Gem::Dependency
|
110
|
-
name:
|
104
|
+
name: pry-byebug
|
111
105
|
requirement: !ruby/object:Gem::Requirement
|
112
106
|
requirements:
|
113
107
|
- - ">="
|
@@ -120,6 +114,20 @@ dependencies:
|
|
120
114
|
- - ">="
|
121
115
|
- !ruby/object:Gem::Version
|
122
116
|
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rspec
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '3.2'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.2'
|
123
131
|
- !ruby/object:Gem::Dependency
|
124
132
|
name: standard
|
125
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +143,7 @@ dependencies:
|
|
135
143
|
- !ruby/object:Gem::Version
|
136
144
|
version: '0'
|
137
145
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
146
|
+
name: zeitwerk
|
139
147
|
requirement: !ruby/object:Gem::Requirement
|
140
148
|
requirements:
|
141
149
|
- - ">="
|