origen 0.7.30 → 0.7.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/version.rb +1 -1
- data/lib/origen/generator/flow.rb +6 -0
- data/lib/origen/model_initializer.rb +7 -0
- data/lib/origen/revision_control/git.rb +1 -1
- 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: 4fac3698db2dd4c2f9e76c4d69e4c3978a3afba2
|
4
|
+
data.tar.gz: c012add50e18d3e3514349108d2a728068c6404a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68dd0a476af5fe6ac816bf54f2135ee23abdf68bbac1e13002db30ce25518522a4d97a9b3398cbe4a7ad860b91baa8a7c8d390d70ad0f4baa57e0c2c2874372
|
7
|
+
data.tar.gz: fd66ca810a030294c6bccfbd86af22053ceb418738e75856475ed52b0285e9a6b8fa0ab8aac6c838d47637bac4f5feb27e83ed865f69edd15277162fd6570dae
|
data/config/version.rb
CHANGED
@@ -35,10 +35,16 @@ module Origen
|
|
35
35
|
Origen.interface.set_top_level_flow
|
36
36
|
Origen.interface.flow_generator.set_flow_description(Origen.interface.consume_comments)
|
37
37
|
options[:top_level] = true
|
38
|
+
Origen.app.listeners_for(:on_flow_start).each do |listener|
|
39
|
+
listener.on_flow_start(options)
|
40
|
+
end
|
38
41
|
Origen.interface.startup(options) if Origen.interface.respond_to?(:startup)
|
39
42
|
interface.instance_eval(&block)
|
40
43
|
Origen.interface.shutdown(options) if Origen.interface.respond_to?(:shutdown)
|
41
44
|
interface.at_flow_end if interface.respond_to?(:at_flow_end)
|
45
|
+
Origen.app.listeners_for(:on_flow_end).each do |listener|
|
46
|
+
listener.on_flow_end(options)
|
47
|
+
end
|
42
48
|
interface.close(flow: true)
|
43
49
|
end
|
44
50
|
end
|
@@ -24,6 +24,13 @@ module Origen
|
|
24
24
|
options.each do |k, v|
|
25
25
|
x.send(:instance_variable_set, "@#{k}", v) if x.respond_to?(k)
|
26
26
|
end
|
27
|
+
if x.respond_to?(:pre_initialize)
|
28
|
+
if x.method(:pre_initialize).arity == 0
|
29
|
+
x.send(:pre_initialize, &block)
|
30
|
+
else
|
31
|
+
x.send(:pre_initialize, *args, &block)
|
32
|
+
end
|
33
|
+
end
|
27
34
|
if x.method(:initialize).arity == 0
|
28
35
|
x.send(:initialize, &block)
|
29
36
|
else
|
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.31
|
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-09-
|
11
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|