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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 904f4e3e176b378153d0896091c96141efe8db9b
4
- data.tar.gz: 2b109b80da43f30c5fe7ad5392d9d786d8f363bb
3
+ metadata.gz: 4fac3698db2dd4c2f9e76c4d69e4c3978a3afba2
4
+ data.tar.gz: c012add50e18d3e3514349108d2a728068c6404a
5
5
  SHA512:
6
- metadata.gz: 371591c1757843f94b893f9ca92024ea91b2082ff87fc7fc342cdb68f5df09a1690282ac1dd149c9abbe3b4fd8fb07d800d2fa8ba31cc93fe0e2da27b5d3ee18
7
- data.tar.gz: d962647d9af2ec1bd0298bbaef0967c7521b1286ec6a96a951f4b6ea2ba07c616c7c058c905bbfa99887fc3c3f759518d6d1382ebfbd4cdba3c5518023594e4c
6
+ metadata.gz: b68dd0a476af5fe6ac816bf54f2135ee23abdf68bbac1e13002db30ce25518522a4d97a9b3398cbe4a7ad860b91baa8a7c8d390d70ad0f4baa57e0c2c2874372
7
+ data.tar.gz: fd66ca810a030294c6bccfbd86af22053ceb418738e75856475ed52b0285e9a6b8fa0ab8aac6c838d47637bac4f5feb27e83ed865f69edd15277162fd6570dae
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 7
4
- BUGFIX = 30
4
+ BUGFIX = 31
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
@@ -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
@@ -37,7 +37,7 @@ module Origen
37
37
  if options[:force]
38
38
  version = "origin/#{version}" if remote_branch?(version)
39
39
  if paths == [local.to_s]
40
- git "reset --hard #{version}"
40
+ git "reset --hard #{version}", options
41
41
  else
42
42
  git 'reset HEAD'
43
43
  git 'pull', options
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.30
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-02 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport