dynect_rest 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/.gitignore +1 -1
  2. data/VERSION +1 -1
  3. data/lib/dynect_rest.rb +3 -0
  4. metadata +3 -3
data/.gitignore CHANGED
@@ -19,5 +19,5 @@ rdoc
19
19
  pkg
20
20
  doc
21
21
  .yardoc
22
-
22
+ *.gemspec
23
23
  ## PROJECT::SPECIFIC
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
data/lib/dynect_rest.rb CHANGED
@@ -173,6 +173,9 @@ class DynectRest
173
173
  response = block.call
174
174
  response.body
175
175
  rescue RestClient::Exception => e
176
+ if e.http_code == 307
177
+ get(e.response)
178
+ end
176
179
  e.response
177
180
  end
178
181
  parse_response(JSON.parse(response_body))
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
7
+ - 2
8
8
  - 0
9
- version: 0.1.0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Adam Jacob
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-06 00:00:00 -07:00
17
+ date: 2010-06-16 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency