record_store 5.1.1 → 5.2.0

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: b5cb3406cfda8cfa5c9153b2528ab20fecbf9862
4
- data.tar.gz: 0baf9c52b9ca502c00f1bdb4222b3ba01f4efdd4
3
+ metadata.gz: f2a3ee11fbdf1ec9f6ad3d6442e208eddce4f0f9
4
+ data.tar.gz: 91ab6e5a24b817e79d3a5df26e9a023f8448ddaf
5
5
  SHA512:
6
- metadata.gz: 07b6782e6c75f1402fef0e8841fa926ec7ed0ca57e77c9cd45cc433e36ae060fda7ab4ea87de67d3b08ed4ac329db032bda2251a2558c1e4481842ecd0b4dd94
7
- data.tar.gz: 9c10a3f5e1a0fc79808664d6f6ae3c9cea997a36cc2b221b2895b1a7a93e3906b4e0358eb055935aed79e37d7e365bc08d1cb11203a7a2f51214038ff3f1f55a
6
+ metadata.gz: c542eaaa098aa6e80f8e15307deb0ebc5311a7e2c0e88b672ac4745d286dfcfa1ff0f8b80a074239bc0a2f0d4a15e559ee5b50287df48b8b8c4fff2ec30d865a
7
+ data.tar.gz: 0bd9400213e110b1d38f640552a60e86fd25323779fcbb57ca1c0186894c261285a0e178fcaea08d30b21dba4b591439ada66ce50e20421fb081ef51b80e33f4
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 5.2.0
4
+ - limit request rate for DynECT API to avoid 429 errors [FEATURE]
5
+
6
+ ## 5.1.1
7
+ - allow underscore in CNAME as per RFC [BUGFIX]
8
+
3
9
  ## 5.1.0
4
10
  - use concurrent sessions when multi-threaded to avoid "This session already has a job running" errors. [BUGFIX]
5
11
 
@@ -1,4 +1,8 @@
1
1
  require 'fog/dynect'
2
+ require 'limiter'
3
+
4
+ Fog::DNS::Dynect::Real.extend Limiter::Mixin
5
+ Fog::DNS::Dynect::Real.limit_method :request, rate: 5, interval: 1 # 5 RPS == 300 RPM
2
6
 
3
7
  module RecordStore
4
8
  class Provider::DynECT < Provider
@@ -1,3 +1,3 @@
1
1
  module RecordStore
2
- VERSION = '5.1.1'.freeze
2
+ VERSION = '5.2.0'.freeze
3
3
  end
@@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_runtime_dependency 'fog-dynect', '~> 0.2.0'
31
31
  spec.add_runtime_dependency 'dnsimple-ruby', '~> 2.0'
32
32
  spec.add_runtime_dependency 'google-cloud-dns'
33
+ spec.add_runtime_dependency 'ruby-limiter', '~> 1.0', '>= 1.0.1'
33
34
 
34
35
  spec.add_development_dependency 'rake'
35
36
  spec.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: record_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willem van Bergen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-07-05 00:00:00.000000000 Z
12
+ date: 2018-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -151,6 +151,26 @@ dependencies:
151
151
  - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: ruby-limiter
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - "~>"
159
+ - !ruby/object:Gem::Version
160
+ version: '1.0'
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: 1.0.1
164
+ type: :runtime
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '1.0'
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 1.0.1
154
174
  - !ruby/object:Gem::Dependency
155
175
  name: rake
156
176
  requirement: !ruby/object:Gem::Requirement