bergcloud 1.0.2 → 1.0.3

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: 3f8796bf6a2e23537d5c32fdef06e06ac1e9f6ab
4
- data.tar.gz: 5c2fe3b0ac17f92a7022dcdef878782842bbc0ae
3
+ metadata.gz: 11157c2f8817d02cd04fe149122a564ebec97c03
4
+ data.tar.gz: 709f15e8f2abf756161cf5de863c11f131c79584
5
5
  SHA512:
6
- metadata.gz: 547fcd95833686006f40bd12c09379c28e38eb8278dfcd1dc6e063178727b8045d2e86db586a4c42ec2967098645455d2af0c35d364a9649bea2ba55a780f00e
7
- data.tar.gz: cf8387006ff421d02dc77824a18b2e26fe2a786fdb5ff6c47fd3c0b543f0b6e0331bc1c4b19584f929e67c519122b1cbeb8f885071741e4fd6d6fccfd0f017bf
6
+ metadata.gz: 4bbe276a9658be58e9ff28a44f2f57300538c1bd1240dac06dbf0eeaeec12d7f56923da58ea071fcf8ff1835bb1cd12718d7465d13334087753478baf062f265
7
+ data.tar.gz: a7cd3001ad58186ef02a348db2ca63d12133f6741717db0e7b31b8d7877ce2b1dc5b3e163822c5406c88ae63689ad1948c6313c22e3cdc126f7c44a950d13942
@@ -0,0 +1 @@
1
+ bergcloud
@@ -0,0 +1 @@
1
+ 2.1.1
data/README.md CHANGED
@@ -71,9 +71,14 @@ command.delete
71
71
 
72
72
  ## Changelog
73
73
 
74
+ ### 1.0.3
75
+
76
+ * Turns out I didn't fix the 422 error last time
77
+
74
78
  ### 1.0.2
75
79
 
76
80
  * Requests returning 422 shouldn't be classed as errors because they are not failures
81
+ * Add a nicer error message for 401, telling you that you forgot to set `BERGCloud.api_token`
77
82
 
78
83
  ### 1.0.1
79
84
 
@@ -60,7 +60,7 @@ module BERGCloud
60
60
  res = http.request(req)
61
61
 
62
62
  case res.code.to_i
63
- when 200, 404
63
+ when 200, 404, 422
64
64
  res.body = JSON.parse(res.body) rescue nil
65
65
  if res.body.is_a?(Hash)
66
66
  res.body = Hash[res.body.map{ |k, v| [k.to_sym, v] }]
@@ -1,3 +1,3 @@
1
1
  module BERGCloud
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bergcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Forey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-01 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,6 +60,8 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
+ - ".ruby-gemset"
64
+ - ".ruby-version"
63
65
  - ".travis.yml"
64
66
  - Gemfile
65
67
  - LICENSE.txt