active_decorator 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +35 -14
- data/CHANGELOG.md +20 -0
- data/README.md +2 -2
- data/active_decorator.gemspec +5 -4
- data/gemfiles/Gemfile-rails.4.2.x +1 -0
- data/gemfiles/Gemfile-rails.5.0.x +1 -0
- data/gemfiles/Gemfile-rails.5.1.x +1 -0
- data/gemfiles/Gemfile-rails.5.2.x +3 -1
- data/gemfiles/Gemfile-rails.6.0.x +3 -1
- data/gemfiles/Gemfile-rails.6.1.x +8 -0
- data/gemfiles/Gemfile-rails.edge +6 -0
- data/lib/active_decorator/decorator.rb +24 -20
- data/lib/active_decorator/helpers.rb +1 -0
- data/lib/active_decorator/monkey/action_controller/base/rescue_from.rb +2 -2
- data/lib/active_decorator/monkey/action_view/collection_renderer.rb +12 -0
- data/lib/active_decorator/monkey/action_view/object_renderer.rb +12 -0
- data/lib/active_decorator/monkey/action_view/partial_renderer.rb +20 -8
- data/lib/active_decorator/railtie.rb +8 -0
- data/lib/active_decorator/version.rb +1 -1
- data/lib/generators/rails/templates/decorator.rb +2 -0
- data/lib/generators/rspec/templates/decorator_spec.rb +2 -0
- data/lib/generators/test_unit/templates/decorator_test.rb +2 -0
- metadata +18 -73
- data/test/configuration_test.rb +0 -28
- data/test/controllers/fake_detection_test.rb +0 -14
- data/test/decorator_test.rb +0 -51
- data/test/fake_app/app/views/api/bookstores/show.json.jbuilder +0 -1
- data/test/fake_app/app/views/authors/index.html.erb +0 -16
- data/test/fake_app/app/views/authors/show.html.erb +0 -10
- data/test/fake_app/app/views/authors/show.json.jbuilder +0 -2
- data/test/fake_app/app/views/book_mailer/thanks.text.erb +0 -1
- data/test/fake_app/app/views/books/_book.html.erb +0 -2
- data/test/fake_app/app/views/books/_book.json.jbuilder +0 -2
- data/test/fake_app/app/views/books/_book_locals.html.erb +0 -2
- data/test/fake_app/app/views/books/errata.html.erb +0 -1
- data/test/fake_app/app/views/books/errata2.html.erb +0 -1
- data/test/fake_app/app/views/books/error.html.erb +0 -1
- data/test/fake_app/app/views/books/index.html.erb +0 -4
- data/test/fake_app/app/views/books/purchase.html.erb +0 -1
- data/test/fake_app/app/views/books/show.html.erb +0 -4
- data/test/fake_app/app/views/movies/show.html.erb +0 -2
- data/test/fake_app/fake_app.rb +0 -279
- data/test/fake_app/public/images/cover.png +0 -0
- data/test/features/action_controller_api_test.rb +0 -19
- data/test/features/action_view_helpers_test.rb +0 -38
- data/test/features/association_test.rb +0 -41
- data/test/features/controller_ivar_test.rb +0 -41
- data/test/features/jbuilder_test.rb +0 -16
- data/test/features/name_error_handling_test.rb +0 -29
- data/test/features/partial_test.rb +0 -29
- data/test/models/association_test.rb +0 -75
- data/test/test_helper.rb +0 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f803e15d40a85700faf6ceb443bea2fabc225c2d3503e32c99dcb4e54e7f75e3
|
4
|
+
data.tar.gz: 1c15042cec49c02013f05ff50c91335d00d6acff63b6ae51ccee2ea77c27ec88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b48a0acdcdce16cd8f3fda7b56c95209af5e833502ea2ea5f9244e9e78bcf4255c376c21f50310631852a928279283d070bed45f618578867eb1edd45f6ddcaa
|
7
|
+
data.tar.gz: 8b959e33b9c70791a47ee759a6e9c3c877672cda9bb3ba5dc1de0ea4587be5d16bbccd0d0e980fc9ecfaae47adad0f616b35dda7f3c902b05cba064fda21fcc5
|
data/.travis.yml
CHANGED
@@ -11,9 +11,9 @@ before_install:
|
|
11
11
|
cache: bundler
|
12
12
|
|
13
13
|
# rvm:
|
14
|
-
# - 2.6.
|
15
|
-
# - 2.5.
|
16
|
-
# - 2.4.
|
14
|
+
# - 2.6.7
|
15
|
+
# - 2.5.9
|
16
|
+
# - 2.4.10
|
17
17
|
# - 2.3.8
|
18
18
|
# - 2.2.10
|
19
19
|
# - 2.1.10
|
@@ -26,31 +26,53 @@ cache: bundler
|
|
26
26
|
|
27
27
|
matrix:
|
28
28
|
include:
|
29
|
-
- rvm:
|
29
|
+
- rvm: 3.0.1
|
30
|
+
gemfile: gemfiles/Gemfile-rails.6.1.x
|
31
|
+
- rvm: 3.0.1
|
32
|
+
gemfile: gemfiles/Gemfile-rails.6.1.x
|
33
|
+
env: API=1
|
34
|
+
|
35
|
+
- rvm: 2.7.3
|
36
|
+
gemfile: gemfiles/Gemfile-rails.6.1.x
|
37
|
+
- rvm: 2.7.3
|
38
|
+
gemfile: gemfiles/Gemfile-rails.6.1.x
|
39
|
+
env: API=1
|
40
|
+
- rvm: 2.7.3
|
30
41
|
gemfile: gemfiles/Gemfile-rails.6.0.x
|
31
|
-
- rvm: 2.
|
42
|
+
- rvm: 2.7.3
|
32
43
|
gemfile: gemfiles/Gemfile-rails.6.0.x
|
33
44
|
env: API=1
|
34
|
-
|
45
|
+
|
46
|
+
- rvm: 2.6.7
|
47
|
+
gemfile: gemfiles/Gemfile-rails.6.1.x
|
48
|
+
- rvm: 2.6.7
|
49
|
+
gemfile: gemfiles/Gemfile-rails.6.1.x
|
50
|
+
env: API=1
|
51
|
+
- rvm: 2.6.7
|
52
|
+
gemfile: gemfiles/Gemfile-rails.6.0.x
|
53
|
+
- rvm: 2.6.7
|
54
|
+
gemfile: gemfiles/Gemfile-rails.6.0.x
|
55
|
+
env: API=1
|
56
|
+
- rvm: 2.6.7
|
35
57
|
gemfile: gemfiles/Gemfile-rails.5.2.x
|
36
|
-
- rvm: 2.6.
|
58
|
+
- rvm: 2.6.7
|
37
59
|
gemfile: gemfiles/Gemfile-rails.5.2.x
|
38
60
|
env: API=1
|
39
|
-
- rvm: 2.6.
|
61
|
+
- rvm: 2.6.7
|
40
62
|
gemfile: gemfiles/Gemfile-rails.5.1.x
|
41
|
-
- rvm: 2.6.
|
63
|
+
- rvm: 2.6.7
|
42
64
|
gemfile: gemfiles/Gemfile-rails.5.1.x
|
43
65
|
env: API=1
|
44
|
-
- rvm: 2.6.
|
66
|
+
- rvm: 2.6.7
|
45
67
|
gemfile: gemfiles/Gemfile-rails.5.0.x
|
46
|
-
- rvm: 2.6.
|
68
|
+
- rvm: 2.6.7
|
47
69
|
gemfile: gemfiles/Gemfile-rails.5.0.x
|
48
70
|
env: API=1
|
49
71
|
|
50
|
-
- rvm: 2.5.
|
72
|
+
- rvm: 2.5.9
|
51
73
|
gemfile: gemfiles/Gemfile-rails.5.2.x
|
52
74
|
|
53
|
-
- rvm: 2.4.
|
75
|
+
- rvm: 2.4.10
|
54
76
|
gemfile: gemfiles/Gemfile-rails.5.2.x
|
55
77
|
|
56
78
|
- rvm: 2.3.8
|
@@ -69,7 +91,6 @@ matrix:
|
|
69
91
|
|
70
92
|
- rvm: ruby-head
|
71
93
|
gemfile: gemfiles/Gemfile-rails.edge
|
72
|
-
|
73
94
|
- rvm: ruby-head
|
74
95
|
gemfile: gemfiles/Gemfile-rails.edge
|
75
96
|
env: API=1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
## 1.4.0
|
2
|
+
|
3
|
+
* Decorate non-nil objects where `nil?` returns true, namely, ActionText::RichText body [@jamesbrooks]
|
4
|
+
|
5
|
+
## 1.3.4
|
6
|
+
|
7
|
+
* Support Rails 6.1 [@y-yagi]
|
8
|
+
|
9
|
+
## 1.3.3
|
10
|
+
|
11
|
+
* Fixed Ruby 2.7 keyword arguments warning [@pocke]
|
12
|
+
|
13
|
+
## 1.3.2
|
14
|
+
|
15
|
+
* Fixed NameError on ActionController::API controllers without jbuilder enhancement [@kamillle]
|
16
|
+
|
17
|
+
## 1.3.1
|
18
|
+
|
19
|
+
* Switched back from Ruby's `const_get` to Active Support `constantize` for fetching decorator modules, due to inability to properly detect namespaced decorator [@sinsoku]
|
20
|
+
|
1
21
|
## 1.3.0
|
2
22
|
|
3
23
|
* Switched from Active Support `constantize` to Ruby's `const_get` when fetching decorator modules
|
data/README.md
CHANGED
@@ -15,9 +15,9 @@ A simple and Rubyish view helper for Rails 4, Rails 5, and Rails 6. Keep your he
|
|
15
15
|
|
16
16
|
## Supported versions ##
|
17
17
|
|
18
|
-
* Ruby 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x,
|
18
|
+
* Ruby 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, and 3.1 (trunk)
|
19
19
|
|
20
|
-
* Rails 4.2.x, 5.0, 5.1, 5.2,
|
20
|
+
* Rails 4.2.x, 5.0, 5.1, 5.2, 6.0, 6.1, and 7.0 (edge)
|
21
21
|
|
22
22
|
|
23
23
|
## Supported ORMs ##
|
data/active_decorator.gemspec
CHANGED
@@ -13,17 +13,18 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.summary = %q{A simple and Rubyish view helper for Rails}
|
14
14
|
s.description = %q{A simple and Rubyish view helper for Rails}
|
15
15
|
|
16
|
-
s.files =
|
17
|
-
|
18
|
-
|
16
|
+
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
17
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
end
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
+
s.add_dependency 'activesupport'
|
22
|
+
|
21
23
|
s.add_development_dependency 'test-unit-rails'
|
22
24
|
s.add_development_dependency 'selenium-webdriver'
|
23
25
|
s.add_development_dependency 'puma'
|
24
26
|
s.add_development_dependency 'capybara'
|
25
27
|
s.add_development_dependency 'sqlite3'
|
26
28
|
s.add_development_dependency 'rake'
|
27
|
-
s.add_development_dependency 'jbuilder'
|
28
29
|
s.add_development_dependency 'byebug'
|
29
30
|
end
|
data/gemfiles/Gemfile-rails.edge
CHANGED
@@ -23,34 +23,38 @@ module ActiveDecorator
|
|
23
23
|
#
|
24
24
|
# This method can be publicly called from anywhere by `ActiveDecorator::Decorator.instance.decorate(obj)`.
|
25
25
|
def decorate(obj)
|
26
|
-
return if defined?(Jbuilder) && (Jbuilder === obj)
|
27
|
-
return if obj.nil?
|
26
|
+
return obj if defined?(Jbuilder) && (Jbuilder === obj)
|
28
27
|
|
29
|
-
|
28
|
+
case obj
|
29
|
+
when Array
|
30
30
|
obj.each do |r|
|
31
31
|
decorate r
|
32
32
|
end
|
33
|
-
|
33
|
+
when Hash
|
34
34
|
obj.each_value do |v|
|
35
35
|
decorate v
|
36
36
|
end
|
37
|
-
|
38
|
-
|
39
|
-
if obj.respond_to?(:records)
|
40
|
-
# Rails 5.0
|
41
|
-
obj.extend ActiveDecorator::RelationDecorator unless obj.is_a? ActiveDecorator::RelationDecorator
|
42
|
-
else
|
43
|
-
# Rails 3.x and 4.x
|
44
|
-
obj.extend ActiveDecorator::RelationDecoratorLegacy unless obj.is_a? ActiveDecorator::RelationDecoratorLegacy
|
45
|
-
end
|
37
|
+
when nil, true, false
|
38
|
+
obj
|
46
39
|
else
|
47
|
-
if defined?(ActiveRecord) && obj.is_a?(ActiveRecord::
|
48
|
-
|
49
|
-
|
40
|
+
if defined?(ActiveRecord) && obj.is_a?(ActiveRecord::Relation)
|
41
|
+
# don't call each nor to_a immediately
|
42
|
+
if obj.respond_to?(:records)
|
43
|
+
# Rails 5.0
|
44
|
+
obj.extend ActiveDecorator::RelationDecorator unless obj.is_a? ActiveDecorator::RelationDecorator
|
45
|
+
else
|
46
|
+
# Rails 3.x and 4.x
|
47
|
+
obj.extend ActiveDecorator::RelationDecoratorLegacy unless obj.is_a? ActiveDecorator::RelationDecoratorLegacy
|
48
|
+
end
|
49
|
+
else
|
50
|
+
if defined?(ActiveRecord) && obj.is_a?(ActiveRecord::Base) && !obj.is_a?(ActiveDecorator::Decorated)
|
51
|
+
obj.extend ActiveDecorator::Decorated
|
52
|
+
end
|
50
53
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
+
d = decorator_for obj.class
|
55
|
+
return obj unless d
|
56
|
+
obj.extend d unless obj.is_a? d
|
57
|
+
end
|
54
58
|
end
|
55
59
|
|
56
60
|
obj
|
@@ -69,7 +73,7 @@ module ActiveDecorator
|
|
69
73
|
return @@decorators[model_class] if @@decorators.key? model_class
|
70
74
|
|
71
75
|
decorator_name = "#{model_class.name}#{ActiveDecorator.config.decorator_suffix}"
|
72
|
-
d =
|
76
|
+
d = decorator_name.constantize
|
73
77
|
unless Class === d
|
74
78
|
d.send :include, ActiveDecorator::Helpers
|
75
79
|
@@decorators[model_class] = d
|
@@ -7,10 +7,10 @@ module ActiveDecorator
|
|
7
7
|
module ActionController
|
8
8
|
module Base
|
9
9
|
def rescue_with_handler(*)
|
10
|
-
ActiveDecorator::ViewContext.push(view_context)
|
10
|
+
ActiveDecorator::ViewContext.push(view_context) if defined?(view_context)
|
11
11
|
super
|
12
12
|
ensure
|
13
|
-
ActiveDecorator::ViewContext.pop
|
13
|
+
ActiveDecorator::ViewContext.pop if defined?(view_context)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
@@ -5,18 +5,30 @@ module ActiveDecorator
|
|
5
5
|
module Monkey
|
6
6
|
module ActionView
|
7
7
|
module PartialRenderer
|
8
|
+
if Rails.version.to_f >= 6.1
|
9
|
+
def initialize(*)
|
10
|
+
super
|
11
|
+
|
12
|
+
@locals.each_value do |v|
|
13
|
+
ActiveDecorator::Decorator.instance.decorate v
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
8
18
|
private
|
9
19
|
|
10
|
-
|
11
|
-
|
20
|
+
if Rails.version.to_f < 6.1
|
21
|
+
def setup(*)
|
22
|
+
super
|
12
23
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
24
|
+
@locals.each_value do |v|
|
25
|
+
ActiveDecorator::Decorator.instance.decorate v
|
26
|
+
end if @locals
|
27
|
+
ActiveDecorator::Decorator.instance.decorate @object if @object
|
28
|
+
ActiveDecorator::Decorator.instance.decorate @collection unless @collection.blank?
|
18
29
|
|
19
|
-
|
30
|
+
self
|
31
|
+
end
|
20
32
|
end
|
21
33
|
end
|
22
34
|
end
|
@@ -6,6 +6,14 @@ module ActiveDecorator
|
|
6
6
|
ActiveSupport.on_load :action_view do
|
7
7
|
require 'active_decorator/monkey/action_view/partial_renderer'
|
8
8
|
ActionView::PartialRenderer.send :prepend, ActiveDecorator::Monkey::ActionView::PartialRenderer
|
9
|
+
|
10
|
+
if Rails.version.to_f >= 6.1
|
11
|
+
require 'active_decorator/monkey/action_view/collection_renderer'
|
12
|
+
ActionView::CollectionRenderer.send :prepend, ActiveDecorator::Monkey::ActionView::CollectionRenderer
|
13
|
+
|
14
|
+
require 'active_decorator/monkey/action_view/object_renderer'
|
15
|
+
ActionView::ObjectRenderer.send :prepend, ActiveDecorator::Monkey::ActionView::ObjectRenderer
|
16
|
+
end
|
9
17
|
end
|
10
18
|
|
11
19
|
ActiveSupport.on_load :action_controller do
|
metadata
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
|
-
type: :
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: test-unit-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: selenium-webdriver
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: puma
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: capybara
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rake
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- gemfiles/Gemfile-rails.5.1.x
|
143
143
|
- gemfiles/Gemfile-rails.5.2.x
|
144
144
|
- gemfiles/Gemfile-rails.6.0.x
|
145
|
+
- gemfiles/Gemfile-rails.6.1.x
|
145
146
|
- gemfiles/Gemfile-rails.edge
|
146
147
|
- lib/active_decorator.rb
|
147
148
|
- lib/active_decorator/config.rb
|
@@ -150,6 +151,8 @@ files:
|
|
150
151
|
- lib/active_decorator/helpers.rb
|
151
152
|
- lib/active_decorator/monkey/abstract_controller/rendering.rb
|
152
153
|
- lib/active_decorator/monkey/action_controller/base/rescue_from.rb
|
154
|
+
- lib/active_decorator/monkey/action_view/collection_renderer.rb
|
155
|
+
- lib/active_decorator/monkey/action_view/object_renderer.rb
|
153
156
|
- lib/active_decorator/monkey/action_view/partial_renderer.rb
|
154
157
|
- lib/active_decorator/monkey/active_record/associations.rb
|
155
158
|
- lib/active_decorator/railtie.rb
|
@@ -162,40 +165,11 @@ files:
|
|
162
165
|
- lib/generators/rspec/templates/decorator_spec.rb
|
163
166
|
- lib/generators/test_unit/decorator_generator.rb
|
164
167
|
- lib/generators/test_unit/templates/decorator_test.rb
|
165
|
-
- test/configuration_test.rb
|
166
|
-
- test/controllers/fake_detection_test.rb
|
167
|
-
- test/decorator_test.rb
|
168
|
-
- test/fake_app/app/views/api/bookstores/show.json.jbuilder
|
169
|
-
- test/fake_app/app/views/authors/index.html.erb
|
170
|
-
- test/fake_app/app/views/authors/show.html.erb
|
171
|
-
- test/fake_app/app/views/authors/show.json.jbuilder
|
172
|
-
- test/fake_app/app/views/book_mailer/thanks.text.erb
|
173
|
-
- test/fake_app/app/views/books/_book.html.erb
|
174
|
-
- test/fake_app/app/views/books/_book.json.jbuilder
|
175
|
-
- test/fake_app/app/views/books/_book_locals.html.erb
|
176
|
-
- test/fake_app/app/views/books/errata.html.erb
|
177
|
-
- test/fake_app/app/views/books/errata2.html.erb
|
178
|
-
- test/fake_app/app/views/books/error.html.erb
|
179
|
-
- test/fake_app/app/views/books/index.html.erb
|
180
|
-
- test/fake_app/app/views/books/purchase.html.erb
|
181
|
-
- test/fake_app/app/views/books/show.html.erb
|
182
|
-
- test/fake_app/app/views/movies/show.html.erb
|
183
|
-
- test/fake_app/fake_app.rb
|
184
|
-
- test/fake_app/public/images/cover.png
|
185
|
-
- test/features/action_controller_api_test.rb
|
186
|
-
- test/features/action_view_helpers_test.rb
|
187
|
-
- test/features/association_test.rb
|
188
|
-
- test/features/controller_ivar_test.rb
|
189
|
-
- test/features/jbuilder_test.rb
|
190
|
-
- test/features/name_error_handling_test.rb
|
191
|
-
- test/features/partial_test.rb
|
192
|
-
- test/models/association_test.rb
|
193
|
-
- test/test_helper.rb
|
194
168
|
homepage: https://github.com/amatsuda/active_decorator
|
195
169
|
licenses:
|
196
170
|
- MIT
|
197
171
|
metadata: {}
|
198
|
-
post_install_message:
|
172
|
+
post_install_message:
|
199
173
|
rdoc_options: []
|
200
174
|
require_paths:
|
201
175
|
- lib
|
@@ -210,37 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
184
|
- !ruby/object:Gem::Version
|
211
185
|
version: '0'
|
212
186
|
requirements: []
|
213
|
-
rubygems_version: 3.0.
|
214
|
-
signing_key:
|
187
|
+
rubygems_version: 3.3.0.dev
|
188
|
+
signing_key:
|
215
189
|
specification_version: 4
|
216
190
|
summary: A simple and Rubyish view helper for Rails
|
217
|
-
test_files:
|
218
|
-
- test/configuration_test.rb
|
219
|
-
- test/controllers/fake_detection_test.rb
|
220
|
-
- test/decorator_test.rb
|
221
|
-
- test/fake_app/app/views/api/bookstores/show.json.jbuilder
|
222
|
-
- test/fake_app/app/views/authors/index.html.erb
|
223
|
-
- test/fake_app/app/views/authors/show.html.erb
|
224
|
-
- test/fake_app/app/views/authors/show.json.jbuilder
|
225
|
-
- test/fake_app/app/views/book_mailer/thanks.text.erb
|
226
|
-
- test/fake_app/app/views/books/_book.html.erb
|
227
|
-
- test/fake_app/app/views/books/_book.json.jbuilder
|
228
|
-
- test/fake_app/app/views/books/_book_locals.html.erb
|
229
|
-
- test/fake_app/app/views/books/errata.html.erb
|
230
|
-
- test/fake_app/app/views/books/errata2.html.erb
|
231
|
-
- test/fake_app/app/views/books/error.html.erb
|
232
|
-
- test/fake_app/app/views/books/index.html.erb
|
233
|
-
- test/fake_app/app/views/books/purchase.html.erb
|
234
|
-
- test/fake_app/app/views/books/show.html.erb
|
235
|
-
- test/fake_app/app/views/movies/show.html.erb
|
236
|
-
- test/fake_app/fake_app.rb
|
237
|
-
- test/fake_app/public/images/cover.png
|
238
|
-
- test/features/action_controller_api_test.rb
|
239
|
-
- test/features/action_view_helpers_test.rb
|
240
|
-
- test/features/association_test.rb
|
241
|
-
- test/features/controller_ivar_test.rb
|
242
|
-
- test/features/jbuilder_test.rb
|
243
|
-
- test/features/name_error_handling_test.rb
|
244
|
-
- test/features/partial_test.rb
|
245
|
-
- test/models/association_test.rb
|
246
|
-
- test/test_helper.rb
|
191
|
+
test_files: []
|