origen 0.7.22 → 0.7.23

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: ac431b3c69fa97233c3cf47c28ba88f5acff4d63
4
- data.tar.gz: 1a0f88d62a1cfbfb7305106d2ca77b76d116590c
3
+ metadata.gz: 93745a8389b038130ff9ea3497ff7c20eb3b115a
4
+ data.tar.gz: 91edbedad884bbbcc8752e62e05c6f96b3d5d4d3
5
5
  SHA512:
6
- metadata.gz: d6c5f3f359a15736467ffa20a9c8369613f90ef0bae436ca9bbb9f193ed4701c61a9e18ee221561cca9727b0d88655df579ff51c99e6a91dcd9ee9e88d929d9a
7
- data.tar.gz: 960961ec6d3a0e3e2c236ccc81f5c6417ba235e1c5d7c89b2b47038dd41251ddf9dd83796389d70965aa69ff5eeaa1d4af2341080e730955eb76825ef4c28763
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
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 7
4
- BUGFIX = 22
4
+ BUGFIX = 23
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -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
@@ -46,6 +46,10 @@ module Origen
46
46
  end
47
47
  end
48
48
 
49
+ def stats
50
+ Origen.app.stats
51
+ end
52
+
49
53
  def relative_path_to(file)
50
54
  p = Pathname(file).relative_path_from(Pathname.pwd).to_s
51
55
  p.gsub!('/', '\\') if Origen.running_on_windows?
@@ -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
@@ -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
- if name =~ /part\d+/
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.22
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-04 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport