tops_connect 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tops_connect/client.rb +3 -3
- data/lib/tops_connect/configuration.rb +2 -2
- data/lib/tops_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bd274ff2500f548ba436576592642c002836e26
|
4
|
+
data.tar.gz: b7b7d92f0c2ffee13a74e7d99f21f10b21c9ba48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58710be4995014ec104ea739963c77b359ed7d763f752d7590ca464585b99a4d1f2ddd9e0aec8bcf08df615f16803bd0aca7b9d3164e1efc8868537c26d8447b
|
7
|
+
data.tar.gz: ee0a0d414c2ed8ce0e2edeeda3d51922f38bcca892892e4c6bf7eed605685249b2a15dc2d83aecbf4bc192cc28d4a5a14b7a3915e3c10b001bd1c65eac75a799
|
data/lib/tops_connect/client.rb
CHANGED
@@ -33,10 +33,10 @@ module TopsConnect
|
|
33
33
|
case response.code
|
34
34
|
when 200
|
35
35
|
response.parsed_response
|
36
|
-
when 400
|
37
|
-
raise BadRequest, response.parsed_response['
|
36
|
+
when 400..499
|
37
|
+
raise BadRequest, response.parsed_response['message']
|
38
38
|
else
|
39
|
-
raise "#{response.code}: #{response.parsed_response['
|
39
|
+
raise "#{response.code}: #{response.parsed_response['message']}"
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -40,11 +40,11 @@ module TopsConnect
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def zone=(new_zone)
|
43
|
-
unless %i(broad limited sandbox).include?(new_zone)
|
43
|
+
unless %i(broad limited sandbox).include?(new_zone.to_sym)
|
44
44
|
raise 'Invalid TOPS Zone. Accepted values are broad, limited, sandbox.'
|
45
45
|
end
|
46
46
|
|
47
|
-
@zone = new_zone
|
47
|
+
@zone = new_zone.to_sym
|
48
48
|
end
|
49
49
|
end
|
50
50
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Hoffman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|