test_ids 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e963cca8db8bfc9c15741d5e5e620cc3582703b
4
- data.tar.gz: b7250f030f057c075b7ce5f7bf1c6054c90864b9
3
+ metadata.gz: 37c789ce62a0733ee6b52dc37f744988ca6d06af
4
+ data.tar.gz: 9061057b8a40d7e53486f660f5ca2dc129eb50c3
5
5
  SHA512:
6
- metadata.gz: 5327a30fd17e678f725faf46d11ca1ab9a86baf38881a9f4232fae552b042820bcba5081eed197824ce027d2883b2f0401ffb6c99e4e2cfc35cb341a96a23a1a
7
- data.tar.gz: 16ccb7b495d788b92057cdc0346eb03063b2d8a199decb6305b2121227e0a6e288c7038e81d555f2989d5ce32413953925e1398fb2c21407c3b0203a04ce6fbe
6
+ metadata.gz: 421f88b79a4cc33f63bba116fbceda095828c2273bcc061450f3a119649e8295f4045ec4dac3086af9b7d4e2264e4d30f679fab0d4c46003585dd46d111e1de5
7
+ data.tar.gz: 3db7247b32e50c47501202333fd38fc0a7b9e85fe323aa96ead79f697c279477a3bebd219b1a209ea76e257c6305ee1ccf1ca7f53b1f7e1527dc79dd53a43a79
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module TestIds
2
2
  MAJOR = 0
3
3
  MINOR = 6
4
- BUGFIX = 0
4
+ BUGFIX = 1
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -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
- Origen.log "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)"
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.0
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-02-09 00:00:00.000000000 Z
11
+ date: 2017-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: origen