woople-theme 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/explicit_delegator.rb +6 -8
- data/lib/woople-theme/version.rb +1 -1
- metadata +2 -2
data/lib/explicit_delegator.rb
CHANGED
@@ -1,4 +1,9 @@
|
|
1
1
|
class ExplicitDelegator < SimpleDelegator
|
2
|
+
def self.enforce_definitions(*methods)
|
3
|
+
define_method(:enforced_methods) do
|
4
|
+
super() | methods
|
5
|
+
end
|
6
|
+
end
|
2
7
|
|
3
8
|
def initialize(obj)
|
4
9
|
super(obj)
|
@@ -16,11 +21,4 @@ class ExplicitDelegator < SimpleDelegator
|
|
16
21
|
end
|
17
22
|
raise "Methods required to use #{self.class}: #{missing_methods}" unless missing_methods.empty?
|
18
23
|
end
|
19
|
-
|
20
|
-
def self.enforce_definitions(*methods)
|
21
|
-
define_method(:enforced_methods) do
|
22
|
-
return methods
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
end
|
24
|
+
end
|
data/lib/woople-theme/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woople-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|