origen 0.20.1 → 0.20.2
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/origen/database/key_value_store.rb +17 -0
- data/lib/origen/database/key_value_stores.rb +4 -0
- data/lib/origen/file_handler.rb +1 -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: 2132a4a72260fb1d26916e54867e01a908cd3ac3
|
4
|
+
data.tar.gz: dc836887b1146e4b855e3de7ae19b433caee51af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd78e8996a77fbdfeebf9cfbfa77527d9add9638d1a56f5db5e199bc271a06ea2d5e61f09721637c4d1d43607c8f7b1b61f187c01cf417128276ea05c41da211
|
7
|
+
data.tar.gz: 6f0ca93f61795e64579b57f41efee8a673aa610c6ee5057c75106bdc147a9d5898a18e9e05bff4ccb99e45500f715f1ce7d949385bf98b9c45853e7e2078b2cf
|
data/config/version.rb
CHANGED
@@ -60,6 +60,23 @@ module Origen
|
|
60
60
|
@private
|
61
61
|
end
|
62
62
|
|
63
|
+
# Check if the store has a key
|
64
|
+
def has_key?(key)
|
65
|
+
store.include? key
|
66
|
+
end
|
67
|
+
|
68
|
+
# Remove the session file in the case it gets corrupted
|
69
|
+
# This can happen when a complex object is not handled
|
70
|
+
# correctly by the Marshal method.
|
71
|
+
def rm_session_file
|
72
|
+
FileUtils.rm_f(file)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Deletes a key from the active store
|
76
|
+
def delete_key(key)
|
77
|
+
store.delete(key)
|
78
|
+
end
|
79
|
+
|
63
80
|
private
|
64
81
|
|
65
82
|
def dssc
|
data/lib/origen/file_handler.rb
CHANGED
@@ -171,8 +171,8 @@ module Origen
|
|
171
171
|
Dir.glob("#{options[:default_dir]}/#{file}")).sort
|
172
172
|
if matches.size == 0
|
173
173
|
matches = Dir.glob("#{options[:default_dir]}/**{,/*/**}/#{file}").sort # Takes symlinks into consideration
|
174
|
-
matches = matches.flatten.uniq
|
175
174
|
end
|
175
|
+
matches = matches.flatten.uniq
|
176
176
|
end
|
177
177
|
|
178
178
|
if matches.size == 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: origen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
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-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|