origen 0.7.39 → 0.7.40
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.rb +4 -2
- data/lib/origen/model_initializer.rb +5 -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: 2f88ac9610223fe843d3a2cbaf3b3a82e9950f39
|
4
|
+
data.tar.gz: 10f5b79ced3a211cef065bb616989c47a79c63b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d88ac743f839fa92bfec18cb1c33714fce7d79a5d6d35785221a0ff4c4d392781b82ff30ac10f117e74de3c93b55161add34dd2ebd48af3dc3cf83dbcafa916e
|
7
|
+
data.tar.gz: 285cc2b8e84d7b816333a4aeb4a22e9016d6f1b54fd1e1cf9e22d9fd03021444add4511cfbddb352ac94db33e3b2ceeb5c0066acccbfd87f4529b96e29d64081
|
data/config/version.rb
CHANGED
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
|
-
#
|
483
|
-
#
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2016-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|