dynectastic 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGES.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 0.2.1
4
+
5
+ * Fixed redirect loop.
6
+
3
7
  == 0.2.0
4
8
 
5
9
  * Added support for Jobs.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/dynectastic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dynectastic}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ilya Sabanin"]
12
- s.date = %q{2010-11-01}
12
+ s.date = %q{2010-11-04}
13
13
  s.description = %q{More or less complete set of tools for managing your Dynect zones, records and nodes via REST API.}
14
14
  s.email = %q{ilya.sabanin@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -29,7 +29,7 @@ module Dynectastic
29
29
  begin
30
30
  process_response(self.class.send(method, path, options))
31
31
  rescue HTTParty::RedirectionTooDeep => e
32
- if e.response.body.include?("/REST/Job")
32
+ if e.response['Location'].include?("/REST/Job")
33
33
  memorize_response_data(e.response)
34
34
  false
35
35
  else
@@ -93,7 +93,7 @@ module Dynectastic
93
93
  end
94
94
 
95
95
  def extract_job_id_from_response(response)
96
- response.body.scan(/\/REST\/Job\/(\d+)/i).flatten.first.to_i
96
+ response['Location'].scan(/\/REST\/Job\/(\d+)/i).flatten.first.to_i
97
97
  end
98
98
 
99
99
  def increment_attempts
data/lib/dynectastic.rb CHANGED
@@ -3,7 +3,7 @@ require 'json'
3
3
 
4
4
  module Dynectastic
5
5
 
6
- VERSION = '0.2.0'
6
+ VERSION = '0.2.1'
7
7
  API_URL = 'https://api2.dynect.net'
8
8
  RETRIES = 5
9
9
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynectastic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Sabanin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-01 00:00:00 +07:00
18
+ date: 2010-11-04 00:00:00 +07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency