girlscout 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/girlscout/resource.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71b766cbc9b27e3c570ffc2b93c0dc0d76eff4a0
4
- data.tar.gz: d5f515e29a8304cd5d5bfcfe7ddc4ec809c5ab66
3
+ metadata.gz: 6631188c9d44571018f2a29082d045fe24efe1a7
4
+ data.tar.gz: acc7eeb019a7b52441cbbc2325821e9d60ff0cef
5
5
  SHA512:
6
- metadata.gz: fba3e3c0368882ba435f756c2752e68a1d10e29bf9072e3bd5b9289db4b7eeaf00699d7f7930b278bdbf57d7104e0c613cb0479cd709f2ee6784f87557d60038
7
- data.tar.gz: 7a9cd10c80b9840c58b8ea2e0778f980f4b456c789b12b962e82ff42e33c4470c0336e357313c69d6dc6354b4a9ae544513d1a77de9caa728aa1931d99026007
6
+ metadata.gz: 009002c2b7a752e27935587badf757cf561297400eb231e01dd7d335c59855f810737358a17109e3fd761babc6802b0916e765f1b987f54906df033a6f61d2e7
7
+ data.tar.gz: 8d234f74f0ace0ef49788e242e81a72ee090790d2c3100b39269403178de50bcb90f7e86720b523c9150d9867bb4e8751234fd3c3e8c48737b5c2dc3543172fb
@@ -35,7 +35,7 @@ module GirlScout
35
35
  def request(options={})
36
36
  auth = { user: Config.api_key, password: 'X' }
37
37
  response = Excon.new(url, auth).request(options)
38
- if response.status != 200
38
+ if 400 <= response.status && response.status < 600
39
39
  raise GirlScout::Error.new(JSON.parse(response.body))
40
40
  end
41
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: girlscout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chakrit Wichian