origen 0.29.0 → 0.30.0
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 +4 -4
- data/config/version.rb +1 -1
- data/lib/origen/site_config.rb +19 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24fa93bb3395c5d472af5111b4cf2c7424ddb8fb
|
4
|
+
data.tar.gz: 2115fdaa3ad10e8c5bad07e0693c1aea2f9484d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e2ced12f38f092dfbcc1ff1da469aca527de65decc950050d9b482b4059d1c5613ed8fb627c509519f6275f0c43db4c21d9c20c34012345654ef1006a45d2df
|
7
|
+
data.tar.gz: 36270d0d55c0f772399a9afbf8380bdc535aa8ad0c047734ab032df1913101c82bb48845e2c56129e757b99c5782e31eca15f7583269a062ff9cc4fa9e8187b0
|
data/config/version.rb
CHANGED
data/lib/origen/site_config.rb
CHANGED
@@ -54,8 +54,11 @@ module Origen
|
|
54
54
|
append = find_val('append_dot_origen')
|
55
55
|
append = '.origen' if append == true || append.nil?
|
56
56
|
|
57
|
+
gem_append = find_val('append_gems')
|
58
|
+
gem_append = 'gems' if gem_append == true || gem_append.nil?
|
59
|
+
|
57
60
|
if append
|
58
|
-
unless path.end_with?(append)
|
61
|
+
unless path.end_with?(append) || (path.end_with?(File.join(append, gem_append)) if gem_append)
|
59
62
|
path = File.join(path, append)
|
60
63
|
end
|
61
64
|
end
|
@@ -182,6 +185,8 @@ module Origen
|
|
182
185
|
end
|
183
186
|
|
184
187
|
# Forces a reparse of the site configs.
|
188
|
+
# This will set the @configs along the current path first,
|
189
|
+
# then, using those values, will add a site config at the home directory.
|
185
190
|
def configs!
|
186
191
|
@configs = begin
|
187
192
|
# This global is set when Origen is first required, it generally means that what is considered
|
@@ -200,6 +205,7 @@ module Origen
|
|
200
205
|
configs << YAML.load_file(file) if File.exist?(file) && YAML.load_file(file)
|
201
206
|
path = path.parent
|
202
207
|
end
|
208
|
+
|
203
209
|
# Add and any site_configs from the directory hierarchy where Ruby is installed
|
204
210
|
path = Pathname.new($LOAD_PATH.last)
|
205
211
|
until path.root?
|
@@ -207,21 +213,23 @@ module Origen
|
|
207
213
|
configs << YAML.load_file(file) if File.exist?(file) && YAML.load_file(file)
|
208
214
|
path = path.parent
|
209
215
|
end
|
216
|
+
|
210
217
|
# Add the one from the Origen core as the lowest priority, this one defines
|
211
218
|
# the default values
|
212
219
|
configs << YAML.load_file(File.expand_path('../../../origen_site_config.yml', __FILE__))
|
213
|
-
# Add the site_config from the user's home directory as highest priority, if it exists
|
214
|
-
# But, make sure we take the site installation's setup into account.
|
215
|
-
# That is, if user's home directories are somewhere else, make sure we use that directory to the find
|
216
|
-
# the user's overwrite file. The user can then override that if they want."
|
217
|
-
install_path = configs.find { |c| c.key?('home_dir') }
|
218
|
-
install_path = install_path ? install_path['home_dir'] : nil
|
219
|
-
install_path.nil? ? user_config = nil : user_config = File.join(File.expand_path(install_path), 'origen_site_config.yml')
|
220
|
-
if user_config && File.exist?(user_config)
|
221
|
-
configs.unshift(YAML.load_file(user_config)) if YAML.load_file(user_config)
|
222
|
-
end
|
223
220
|
configs
|
224
221
|
end
|
222
|
+
|
223
|
+
# Add the site_config from the user's home directory as highest priority, if it exists
|
224
|
+
# But, make sure we take the site installation's setup into account.
|
225
|
+
# That is, if user's home directories are somewhere else, make sure we use that directory to the find
|
226
|
+
# the user's overwrite file. The user can then override that if they want."
|
227
|
+
user_config = File.join(File.expand_path(user_install_dir), 'origen_site_config.yml')
|
228
|
+
if File.exist?(user_config)
|
229
|
+
@configs.unshift(YAML.load_file(user_config)) if YAML.load_file(user_config)
|
230
|
+
end
|
231
|
+
|
232
|
+
@configs
|
225
233
|
end
|
226
234
|
end
|
227
235
|
|
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.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -637,7 +637,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
637
637
|
version: 1.8.11
|
638
638
|
requirements: []
|
639
639
|
rubyforge_project:
|
640
|
-
rubygems_version: 2.6.
|
640
|
+
rubygems_version: 2.6.7
|
641
641
|
signing_key:
|
642
642
|
specification_version: 4
|
643
643
|
summary: The Semiconductor Developer's Kit
|