origen 0.60.7 → 0.60.8
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/rubocop/easy.yml +4875 -308
- data/config/rubocop/strict.yml +4875 -308
- data/config/version.rb +1 -1
- data/lib/origen/application/configuration.rb +6 -3
- data/lib/origen/application/deployer.rb +4 -4
- data/lib/origen/application/environment.rb +4 -2
- data/lib/origen/application/lsf.rb +23 -4
- data/lib/origen/application/lsf_manager.rb +48 -52
- data/lib/origen/application/plugins.rb +7 -7
- data/lib/origen/application/release.rb +5 -3
- data/lib/origen/application/runner.rb +5 -6
- data/lib/origen/application/statistics.rb +1 -0
- data/lib/origen/application/target.rb +9 -6
- data/lib/origen/application/version_tracker.rb +4 -5
- data/lib/origen/application/workspace_manager.rb +5 -2
- data/lib/origen/application.rb +9 -9
- data/lib/origen/boot/api.rb +3 -0
- data/lib/origen/boot/app.rb +28 -30
- data/lib/origen/boot.rb +1 -0
- data/lib/origen/bugs.rb +2 -2
- data/lib/origen/chip_mode.rb +7 -4
- data/lib/origen/chip_package.rb +50 -53
- data/lib/origen/chips/chip.rb +8 -4
- data/lib/origen/chips.rb +16 -12
- data/lib/origen/client.rb +1 -0
- data/lib/origen/clocks/clock.rb +8 -7
- data/lib/origen/clocks/clocks_collection.rb +2 -1
- data/lib/origen/code_generators/actions.rb +1 -1
- data/lib/origen/code_generators/base.rb +1 -1
- data/lib/origen/code_generators.rb +3 -0
- data/lib/origen/commands/archive.rb +1 -1
- data/lib/origen/commands/compile.rb +2 -2
- data/lib/origen/commands/fetch.rb +1 -1
- data/lib/origen/commands/generate.rb +3 -3
- data/lib/origen/commands/interactive.rb +6 -7
- data/lib/origen/commands/lint.rb +1 -1
- data/lib/origen/commands/lsf.rb +2 -2
- data/lib/origen/commands/new.rb +1 -1
- data/lib/origen/commands/plugin.rb +2 -2
- data/lib/origen/commands/program.rb +3 -3
- data/lib/origen/commands/rc.rb +4 -4
- data/lib/origen/commands/save.rb +1 -1
- data/lib/origen/commands/time.rb +4 -6
- data/lib/origen/commands/web.rb +5 -2
- data/lib/origen/commands.rb +1 -1
- data/lib/origen/componentable.rb +1 -0
- data/lib/origen/controller.rb +11 -13
- data/lib/origen/core_ext/array.rb +2 -1
- data/lib/origen/core_ext/enumerable.rb +4 -2
- data/lib/origen/core_ext/hash.rb +5 -6
- data/lib/origen/core_ext/integer.rb +2 -4
- data/lib/origen/core_ext/object.rb +2 -2
- data/lib/origen/core_ext/option_parser/optparse.rb +1 -1
- data/lib/origen/core_ext/string.rb +8 -8
- data/lib/origen/database/key_value_store.rb +12 -14
- data/lib/origen/database/key_value_stores.rb +1 -0
- data/lib/origen/errata/hw_erratum.rb +1 -1
- data/lib/origen/errata.rb +7 -8
- data/lib/origen/features/feature.rb +1 -0
- data/lib/origen/features.rb +4 -6
- data/lib/origen/file_handler.rb +8 -7
- data/lib/origen/fuses/fuse_field.rb +2 -2
- data/lib/origen/generator/compiler.rb +2 -4
- data/lib/origen/generator/job.rb +3 -2
- data/lib/origen/generator/pattern.rb +3 -3
- data/lib/origen/generator/pattern_finder.rb +6 -5
- data/lib/origen/generator/pattern_sequence.rb +3 -0
- data/lib/origen/generator/renderer.rb +3 -4
- data/lib/origen/generator/resources.rb +1 -1
- data/lib/origen/generator/stage.rb +3 -0
- data/lib/origen/limits/limit.rb +14 -11
- data/lib/origen/limits/limit_set.rb +2 -1
- data/lib/origen/loader.rb +4 -2
- data/lib/origen/log.rb +3 -2
- data/lib/origen/memory.rb +1 -0
- data/lib/origen/model.rb +10 -4
- data/lib/origen/models.rb +2 -2
- data/lib/origen/netlist/list.rb +1 -0
- data/lib/origen/netlist.rb +5 -7
- data/lib/origen/org_file/interceptor.rb +1 -1
- data/lib/origen/org_file.rb +4 -1
- data/lib/origen/parameters/set.rb +1 -0
- data/lib/origen/parameters.rb +3 -1
- data/lib/origen/pins/pin.rb +18 -12
- data/lib/origen/pins/pin_bank.rb +3 -0
- data/lib/origen/pins/pin_clock.rb +3 -2
- data/lib/origen/pins/pin_collection.rb +3 -0
- data/lib/origen/pins/timing/wave.rb +5 -0
- data/lib/origen/pins.rb +7 -1
- data/lib/origen/ports.rb +1 -1
- data/lib/origen/power_domains/power_domain.rb +5 -2
- data/lib/origen/power_domains/power_domains_collection.rb +2 -1
- data/lib/origen/registers/bit.rb +21 -17
- data/lib/origen/registers/bit_collection.rb +15 -6
- data/lib/origen/registers/reg.rb +34 -28
- data/lib/origen/registers.rb +25 -24
- data/lib/origen/remote_manager.rb +3 -2
- data/lib/origen/revision_control/base.rb +1 -4
- data/lib/origen/revision_control/design_sync.rb +10 -10
- data/lib/origen/revision_control/git.rb +4 -2
- data/lib/origen/site_config/config.rb +3 -1
- data/lib/origen/site_config.rb +3 -0
- data/lib/origen/specs/checkers.rb +12 -8
- data/lib/origen/specs/doc_resource.rb +3 -4
- data/lib/origen/specs/spec.rb +5 -1
- data/lib/origen/specs/version_history.rb +1 -1
- data/lib/origen/specs.rb +52 -37
- data/lib/origen/sub_blocks.rb +20 -14
- data/lib/origen/top_level.rb +2 -1
- data/lib/origen/users/user.rb +4 -5
- data/lib/origen/utility/csv_data.rb +6 -4
- data/lib/origen/utility/diff.rb +9 -9
- data/lib/origen/utility/file_diff.rb +4 -0
- data/lib/origen/utility/input_capture.rb +6 -6
- data/lib/origen/utility/mailer.rb +8 -11
- data/lib/origen/utility/time_and_date.rb +1 -2
- data/lib/origen/utility.rb +2 -2
- data/lib/origen/value.rb +2 -1
- data/lib/origen/version_string.rb +33 -41
- data/lib/origen.rb +62 -64
- data/origen_app_generators/origen_app_generators.gemspec +1 -1
- metadata +9 -27
- data/config/rubocop/easy_disabled.yml +0 -275
- data/config/rubocop/easy_enabled.yml +0 -727
- data/config/rubocop/strict_disabled.yml +0 -251
- data/config/rubocop/strict_enabled.yml +0 -751
|
@@ -7,8 +7,7 @@ module Origen
|
|
|
7
7
|
def time_now(options = {})
|
|
8
8
|
options = { underscore: false,
|
|
9
9
|
format: :human,
|
|
10
|
-
include_time: true
|
|
11
|
-
}.merge(options)
|
|
10
|
+
include_time: true }.merge(options)
|
|
12
11
|
|
|
13
12
|
# Nice description of time format options
|
|
14
13
|
# http://wesgarrison.us/2006/03/12/ruby-strftime-options-for-date-formatting/
|
data/lib/origen/utility.rb
CHANGED
|
@@ -2,7 +2,7 @@ module Origen
|
|
|
2
2
|
module Utility
|
|
3
3
|
autoload :Diff, 'origen/utility/diff'
|
|
4
4
|
autoload :Mailer, 'origen/utility/mailer'
|
|
5
|
-
autoload :CSV,
|
|
5
|
+
autoload :CSV, 'origen/utility/csv_data'
|
|
6
6
|
autoload :TimeAndDate, 'origen/utility/time_and_date'
|
|
7
7
|
autoload :InputCapture, 'origen/utility/input_capture'
|
|
8
8
|
autoload :BlockArgs, 'origen/utility/block_args'
|
|
@@ -64,7 +64,7 @@ module Origen
|
|
|
64
64
|
Regexp.new(regex) =~ regval
|
|
65
65
|
|
|
66
66
|
nibbles = []
|
|
67
|
-
(reg_or_val.size / 4).times do |n|
|
|
67
|
+
(reg_or_val.size / 4).times do |n| # now grouped by nibble
|
|
68
68
|
nibbles << Regexp.last_match[n + 1]
|
|
69
69
|
end
|
|
70
70
|
unless r == 0
|
data/lib/origen/value.rb
CHANGED
|
@@ -58,7 +58,7 @@ module Origen
|
|
|
58
58
|
when 'd'
|
|
59
59
|
@val = val.to_s[1..-1].to_i
|
|
60
60
|
else
|
|
61
|
-
if
|
|
61
|
+
if val =~ /^[0-9]+$/
|
|
62
62
|
@val = val.to_i
|
|
63
63
|
else
|
|
64
64
|
fail 'Unsupported value syntax'
|
|
@@ -107,6 +107,7 @@ module Origen
|
|
|
107
107
|
if index.is_a?(Range)
|
|
108
108
|
fail 'Currently, only single bit extraction from a Value object is supported'
|
|
109
109
|
end
|
|
110
|
+
|
|
110
111
|
val[index]
|
|
111
112
|
end
|
|
112
113
|
|
|
@@ -5,7 +5,7 @@ module Origen
|
|
|
5
5
|
|
|
6
6
|
# returns version number string but strips out prefix
|
|
7
7
|
def initialize(version, prefix = 'v')
|
|
8
|
-
version.gsub!(/^#{prefix}/, '')
|
|
8
|
+
version.gsub!(/^#{prefix}/, '') # remove leading prefix
|
|
9
9
|
super(version)
|
|
10
10
|
end
|
|
11
11
|
|
|
@@ -139,54 +139,46 @@ module Origen
|
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
def major
|
|
142
|
-
@major ||=
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
end
|
|
149
|
-
end
|
|
142
|
+
@major ||= if semantic?
|
|
143
|
+
self =~ /v?(\d+)/
|
|
144
|
+
Regexp.last_match[1].to_i
|
|
145
|
+
else
|
|
146
|
+
fail "#{self} is not a valid semantic version number!"
|
|
147
|
+
end
|
|
150
148
|
end
|
|
151
149
|
|
|
152
150
|
def minor
|
|
153
|
-
@minor ||=
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
end
|
|
160
|
-
end
|
|
151
|
+
@minor ||= if semantic?
|
|
152
|
+
self =~ /v?\d+.(\d+)/
|
|
153
|
+
Regexp.last_match[1].to_i
|
|
154
|
+
else
|
|
155
|
+
fail "#{self} is not a valid semantic version number!"
|
|
156
|
+
end
|
|
161
157
|
end
|
|
162
158
|
|
|
163
159
|
def bugfix
|
|
164
|
-
@bugfix ||=
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
end
|
|
171
|
-
end
|
|
160
|
+
@bugfix ||= if semantic?
|
|
161
|
+
self =~ /v?\d+.\d+.(\d+)/
|
|
162
|
+
Regexp.last_match[1].to_i
|
|
163
|
+
else
|
|
164
|
+
fail "#{self} is not a valid semantic version number!"
|
|
165
|
+
end
|
|
172
166
|
end
|
|
173
167
|
alias_method :tiny, :bugfix
|
|
174
168
|
|
|
175
169
|
def pre
|
|
176
|
-
@pre ||=
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
end
|
|
184
|
-
end
|
|
170
|
+
@pre ||= if semantic?
|
|
171
|
+
if self =~ /(dev|pre)(\d+)$/
|
|
172
|
+
Regexp.last_match[2].to_i
|
|
173
|
+
end
|
|
174
|
+
else
|
|
175
|
+
fail "#{self} is not a valid semantic version number!"
|
|
176
|
+
end
|
|
185
177
|
end
|
|
186
178
|
alias_method :dev, :pre
|
|
187
179
|
|
|
188
180
|
def latest?
|
|
189
|
-
downcase.
|
|
181
|
+
downcase.to_s.eql?('trunk') || downcase.to_s.eql?('latest')
|
|
190
182
|
end
|
|
191
183
|
|
|
192
184
|
# Returns true if the version is a timestamp format version number
|
|
@@ -220,7 +212,7 @@ module Origen
|
|
|
220
212
|
to_date == tag.to_date
|
|
221
213
|
false
|
|
222
214
|
else
|
|
223
|
-
numeric >= tag.numeric && ((
|
|
215
|
+
numeric >= tag.numeric && ((latest? || tag.latest?) || timestamp? == tag.timestamp?)
|
|
224
216
|
end
|
|
225
217
|
|
|
226
218
|
elsif condition =~ /^>\s*(.*)/
|
|
@@ -229,24 +221,24 @@ module Origen
|
|
|
229
221
|
to_date == tag.to_date
|
|
230
222
|
false
|
|
231
223
|
else
|
|
232
|
-
numeric > tag.numeric && ((
|
|
224
|
+
numeric > tag.numeric && ((latest? || tag.latest?) || timestamp? == tag.timestamp?)
|
|
233
225
|
end
|
|
234
226
|
|
|
235
227
|
elsif condition =~ /^<=\s*(.*)/
|
|
236
228
|
tag = validate_condition!(condition, Regexp.last_match[1])
|
|
237
|
-
numeric <= tag.numeric && ((
|
|
229
|
+
numeric <= tag.numeric && ((latest? || tag.latest?) || timestamp? == tag.timestamp?)
|
|
238
230
|
|
|
239
231
|
elsif condition =~ /^<\s*(.*)/
|
|
240
232
|
tag = validate_condition!(condition, Regexp.last_match[1])
|
|
241
|
-
numeric < tag.numeric && ((
|
|
233
|
+
numeric < tag.numeric && ((latest? || tag.latest?) || timestamp? == tag.timestamp?)
|
|
242
234
|
|
|
243
235
|
elsif condition =~ /^==?\s*(.*)/
|
|
244
236
|
tag = validate_condition!(condition, Regexp.last_match[1])
|
|
245
|
-
|
|
237
|
+
orig_equal?(tag)
|
|
246
238
|
|
|
247
239
|
else
|
|
248
240
|
tag = validate_condition!(condition, condition)
|
|
249
|
-
|
|
241
|
+
orig_equal?(tag)
|
|
250
242
|
end
|
|
251
243
|
end
|
|
252
244
|
|
data/lib/origen.rb
CHANGED
|
@@ -11,7 +11,8 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
11
11
|
# Keep a note of the pwd at the time when Origen was first loaded, this is initially used
|
|
12
12
|
# by the site_config lookup.
|
|
13
13
|
$_origen_invocation_pwd ||= Pathname.pwd
|
|
14
|
-
require
|
|
14
|
+
# duplicated require commented out below
|
|
15
|
+
# require 'fileutils'
|
|
15
16
|
# Force these to re-load since they could have been loaded from an earlier version of Origen during boot
|
|
16
17
|
load 'origen/loader.rb'
|
|
17
18
|
load 'origen/site_config.rb'
|
|
@@ -31,7 +32,7 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
31
32
|
require 'origen/undefined'
|
|
32
33
|
require 'origen/componentable'
|
|
33
34
|
|
|
34
|
-
autoload :PatSeq,
|
|
35
|
+
autoload :PatSeq, 'origen/generator/pattern_sequencer'
|
|
35
36
|
|
|
36
37
|
module Origen
|
|
37
38
|
autoload :Features, 'origen/features'
|
|
@@ -171,12 +172,11 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
171
172
|
def app!
|
|
172
173
|
file = caller[0]
|
|
173
174
|
path = @current_source_dir || Pathname.new(file).dirname
|
|
174
|
-
until File.exist?(File.join(path, APP_CONFIG)) || path.root?
|
|
175
|
-
path = path.parent
|
|
176
|
-
end
|
|
175
|
+
path = path.parent until File.exist?(File.join(path, APP_CONFIG)) || path.root?
|
|
177
176
|
if path.root?
|
|
178
177
|
fail "Something went wrong resoving Origen.app! from: #{caller[0]}"
|
|
179
178
|
end
|
|
179
|
+
|
|
180
180
|
find_app_by_root(path)
|
|
181
181
|
end
|
|
182
182
|
alias_method :application!, :app!
|
|
@@ -251,6 +251,7 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
251
251
|
app = _applications_lookup[:root][Pathname.new(path_to_origen_root).realpath.to_s]
|
|
252
252
|
end
|
|
253
253
|
return app if app
|
|
254
|
+
|
|
254
255
|
puts "Couldn't find application instance with root #{path_to_origen_root}, known roots are:"
|
|
255
256
|
_applications_lookup[:root].keys.each do |key|
|
|
256
257
|
puts " #{key}"
|
|
@@ -292,11 +293,10 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
292
293
|
# Returns true if Origen is running in an application workspace
|
|
293
294
|
def in_app_workspace?
|
|
294
295
|
return @in_app_workspace if defined? @in_app_workspace
|
|
296
|
+
|
|
295
297
|
@in_app_workspace ||= begin
|
|
296
298
|
path = Pathname.new(Dir.pwd)
|
|
297
|
-
until path.root? || File.exist?(File.join(path, APP_CONFIG))
|
|
298
|
-
path = path.parent
|
|
299
|
-
end
|
|
299
|
+
path = path.parent until path.root? || File.exist?(File.join(path, APP_CONFIG))
|
|
300
300
|
!path.root?
|
|
301
301
|
end
|
|
302
302
|
end
|
|
@@ -317,9 +317,7 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
317
317
|
else
|
|
318
318
|
@root ||= begin
|
|
319
319
|
path = Pathname.new(Dir.pwd)
|
|
320
|
-
until path.root? || File.exist?(File.join(path, APP_CONFIG))
|
|
321
|
-
path = path.parent
|
|
322
|
-
end
|
|
320
|
+
path = path.parent until path.root? || File.exist?(File.join(path, APP_CONFIG))
|
|
323
321
|
if path.root?
|
|
324
322
|
@running_globally = true
|
|
325
323
|
path = Pathname.new($_origen_invocation_pwd || Dir.pwd)
|
|
@@ -337,12 +335,11 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
337
335
|
def root!
|
|
338
336
|
file = caller[0]
|
|
339
337
|
path = Pathname.new(file).dirname
|
|
340
|
-
until path.root? || File.exist?(File.join(path, APP_CONFIG))
|
|
341
|
-
path = path.parent
|
|
342
|
-
end
|
|
338
|
+
path = path.parent until path.root? || File.exist?(File.join(path, APP_CONFIG))
|
|
343
339
|
if path.root?
|
|
344
340
|
fail "Something went wrong resolving Origen.root! from: #{caller[0]}"
|
|
345
341
|
end
|
|
342
|
+
|
|
346
343
|
path.realpath
|
|
347
344
|
end
|
|
348
345
|
|
|
@@ -396,6 +393,7 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
396
393
|
if max && listeners.size > max
|
|
397
394
|
fail "You can only define a #{callback} callback #{max > 1 ? (max.to_s + 'times') : 'once'}, however you have declared it #{listeners.size} times for instances of: #{listeners.map(&:class)}"
|
|
398
395
|
end
|
|
396
|
+
|
|
399
397
|
listeners
|
|
400
398
|
end
|
|
401
399
|
|
|
@@ -464,6 +462,7 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
464
462
|
def version(options = {})
|
|
465
463
|
@version = nil if options[:refresh]
|
|
466
464
|
return @version if @version && !options[:refresh]
|
|
465
|
+
|
|
467
466
|
if options[:refresh] || !defined?(Origen::VERSION)
|
|
468
467
|
load File.join(Pathname.new(File.dirname(__FILE__)).parent, 'config', 'version.rb')
|
|
469
468
|
end
|
|
@@ -475,56 +474,54 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
475
474
|
# In most cases this should never need to be called directly and will be called
|
|
476
475
|
# automatically the first time the application is referenced via Origen.app
|
|
477
476
|
def load_application(options = {})
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
end
|
|
527
|
-
end
|
|
477
|
+
# If running globally (outside of an app workspace), instantiate a bare bones app to help
|
|
478
|
+
# many of Origen's features that expect an app to be present.
|
|
479
|
+
@application ||= if running_globally?
|
|
480
|
+
@plugins_loaded = true
|
|
481
|
+
# Now load the app
|
|
482
|
+
@loading_top_level = true
|
|
483
|
+
require 'origen/global_app'
|
|
484
|
+
@application = _applications_lookup[:root][root.to_s]
|
|
485
|
+
@loading_top_level = false
|
|
486
|
+
@application_loaded = true
|
|
487
|
+
@application
|
|
488
|
+
else
|
|
489
|
+
# Make sure the top-level root is always in the load path, it seems that some existing
|
|
490
|
+
# plugins do some strange things to require stuff from the top-level app and rely on this
|
|
491
|
+
path = File.join(root, 'lib')
|
|
492
|
+
$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
|
|
493
|
+
if File.exist?(File.join(root, 'Gemfile')) && !@with_boot_environment
|
|
494
|
+
# Don't understand the rules here, belt and braces approach for now to make
|
|
495
|
+
# sure that all Origen plugins are auto-required (otherwise Origen won't know
|
|
496
|
+
# about them to plug them into the application)
|
|
497
|
+
Bundler.require
|
|
498
|
+
Bundler.require(:development)
|
|
499
|
+
Bundler.require(:runtime)
|
|
500
|
+
Bundler.require(:default)
|
|
501
|
+
end
|
|
502
|
+
@plugins_loaded = true
|
|
503
|
+
# Now load the app
|
|
504
|
+
@loading_top_level = true
|
|
505
|
+
require File.join(root, APP_CONFIG)
|
|
506
|
+
@application = _applications_lookup[:root][root.to_s]
|
|
507
|
+
@loading_top_level = false
|
|
508
|
+
if @with_boot_environment
|
|
509
|
+
@application.plugins.disable_current
|
|
510
|
+
else
|
|
511
|
+
Origen.remote_manager.require!
|
|
512
|
+
end
|
|
513
|
+
boot = File.join(root, 'config', 'boot.rb')
|
|
514
|
+
require boot if File.exist?(boot)
|
|
515
|
+
env = File.join(root, 'config', 'environment.rb')
|
|
516
|
+
require env if File.exist?(env)
|
|
517
|
+
dev = File.join(root, 'config', 'development.rb')
|
|
518
|
+
require dev if File.exist?(dev)
|
|
519
|
+
validate_origen_dev_configuration!
|
|
520
|
+
([@application] + Origen.app.plugins).each(&:on_loaded)
|
|
521
|
+
@application_loaded = true
|
|
522
|
+
Array(@after_app_loaded_blocks).each { |b| b.call(@application) }
|
|
523
|
+
@application
|
|
524
|
+
end
|
|
528
525
|
end
|
|
529
526
|
|
|
530
527
|
# Sometimes it is necessary to refer to the app instance before it is fully loaded, which can lead to runtime
|
|
@@ -638,6 +635,7 @@ unless defined? RGen::ORIGENTRANSITION
|
|
|
638
635
|
@current_user = nil if options[:refresh]
|
|
639
636
|
if app_loaded? || in_app_workspace?
|
|
640
637
|
return @switch_user unless @switch_user.nil?
|
|
638
|
+
|
|
641
639
|
@current_user ||= application.current_user
|
|
642
640
|
else
|
|
643
641
|
@current_user ||= User.new(User.current_user_id)
|
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.8.11".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib".freeze]
|
|
10
10
|
s.authors = ["Stephen McGinty".freeze]
|
|
11
|
-
s.date = "
|
|
11
|
+
s.date = "2023-03-02"
|
|
12
12
|
s.email = ["stephen.f.mcginty@gmail.com".freeze]
|
|
13
13
|
s.files = ["bin/boot.rb".freeze, "config/application.rb".freeze, "config/boot.rb".freeze, "config/commands.rb".freeze, "config/shared_commands.rb".freeze, "config/version.rb".freeze, "lib/origen_app_generators.rb".freeze, "lib/origen_app_generators/application.rb".freeze, "lib/origen_app_generators/base.rb".freeze, "lib/origen_app_generators/empty_application.rb".freeze, "lib/origen_app_generators/empty_plugin.rb".freeze, "lib/origen_app_generators/new.rb".freeze, "lib/origen_app_generators/new_app_tests.rb".freeze, "lib/origen_app_generators/origen_infrastructure/app_generator_plugin.rb".freeze, "lib/origen_app_generators/plugin.rb".freeze, "lib/origen_app_generators/test_engineering/common.rb".freeze, "lib/origen_app_generators/test_engineering/stand_alone_application.rb".freeze, "lib/origen_app_generators/test_engineering/test_block.rb".freeze, "templates/app_generators".freeze, "templates/app_generators/application".freeze, "templates/app_generators/application/.gitignore".freeze, "templates/app_generators/application/.irbrc".freeze, "templates/app_generators/application/.rspec".freeze, "templates/app_generators/application/.travis.yml".freeze, "templates/app_generators/application/Gemfile".freeze, "templates/app_generators/application/Rakefile".freeze, "templates/app_generators/application/app".freeze, "templates/app_generators/application/app/blocks".freeze, "templates/app_generators/application/app/blocks/top_level.rb".freeze, "templates/app_generators/application/app/lib".freeze, "templates/app_generators/application/app/lib/module.rb".freeze, "templates/app_generators/application/app/templates".freeze, "templates/app_generators/application/app/templates/web".freeze, "templates/app_generators/application/app/templates/web/index.md.erb".freeze, "templates/app_generators/application/app/templates/web/layouts".freeze, "templates/app_generators/application/app/templates/web/layouts/_basic.html.erb".freeze, "templates/app_generators/application/app/templates/web/partials".freeze, "templates/app_generators/application/app/templates/web/partials/_navbar.html.erb".freeze, "templates/app_generators/application/app/templates/web/release_notes.md.erb".freeze, "templates/app_generators/application/config".freeze, "templates/app_generators/application/config/application.rb".freeze, "templates/app_generators/application/config/boot.rb".freeze, "templates/app_generators/application/config/commands.rb".freeze, "templates/app_generators/application/config/maillist_dev.txt".freeze, "templates/app_generators/application/config/maillist_prod.txt".freeze, "templates/app_generators/application/config/version.rb".freeze, "templates/app_generators/application/doc".freeze, "templates/app_generators/application/doc/history".freeze, "templates/app_generators/application/dot_keep".freeze, "templates/app_generators/application/origen_core_session".freeze, "templates/app_generators/application/spec".freeze, "templates/app_generators/application/spec/spec_helper.rb".freeze, "templates/app_generators/application/target".freeze, "templates/app_generators/application/target/debug.rb".freeze, "templates/app_generators/application/target/default.rb".freeze, "templates/app_generators/application/target/production.rb".freeze, "templates/app_generators/new".freeze, "templates/app_generators/new/generator.rb".freeze, "templates/app_generators/new/info.md.erb".freeze, "templates/app_generators/origen_infrastructure".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/application.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/base.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/module.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/app/lib/plugin.rb".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/config".freeze, "templates/app_generators/origen_infrastructure/app_generator_plugin/config/load_generators.rb".freeze, "templates/app_generators/plugin".freeze, "templates/app_generators/plugin/Gemfile".freeze, "templates/app_generators/plugin/Rakefile".freeze, "templates/app_generators/plugin/app".freeze, "templates/app_generators/plugin/app/templates".freeze, "templates/app_generators/plugin/app/templates/web".freeze, "templates/app_generators/plugin/app/templates/web/index.md.erb".freeze, "templates/app_generators/plugin/app/templates/web/partials".freeze, "templates/app_generators/plugin/app/templates/web/partials/_navbar_external.html.erb".freeze, "templates/app_generators/plugin/app/templates/web/partials/_navbar_internal.html.erb".freeze, "templates/app_generators/plugin/config".freeze, "templates/app_generators/plugin/config/boot.rb".freeze, "templates/app_generators/plugin/gemspec.rb".freeze, "templates/app_generators/test_engineering".freeze, "templates/app_generators/test_engineering/environment".freeze, "templates/app_generators/test_engineering/environment/j750.rb".freeze, "templates/app_generators/test_engineering/environment/uflex.rb".freeze, "templates/app_generators/test_engineering/environment/v93k.rb".freeze, "templates/app_generators/test_engineering/stand_alone_application".freeze, "templates/app_generators/test_engineering/stand_alone_application/.keep".freeze, "templates/app_generators/test_engineering/test_block".freeze, "templates/app_generators/test_engineering/test_block/.keep".freeze]
|
|
14
14
|
s.homepage = "http://origen-sdk.org/origen_app_generators".freeze
|
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.60.
|
|
4
|
+
version: 0.60.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen McGinty
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -142,28 +142,28 @@ dependencies:
|
|
|
142
142
|
requirements:
|
|
143
143
|
- - "~>"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: '
|
|
145
|
+
version: '2.4'
|
|
146
146
|
type: :runtime
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: '
|
|
152
|
+
version: '2.4'
|
|
153
153
|
- !ruby/object:Gem::Dependency
|
|
154
154
|
name: rubocop
|
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
|
156
156
|
requirements:
|
|
157
157
|
- - '='
|
|
158
158
|
- !ruby/object:Gem::Version
|
|
159
|
-
version: '
|
|
159
|
+
version: '1.28'
|
|
160
160
|
type: :runtime
|
|
161
161
|
prerelease: false
|
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
|
163
163
|
requirements:
|
|
164
164
|
- - '='
|
|
165
165
|
- !ruby/object:Gem::Version
|
|
166
|
-
version: '
|
|
166
|
+
version: '1.28'
|
|
167
167
|
- !ruby/object:Gem::Dependency
|
|
168
168
|
name: coderay
|
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -324,28 +324,14 @@ dependencies:
|
|
|
324
324
|
requirements:
|
|
325
325
|
- - ">="
|
|
326
326
|
- !ruby/object:Gem::Version
|
|
327
|
-
version: 1.
|
|
327
|
+
version: 1.11.0
|
|
328
328
|
type: :runtime
|
|
329
329
|
prerelease: false
|
|
330
330
|
version_requirements: !ruby/object:Gem::Requirement
|
|
331
331
|
requirements:
|
|
332
332
|
- - ">="
|
|
333
333
|
- !ruby/object:Gem::Version
|
|
334
|
-
version: 1.
|
|
335
|
-
- !ruby/object:Gem::Dependency
|
|
336
|
-
name: cri
|
|
337
|
-
requirement: !ruby/object:Gem::Requirement
|
|
338
|
-
requirements:
|
|
339
|
-
- - "~>"
|
|
340
|
-
- !ruby/object:Gem::Version
|
|
341
|
-
version: 2.10.0
|
|
342
|
-
type: :runtime
|
|
343
|
-
prerelease: false
|
|
344
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
345
|
-
requirements:
|
|
346
|
-
- - "~>"
|
|
347
|
-
- !ruby/object:Gem::Version
|
|
348
|
-
version: 2.10.0
|
|
334
|
+
version: 1.11.0
|
|
349
335
|
- !ruby/object:Gem::Dependency
|
|
350
336
|
name: concurrent-ruby
|
|
351
337
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -373,11 +359,7 @@ files:
|
|
|
373
359
|
- config/boot.rb
|
|
374
360
|
- config/commands.rb
|
|
375
361
|
- config/rubocop/easy.yml
|
|
376
|
-
- config/rubocop/easy_disabled.yml
|
|
377
|
-
- config/rubocop/easy_enabled.yml
|
|
378
362
|
- config/rubocop/strict.yml
|
|
379
|
-
- config/rubocop/strict_disabled.yml
|
|
380
|
-
- config/rubocop/strict_enabled.yml
|
|
381
363
|
- config/version.rb
|
|
382
364
|
- helpers/guides.rb
|
|
383
365
|
- helpers/url.rb
|
|
@@ -749,7 +731,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
749
731
|
- !ruby/object:Gem::Version
|
|
750
732
|
version: 1.8.11
|
|
751
733
|
requirements: []
|
|
752
|
-
rubygems_version: 3.
|
|
734
|
+
rubygems_version: 3.0.1
|
|
753
735
|
signing_key:
|
|
754
736
|
specification_version: 4
|
|
755
737
|
summary: The Semiconductor Developer's Kit
|