origen 0.20.2 → 0.20.3
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 +7 -0
- data/lib/origen/generator/pattern_finder.rb +5 -0
- 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: 0d0d658570a7bca8e87b0c6012b3508498779520
|
4
|
+
data.tar.gz: 713c7bb9a89325e9a478f2d0c37b623bff76c2e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cc4a29abd85454d290410ab3640e4f381bcede00520848ff08370fa1390513345264b2b1d805a5a9ad3a9444cf600c3a823f7e1634a040eecc8ad3ce050e317
|
7
|
+
data.tar.gz: b06d42ab08d3690443780efae92bdf7262173fdf77e465e7b57640491a411bee5af94c605430b037395c87bbacecb69ab030ff6b536190e97c562c0dea759568
|
data/config/version.rb
CHANGED
@@ -75,6 +75,13 @@ module Origen
|
|
75
75
|
# Deletes a key from the active store
|
76
76
|
def delete_key(key)
|
77
77
|
store.delete(key)
|
78
|
+
save_to_file
|
79
|
+
load_from_file
|
80
|
+
end
|
81
|
+
|
82
|
+
# Return an array of store keys, excluding the 'infrastructure' key(s)
|
83
|
+
def keys
|
84
|
+
store.keys - [:refresh_interval_in_minutes]
|
78
85
|
end
|
79
86
|
|
80
87
|
private
|
@@ -42,6 +42,11 @@ module Origen
|
|
42
42
|
# Don't want to do this up front since it is possible that some patterns
|
43
43
|
# will actually have an explicit value in the name.
|
44
44
|
translation = Origen.config.pattern_name_translator(name)
|
45
|
+
# Give the current plugin a go at translating the name if the current application
|
46
|
+
# has not modified it
|
47
|
+
if translation == name && Origen.app.plugins.current
|
48
|
+
translation = Origen.app.plugins.current.config.pattern_name_translator(name)
|
49
|
+
end
|
45
50
|
if translation
|
46
51
|
if translation.is_a?(Hash)
|
47
52
|
name = translation[:source]
|
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.3
|
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-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|