tops_connect 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tops_connect/client.rb +3 -3
- data/lib/tops_connect/communities.rb +4 -4
- data/lib/tops_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5bef3da83a04de4057b32218280fdd154f311c7d474eaf8e088477d2bb8fa1f3
|
|
4
|
+
data.tar.gz: cf81c0c6171ccfe70460cbe1ddd15ae37aaf86aa7ca5e9c7be2ae452775ccb02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15515caaac2db4a607233316bcda1191d9fb981fb38d7e3c75efa62110ec1d9a95e92c1fed267c5c98f74c7b2a537009e122597487da88d30c47473a378b234e
|
|
7
|
+
data.tar.gz: d06094a91dfeaf4b87dec453d371b173c6ccaa974917d6c20c23997273bcb86f34c15b7e6fd986fbac1eb7645281ce0fcef9a740224fc6d71443510bc3099b07
|
data/lib/tops_connect/client.rb
CHANGED
|
@@ -52,10 +52,10 @@ module TopsConnect
|
|
|
52
52
|
"/#{TopsConnect.configuration.zone}/api#{endpoint}",
|
|
53
53
|
query: query.merge('subscription-key' => @subscription_key),
|
|
54
54
|
headers: headers.merge('community-api-key' => @community_api_key),
|
|
55
|
-
body: body
|
|
55
|
+
body: body.to_json
|
|
56
56
|
)
|
|
57
57
|
|
|
58
|
-
raise_exception(response) unless response.code ==
|
|
58
|
+
raise_exception(response) unless response.code == 200
|
|
59
59
|
|
|
60
60
|
response.parsed_response
|
|
61
61
|
end
|
|
@@ -65,7 +65,7 @@ module TopsConnect
|
|
|
65
65
|
"/#{TopsConnect.configuration.zone}/api#{endpoint}",
|
|
66
66
|
query: query.merge('subscription-key' => @subscription_key),
|
|
67
67
|
headers: headers.merge('community-api-key' => @community_api_key),
|
|
68
|
-
body: body
|
|
68
|
+
body: body.to_json
|
|
69
69
|
)
|
|
70
70
|
|
|
71
71
|
raise_exception(response) unless response.code == 200
|
|
@@ -27,10 +27,10 @@ module TopsConnect
|
|
|
27
27
|
def charge_codes
|
|
28
28
|
get('/chargecode').map do |charge_code|
|
|
29
29
|
{
|
|
30
|
-
key: charge_code['
|
|
31
|
-
code: charge_code['
|
|
32
|
-
description: charge_code['
|
|
33
|
-
name:
|
|
30
|
+
key: charge_code['ChargeCodeKey'],
|
|
31
|
+
code: charge_code['Code'],
|
|
32
|
+
description: charge_code['Description'],
|
|
33
|
+
name: charge_code['Name']
|
|
34
34
|
}
|
|
35
35
|
end
|
|
36
36
|
end
|
data/lib/tops_connect/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tops_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Hoffman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|