test_ids 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/test_ids/allocator.rb +3 -0
- data/lib/test_ids/git.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37c789ce62a0733ee6b52dc37f744988ca6d06af
|
4
|
+
data.tar.gz: 9061057b8a40d7e53486f660f5ca2dc129eb50c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 421f88b79a4cc33f63bba116fbceda095828c2273bcc061450f3a119649e8295f4045ec4dac3086af9b7d4e2264e4d30f679fab0d4c46003585dd46d111e1de5
|
7
|
+
data.tar.gz: 3db7247b32e50c47501202333fd38fc0a7b9e85fe323aa96ead79f697c279477a3bebd219b1a209ea76e257c6305ee1ccf1ca7f53b1f7e1527dc79dd53a43a79
|
data/config/version.rb
CHANGED
data/lib/test_ids/allocator.rb
CHANGED
@@ -85,6 +85,9 @@ module TestIds
|
|
85
85
|
# Saves the current allocator state to the repository
|
86
86
|
def save
|
87
87
|
if file
|
88
|
+
# Ensure the current store has been loaded before we try to re-write it, this
|
89
|
+
# is necessary if the program generator has crashed before creating a test
|
90
|
+
store
|
88
91
|
p = Pathname.new(file)
|
89
92
|
FileUtils.mkdir_p(p.dirname)
|
90
93
|
File.open(p, 'w') { |f| f.puts JSON.pretty_generate(store) }
|
data/lib/test_ids/git.rb
CHANGED
@@ -120,7 +120,9 @@ module TestIds
|
|
120
120
|
return if @lock_open
|
121
121
|
Origen.profile 'Obtaining test IDs lock' do
|
122
122
|
until available_to_lock?
|
123
|
-
|
123
|
+
puts
|
124
|
+
puts "Waiting for lock, currently locked by #{lock_user} (the lock will expire in less than #{lock_minutes_remaining} #{'minute'.pluralize(lock_minutes_remaining)} if not released before that)"
|
125
|
+
puts
|
124
126
|
sleep 5
|
125
127
|
end
|
126
128
|
data = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_ids
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: origen
|