origen 0.7.39 → 0.7.40

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82536f91ee909daf412bfaba465244b1f8f68597
4
- data.tar.gz: 19414aa9e55e89e81edecefcd282c60a0e91d13a
3
+ metadata.gz: 2f88ac9610223fe843d3a2cbaf3b3a82e9950f39
4
+ data.tar.gz: 10f5b79ced3a211cef065bb616989c47a79c63b2
5
5
  SHA512:
6
- metadata.gz: eca2a5082693bc54ec4ae68c61118b6a8c22301883726fe823220789b45a4d9e813dd74b72753893f3b4d1c6b9f5e2d7b3f249bcc9f21ac178108cd258d989dc
7
- data.tar.gz: 10ca5f3d0d27976c0bff50987b31f9b8adb5055da40f0ff5d67721e9c08659b9993e7c23fa72c697eff37223202ca136b69d969d6139afa48892619f815d083d
6
+ metadata.gz: d88ac743f839fa92bfec18cb1c33714fce7d79a5d6d35785221a0ff4c4d392781b82ff30ac10f117e74de3c93b55161add34dd2ebd48af3dc3cf83dbcafa916e
7
+ data.tar.gz: 285cc2b8e84d7b816333a4aeb4a22e9016d6f1b54fd1e1cf9e22d9fd03021444add4511cfbddb352ac94db33e3b2ceeb5c0066acccbfd87f4529b96e29d64081
data/config/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Origen
2
2
  MAJOR = 0
3
3
  MINOR = 7
4
- BUGFIX = 39
4
+ BUGFIX = 40
5
5
  DEV = nil
6
6
 
7
7
  VERSION = [MAJOR, MINOR, BUGFIX].join(".") + (DEV ? ".pre#{DEV}" : '')
data/lib/origen.rb CHANGED
@@ -479,8 +479,10 @@ unless defined? RGen::ORIGENTRANSITION
479
479
  # Such code can be wrapped in this method to ensure that it will run safely by differing it until the app
480
480
  # is fully loaded.
481
481
  #
482
- # Origen.after_app_loaded do
483
- # Origen.app.do_something
482
+ # If the application is already loaded by the time this is called, then it will execute straight away.
483
+ #
484
+ # Origen.after_app_loaded do |app|
485
+ # app.do_something
484
486
  # end
485
487
  def after_app_loaded(&block)
486
488
  if application_loaded?
@@ -37,7 +37,11 @@ module Origen
37
37
  x.send(:initialize, *args, &block)
38
38
  end
39
39
  x.send(:_initialized) if x.respond_to?(:is_an_origen_model?)
40
- x.register_callback_listener if x.respond_to?(:register_callback_listener)
40
+ if x.respond_to?(:register_callback_listener)
41
+ Origen.after_app_loaded do |app|
42
+ x.register_callback_listener
43
+ end
44
+ end
41
45
  # Do this before wrapping, otherwise the respond to method in the controller will
42
46
  # be looking for the model to be instantiated when it is not fully done yet
43
47
  is_top_level = x.respond_to?(:includes_origen_top_level?)
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.39
4
+ version: 0.7.40
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-12-06 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport