record_store 5.0.5 → 5.1.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: 8898e68756f44cc7777bfbbff84d9806eeace0ed
4
- data.tar.gz: 861fc60403a348b1c2c2fe0bf551a935e1a747ff
3
+ metadata.gz: 6dcb75706a66459aa8636dc5257c15a169f26be4
4
+ data.tar.gz: 0320d901362a8038e4cf9c669c141f93164a5295
5
5
  SHA512:
6
- metadata.gz: fbc65b2ee1998c5f13bd28025892b1433716e0c74c1e7e44a50b6e5550ecb66913acda076224a85c4059dcc878835bb02ec195adc80460a9c1177b8c46408d2d
7
- data.tar.gz: ea7ab36879e1c6cae29573f9d51140a00e4f7a447563764f877dc4556b23f4f81bffe2f193137587f2c359011d72239ccb8a3b38750cd3163743540881917b86
6
+ metadata.gz: f25419a2bedeff0d057ab9abc23cfb4a0dbb846335712ae14a01fe7191b82033d34fa59f33e8a9e4ef210368ce38af9c2ec08e65c8f7f2e6e84c6ab7e9a374c6
7
+ data.tar.gz: 0d10b2ecc4b5246428a6ae53074301f6bcab0eda11586f312bce803572ee73551247eb12a28e693f18bf52739644730c096a6988c14deb1aa59fe3402c574526
data/.travis.yml ADDED
@@ -0,0 +1,11 @@
1
+ cache: bundler
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+
6
+ before_install:
7
+ - gem update --system
8
+ - gem --version
9
+
10
+ before_script:
11
+ - bin/setup
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 5.1.0
4
+ - use concurrent sessions when multi-threaded to avoid "This session already has a job running" errors. [BUGFIX]
5
+
3
6
  ## 5.0.5
4
7
  - Output progress messages for GoogleCloudDNS provider too. [BUGFIX]
5
8
  - Fix quoting/escaping for TXT records. [BUGFIX]
@@ -13,5 +16,4 @@
13
16
  - Use DNSimple API v2 (via fog-dnsimple gem update).
14
17
 
15
18
  ## 4.0.7
16
-
17
19
  - Fix issue updating records with same FQDN. [BUGFIX]
@@ -65,7 +65,7 @@ module RecordStore
65
65
  end
66
66
 
67
67
  def session
68
- @dns ||= Fog::DNS.new(session_params)
68
+ Thread.current[:dns] ||= Fog::DNS.new(session_params)
69
69
  end
70
70
 
71
71
  def session_params
@@ -1,3 +1,3 @@
1
1
  module RecordStore
2
- VERSION = '5.0.5'.freeze
2
+ VERSION = '5.1.0'.freeze
3
3
  end
@@ -50,13 +50,7 @@ module RecordStore
50
50
  current_zone = nil
51
51
  while not zones.empty?
52
52
  mutex.synchronize { current_zone = zones.shift }
53
- begin
54
- mutex.synchronize { modified_zones << current_zone } unless current_zone.unchanged?
55
- rescue Excon::Error::BadRequest => e
56
- raise e unless e.response.body.include?('session already has a job')
57
- puts "DynECT session collision for #{current_zone.name}" if verbose
58
- mutex.synchronize { zones.push(current_zone) }
59
- end
53
+ mutex.synchronize { modified_zones << current_zone } unless current_zone.unchanged?
60
54
  end
61
55
  end
62
56
  end.each(&:join)
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.0.5
4
+ version: 5.1.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-04-02 00:00:00.000000000 Z
12
+ date: 2018-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -246,6 +246,7 @@ extensions: []
246
246
  extra_rdoc_files: []
247
247
  files:
248
248
  - ".gitignore"
249
+ - ".travis.yml"
249
250
  - CHANGELOG.md
250
251
  - Gemfile
251
252
  - LICENSE
@@ -255,7 +256,6 @@ files:
255
256
  - bin/record-store
256
257
  - bin/setup
257
258
  - bin/test
258
- - circle.yml
259
259
  - dev.yml
260
260
  - lib/record_store.rb
261
261
  - lib/record_store/changeset.rb
data/circle.yml DELETED
@@ -1,8 +0,0 @@
1
- machine:
2
- ruby:
3
- version: 2.3.1
4
-
5
- test:
6
- override:
7
- - bin/setup
8
- - bundle exec rake test