active_decorator 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/active_decorator.gemspec +1 -1
- data/lib/active_decorator/decorator.rb +1 -1
- data/lib/active_decorator/helpers.rb +1 -1
- data/lib/active_decorator/version.rb +1 -1
- metadata +13 -13
data/README.md
CHANGED
data/active_decorator.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = ActiveDecorator::VERSION
|
8
8
|
s.authors = ["Akira Matsuda"]
|
9
9
|
s.email = ["ronnie@dio.jp"]
|
10
|
-
s.homepage =
|
10
|
+
s.homepage = 'https://github.com/amatsuda/active_decorator'
|
11
11
|
s.summary = %q{A simple and Rubyish view helper for Rails 3}
|
12
12
|
s.description = %q{A simple and Rubyish view helper for Rails 3}
|
13
13
|
|
@@ -16,7 +16,7 @@ module ActiveDecorator
|
|
16
16
|
obj.each do |r|
|
17
17
|
decorate r
|
18
18
|
end
|
19
|
-
elsif defined?(ActiveRecord) && obj.is_a?(ActiveRecord::Relation)
|
19
|
+
elsif defined?(ActiveRecord) && obj.is_a?(ActiveRecord::Relation) && !obj.respond_to?(:to_a_with_decorator)
|
20
20
|
class << obj
|
21
21
|
def to_a_with_decorator
|
22
22
|
to_a_without_decorator.tap do |arr|
|
@@ -8,7 +8,7 @@ module ActiveDecorator
|
|
8
8
|
rescue NoMethodError => no_method_error
|
9
9
|
begin
|
10
10
|
@@_decorator_view_proxy ||= DecoratorViewProxy.new
|
11
|
-
@@_decorator_view_proxy.send method, *args, block
|
11
|
+
@@_decorator_view_proxy.send method, *args, &block
|
12
12
|
rescue NoMethodError
|
13
13
|
raise no_method_error
|
14
14
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153458080 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153458080
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153457640 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2153457640
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: capybara
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153457200 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2153457200
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sqlite3
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153456780 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2153456780
|
58
58
|
description: A simple and Rubyish view helper for Rails 3
|
59
59
|
email:
|
60
60
|
- ronnie@dio.jp
|
@@ -93,7 +93,7 @@ files:
|
|
93
93
|
- spec/requests/controller_ivar_spec.rb
|
94
94
|
- spec/requests/partial_spec.rb
|
95
95
|
- spec/spec_helper.rb
|
96
|
-
homepage:
|
96
|
+
homepage: https://github.com/amatsuda/active_decorator
|
97
97
|
licenses: []
|
98
98
|
post_install_message:
|
99
99
|
rdoc_options: []
|
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
segments:
|
109
109
|
- 0
|
110
|
-
hash:
|
110
|
+
hash: -1770381626412442444
|
111
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
112
|
none: false
|
113
113
|
requirements:
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
segments:
|
118
118
|
- 0
|
119
|
-
hash:
|
119
|
+
hash: -1770381626412442444
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project: active_decorator
|
122
122
|
rubygems_version: 1.8.10
|