origen 0.7.22 → 0.7.23
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/commands.rb +7 -0
- data/config/version.rb +1 -1
- data/lib/origen/application/configuration.rb +1 -1
- data/lib/origen/generator/comparator.rb +4 -0
- data/lib/origen/generator/flow.rb +1 -0
- data/lib/origen/generator/job.rb +15 -1
- data/lib/origen/generator/pattern.rb +1 -9
- 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: 93745a8389b038130ff9ea3497ff7c20eb3b115a
|
4
|
+
data.tar.gz: 91edbedad884bbbcc8752e62e05c6f96b3d5d4d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4e6949d31e47568c928342dde21191fd1c94beb111547d44bbd1781c0294147cde9676d8269eaafe444ebe527eb7febada8f2325a60ea4850953067c3bb7898
|
7
|
+
data.tar.gz: 518c7bf4e8d3a3ffcf403eba3f93c89863e1d401f2fd62f4ae26ef5912964eed3fce4095bbe7b22b10a261fc2f98dd99aa94f46bc18d2127c4dd65eda06867c0
|
data/config/commands.rb
CHANGED
@@ -8,6 +8,12 @@ aliases ={
|
|
8
8
|
|
9
9
|
case @command
|
10
10
|
|
11
|
+
when "tags"
|
12
|
+
Dir.chdir Origen.root do
|
13
|
+
system "ripper-tags --recursive lib"
|
14
|
+
end
|
15
|
+
exit 0
|
16
|
+
|
11
17
|
when "specs"
|
12
18
|
require "rspec"
|
13
19
|
exit RSpec::Core::Runner.run(['spec'])
|
@@ -65,6 +71,7 @@ else
|
|
65
71
|
examples Run the examples (acceptance tests), -c will enable coverage
|
66
72
|
test Run both specs and examples, -c will enable coverage
|
67
73
|
regression Test the regression manager (runs a subset of examples)
|
74
|
+
tags Generate ctags for this app
|
68
75
|
EOT
|
69
76
|
|
70
77
|
end
|
data/config/version.rb
CHANGED
@@ -187,7 +187,7 @@ module Origen
|
|
187
187
|
# user can be prompted to upgrade
|
188
188
|
def method_missing(method, *_args, &_block)
|
189
189
|
method = method.to_s.sub('=', '')
|
190
|
-
Origen.log.warning "WARNING - unknown configuration attribute: #{method}"
|
190
|
+
Origen.log.warning "WARNING - unknown configuration attribute in #{app.name}: #{method}"
|
191
191
|
end
|
192
192
|
end
|
193
193
|
end
|
@@ -38,6 +38,7 @@ module Origen
|
|
38
38
|
Origen.interface.startup(options) if Origen.interface.respond_to?(:startup)
|
39
39
|
interface.instance_eval(&block)
|
40
40
|
Origen.interface.shutdown(options) if Origen.interface.respond_to?(:shutdown)
|
41
|
+
interface.at_flow_end if interface.respond_to?(:at_flow_end)
|
41
42
|
interface.close(flow: true)
|
42
43
|
end
|
43
44
|
end
|
data/lib/origen/generator/job.rb
CHANGED
@@ -3,6 +3,7 @@ module Origen
|
|
3
3
|
# A job is responsible for executing a single pattern source
|
4
4
|
class Job # :nodoc: all
|
5
5
|
attr_accessor :output_file_body, :pattern
|
6
|
+
attr_reader :split_counter
|
6
7
|
|
7
8
|
def initialize(pattern, options)
|
8
9
|
@testing = options[:testing]
|
@@ -20,6 +21,11 @@ module Origen
|
|
20
21
|
@no_comments
|
21
22
|
end
|
22
23
|
|
24
|
+
def inc_split_counter
|
25
|
+
@split_counter ||= 0
|
26
|
+
@split_counter += 1
|
27
|
+
end
|
28
|
+
|
23
29
|
def requested_pattern
|
24
30
|
@requested_pattern
|
25
31
|
end
|
@@ -45,7 +51,7 @@ module Origen
|
|
45
51
|
fail 'Sorry the output_pattern is not available until the job has been run'
|
46
52
|
end
|
47
53
|
body = @output_file_body ? @output_file_body : File.basename(@pattern, '.rb')
|
48
|
-
output_prefix + body + output_postfix + output_extension
|
54
|
+
output_prefix + body + output_postfix + split_number + output_extension
|
49
55
|
end
|
50
56
|
|
51
57
|
# This can be modified at runtime by the pattern generator in response to
|
@@ -94,6 +100,14 @@ module Origen
|
|
94
100
|
'.' + Origen.tester.pat_extension
|
95
101
|
end
|
96
102
|
|
103
|
+
def split_number
|
104
|
+
if split_counter
|
105
|
+
"_part#{split_counter}"
|
106
|
+
else
|
107
|
+
''
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
97
111
|
def run
|
98
112
|
Origen.app.current_job = self
|
99
113
|
begin
|
@@ -164,16 +164,8 @@ module Origen
|
|
164
164
|
# Each additional pattern section created by calling this method
|
165
165
|
# will have '_partN' appended to the original pattern name.
|
166
166
|
def split(options = {})
|
167
|
-
@split_counter ||= 0
|
168
|
-
@split_counter += 1
|
169
|
-
name = job.output_file_body
|
170
167
|
pattern_close(options.merge(call_shutdown_callbacks: false))
|
171
|
-
|
172
|
-
name.gsub!(/part\d+/, "part#{@split_counter}")
|
173
|
-
else
|
174
|
-
name = "#{name}_part#{@split_counter}"
|
175
|
-
end
|
176
|
-
job.output_file_body = name
|
168
|
+
job.inc_split_counter
|
177
169
|
pattern_open(options.merge(call_startup_callbacks: false))
|
178
170
|
end
|
179
171
|
|
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.7.
|
4
|
+
version: 0.7.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen McGinty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|