mod-cons 0.1.1 → 0.2.0
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.
- data/lib/mod_cons.rb +7 -5
- metadata +5 -5
data/lib/mod_cons.rb
CHANGED
|
@@ -107,14 +107,16 @@ module ModCons
|
|
|
107
107
|
end
|
|
108
108
|
self.instance_eval(&block) if block_given?
|
|
109
109
|
end
|
|
110
|
-
unless self.to_hash == config_signature
|
|
111
|
-
@config_changed.each do |listener|
|
|
112
|
-
listener.call(self)
|
|
113
|
-
end
|
|
114
|
-
end
|
|
110
|
+
post_config unless self.to_hash == config_signature
|
|
115
111
|
return self
|
|
116
112
|
end
|
|
117
113
|
|
|
114
|
+
def post_config
|
|
115
|
+
@config_changed.each do |listener|
|
|
116
|
+
listener.call(self)
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
118
120
|
def config_changed(&block)
|
|
119
121
|
@config_changed << block
|
|
120
122
|
return self
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mod-cons
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
version: 0.
|
|
8
|
+
- 2
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.2.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Michael Klein
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-06-16 00:00:00 -07:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|