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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2132a4a72260fb1d26916e54867e01a908cd3ac3
4
- data.tar.gz: dc836887b1146e4b855e3de7ae19b433caee51af
3
+ metadata.gz: 0d0d658570a7bca8e87b0c6012b3508498779520
4
+ data.tar.gz: 713c7bb9a89325e9a478f2d0c37b623bff76c2e9
5
5
  SHA512:
6
- metadata.gz: dd78e8996a77fbdfeebf9cfbfa77527d9add9638d1a56f5db5e199bc271a06ea2d5e61f09721637c4d1d43607c8f7b1b61f187c01cf417128276ea05c41da211
7
- data.tar.gz: 6f0ca93f61795e64579b57f41efee8a673aa610c6ee5057c75106bdc147a9d5898a18e9e05bff4ccb99e45500f715f1ce7d949385bf98b9c45853e7e2078b2cf
6
+ metadata.gz: 5cc4a29abd85454d290410ab3640e4f381bcede00520848ff08370fa1390513345264b2b1d805a5a9ad3a9444cf600c3a823f7e1634a040eecc8ad3ce050e317
7
+ data.tar.gz: b06d42ab08d3690443780efae92bdf7262173fdf77e465e7b57640491a411bee5af94c605430b037395c87bbacecb69ab030ff6b536190e97c562c0dea759568
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 20
4
- BUGFIX = 2
4
+ BUGFIX = 3
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -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.2
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-07-13 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport