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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef41f896def4a415b9352eac45c108d3df881897
4
- data.tar.gz: 79e157ba0b46043b4ef3442b0e31367ca1bde6c0
3
+ metadata.gz: 8bd274ff2500f548ba436576592642c002836e26
4
+ data.tar.gz: b7b7d92f0c2ffee13a74e7d99f21f10b21c9ba48
5
5
  SHA512:
6
- metadata.gz: be7a999606f4e2d71483ed54a063cdb6d8c5361d260c81ee7bc42d93f2d4df20f48a225a00a3b579468b89def7a320dbce5804df44486ef2ad55cac95f244dd0
7
- data.tar.gz: d69fae0bc8c97f2209f0e47f4e3761d4d68759d42c124757970a95c60cf02bcc1317b31df8315b2e005b6159000dcf545c79e93dafce064772ffd0cd0808449d
6
+ metadata.gz: 58710be4995014ec104ea739963c77b359ed7d763f752d7590ca464585b99a4d1f2ddd9e0aec8bcf08df615f16803bd0aca7b9d3164e1efc8868537c26d8447b
7
+ data.tar.gz: ee0a0d414c2ed8ce0e2edeeda3d51922f38bcca892892e4c6bf7eed605685249b2a15dc2d83aecbf4bc192cc28d4a5a14b7a3915e3c10b001bd1c65eac75a799
@@ -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['Message']
36
+ when 400..499
37
+ raise BadRequest, response.parsed_response['message']
38
38
  else
39
- raise "#{response.code}: #{response.parsed_response['Message']}"
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module TopsConnect
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler