dynectastic 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.rdoc +4 -0
- data/VERSION +1 -1
- data/dynectastic.gemspec +2 -2
- data/lib/dynectastic/request.rb +2 -2
- data/lib/dynectastic.rb +1 -1
- metadata +4 -4
data/CHANGES.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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.
|
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-
|
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 = [
|
data/lib/dynectastic/request.rb
CHANGED
@@ -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.
|
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.
|
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
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:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
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-
|
18
|
+
date: 2010-11-04 00:00:00 +07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|