dnsync 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'dnsync'
16
- s.version = '1.0.1'
17
- s.date = '2015-01-02'
16
+ s.version = '1.0.2'
17
+ s.date = '2015-01-04'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Dnsync
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
@@ -57,6 +57,13 @@ module Dnsync
57
57
  end
58
58
 
59
59
  Record.new(record['domain'], record['type'], record['ttl'], answers)
60
+ rescue Faraday::ClientError => ex
61
+ if ex.response[:status].to_i == 429
62
+ sleep 0.4 + rand
63
+ retry
64
+ else
65
+ raise
66
+ end
60
67
  end
61
68
 
62
69
  def create_record(record)
@@ -14,10 +14,6 @@ module Dnsync
14
14
  raise ArgumentError, 'ttl must be provided'
15
15
  end
16
16
 
17
- unless answers.present?
18
- raise ArgumentError, 'at least one answer must be provided'
19
- end
20
-
21
17
  @identifier = RecordIdentifier.new(name, type)
22
18
  @ttl = ttl
23
19
  @answers = answers.sort
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-02 00:00:00.000000000 Z
12
+ date: 2015-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 1.8.23
177
+ rubygems_version: 1.8.23.2
178
178
  signing_key:
179
179
  specification_version: 2
180
180
  summary: DNS Synchronizer