docker_toolkit 0.1.24 → 0.1.25

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
  SHA256:
3
- metadata.gz: 85978a9db4853009d0f8546931b9d516de42cd26170a71dcd1c8ec167ea6175a
4
- data.tar.gz: 2a0b807b2492f6567cbaf774b249d84e24f30a9d69c8840d9045950ee129e454
3
+ metadata.gz: 44fc48c8b8bf21989b9be9bb59601c1f53a81db9c33bb1948f80c6b9583b77f6
4
+ data.tar.gz: c6f049c3a6dbc2a550608b1b82d1446a83c9edfff9b0a603e7c7a53b74ce3869
5
5
  SHA512:
6
- metadata.gz: dabbbdee8543c426eda1afec5294b26b7ea4827eb2845050357505059cb792957f4b1992aba3bb7ae1a194ea24c03744492dd982d331d9ffc00773946fb66441
7
- data.tar.gz: d0dd1c5f840ac43d1894c5140b1f66311e5203f246052e666dd9c37625633df1e6d1ce89f8dc3b31468115433df8337f68d6ecb340df029077abbae95df37717
6
+ metadata.gz: 0604dac84255d0d23836b7d9dac8687fe462f88948b6434de96febc0dd098c045bba1a1c7a2accff90a10c9fd6f832b7c1dbe3fbeaca4d58764c2825d2994a62
7
+ data.tar.gz: 63209b9d5b7cd31a5c03cce3e946ff0596dd1c796d5684f189ec5c1d04280ae700888713d59d65ab7f41bfa00d4d1f212c886c5a74b5a364257df59655bbbbe1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker_toolkit (0.1.24)
4
+ docker_toolkit (0.1.25)
5
5
  diplomat
6
6
  dotenv
7
7
  json
data/bin/locker.rb CHANGED
@@ -2,10 +2,9 @@
2
2
 
3
3
  require 'optparse'
4
4
  require 'diplomat'
5
- require 'json'
6
5
 
7
6
  @opts = {
8
- url: 'http://localhost:8080',
7
+ url: 'http://localhost:8500',
9
8
  timeout: 10,
10
9
  ttl: 30*60,
11
10
  }
@@ -40,8 +39,8 @@ parser.parse!
40
39
 
41
40
 
42
41
  def lock session, locker, timeout
43
- Timeout::timeout(timeout) do
44
- return Diplomat::Lock.wait_to_acquire("/resource/#{locker[:resource]}/lock", session, locker.to_json, 10)
42
+ Timeout::timeout(timeout) do
43
+ return Diplomat::Lock.wait_to_acquire("resource/#{locker[:resource]}/lock", session, locker.to_json, 10)
45
44
  end
46
45
 
47
46
  rescue Timeout::Error => e
@@ -1,5 +1,5 @@
1
1
  module DockerToolkit
2
2
 
3
- VERSION = '0.1.24'.freeze
3
+ VERSION = '0.1.25'.freeze
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Godko Ivan