presentable 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/VERSION +1 -1
- data/lib/presenter.rb +3 -1
- data/presentable.gemspec +2 -2
- metadata +2 -2
data/.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
*.gem
|
1
|
+
*.gem
|
2
|
+
.DS_Store
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/presenter.rb
CHANGED
@@ -37,10 +37,12 @@ class CollectionPresenter
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def initialize(nodes)
|
40
|
+
@context = nodes
|
40
41
|
@nodes = nodes.map{ |n| n.presenter }
|
41
42
|
end
|
42
43
|
|
43
44
|
def method_missing(method, *attrs, &block)
|
44
|
-
@nodes.__send__(method, *attrs, &block)
|
45
|
+
return @nodes.__send__(method, *attrs, &block) if @nodes.respond_to?(method)
|
46
|
+
@context.__send__(method, *attrs, &block)
|
45
47
|
end
|
46
48
|
end
|
data/presentable.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{presentable}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["toastyapps"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-04}
|
13
13
|
s.description = %q{Making presenters easy and fun!}
|
14
14
|
s.email = %q{matt@toastyapps.com}
|
15
15
|
s.files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: presentable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toastyapps
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-04 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|