draper 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/draper/base.rb +5 -3
- data/lib/draper/version.rb +1 -1
- metadata +4 -4
data/lib/draper/base.rb
CHANGED
@@ -49,9 +49,11 @@ module Draper
|
|
49
49
|
|
50
50
|
def build_methods
|
51
51
|
select_methods.each do |method|
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
unless self.respond_to(method)
|
53
|
+
(class << self; self; end).class_eval do
|
54
|
+
define_method method do |*args, &block|
|
55
|
+
source.send method, *args, &block
|
56
|
+
end
|
55
57
|
end
|
56
58
|
end
|
57
59
|
end
|
data/lib/draper/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: draper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jeff Casimir
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-12 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -143,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
143
143
|
requirements:
|
144
144
|
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
hash:
|
146
|
+
hash: 4298332547027149631
|
147
147
|
segments:
|
148
148
|
- 0
|
149
149
|
version: "0"
|
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
153
153
|
- - ">="
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
hash:
|
155
|
+
hash: 4298332547027149631
|
156
156
|
segments:
|
157
157
|
- 0
|
158
158
|
version: "0"
|