active_decorator 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +35 -14
  3. data/CHANGELOG.md +20 -0
  4. data/README.md +2 -2
  5. data/active_decorator.gemspec +5 -4
  6. data/gemfiles/Gemfile-rails.4.2.x +1 -0
  7. data/gemfiles/Gemfile-rails.5.0.x +1 -0
  8. data/gemfiles/Gemfile-rails.5.1.x +1 -0
  9. data/gemfiles/Gemfile-rails.5.2.x +3 -1
  10. data/gemfiles/Gemfile-rails.6.0.x +3 -1
  11. data/gemfiles/Gemfile-rails.6.1.x +8 -0
  12. data/gemfiles/Gemfile-rails.edge +6 -0
  13. data/lib/active_decorator/decorator.rb +24 -20
  14. data/lib/active_decorator/helpers.rb +1 -0
  15. data/lib/active_decorator/monkey/action_controller/base/rescue_from.rb +2 -2
  16. data/lib/active_decorator/monkey/action_view/collection_renderer.rb +12 -0
  17. data/lib/active_decorator/monkey/action_view/object_renderer.rb +12 -0
  18. data/lib/active_decorator/monkey/action_view/partial_renderer.rb +20 -8
  19. data/lib/active_decorator/railtie.rb +8 -0
  20. data/lib/active_decorator/version.rb +1 -1
  21. data/lib/generators/rails/templates/decorator.rb +2 -0
  22. data/lib/generators/rspec/templates/decorator_spec.rb +2 -0
  23. data/lib/generators/test_unit/templates/decorator_test.rb +2 -0
  24. metadata +18 -73
  25. data/test/configuration_test.rb +0 -28
  26. data/test/controllers/fake_detection_test.rb +0 -14
  27. data/test/decorator_test.rb +0 -51
  28. data/test/fake_app/app/views/api/bookstores/show.json.jbuilder +0 -1
  29. data/test/fake_app/app/views/authors/index.html.erb +0 -16
  30. data/test/fake_app/app/views/authors/show.html.erb +0 -10
  31. data/test/fake_app/app/views/authors/show.json.jbuilder +0 -2
  32. data/test/fake_app/app/views/book_mailer/thanks.text.erb +0 -1
  33. data/test/fake_app/app/views/books/_book.html.erb +0 -2
  34. data/test/fake_app/app/views/books/_book.json.jbuilder +0 -2
  35. data/test/fake_app/app/views/books/_book_locals.html.erb +0 -2
  36. data/test/fake_app/app/views/books/errata.html.erb +0 -1
  37. data/test/fake_app/app/views/books/errata2.html.erb +0 -1
  38. data/test/fake_app/app/views/books/error.html.erb +0 -1
  39. data/test/fake_app/app/views/books/index.html.erb +0 -4
  40. data/test/fake_app/app/views/books/purchase.html.erb +0 -1
  41. data/test/fake_app/app/views/books/show.html.erb +0 -4
  42. data/test/fake_app/app/views/movies/show.html.erb +0 -2
  43. data/test/fake_app/fake_app.rb +0 -279
  44. data/test/fake_app/public/images/cover.png +0 -0
  45. data/test/features/action_controller_api_test.rb +0 -19
  46. data/test/features/action_view_helpers_test.rb +0 -38
  47. data/test/features/association_test.rb +0 -41
  48. data/test/features/controller_ivar_test.rb +0 -41
  49. data/test/features/jbuilder_test.rb +0 -16
  50. data/test/features/name_error_handling_test.rb +0 -29
  51. data/test/features/partial_test.rb +0 -29
  52. data/test/models/association_test.rb +0 -75
  53. data/test/test_helper.rb +0 -52
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39935554e752b75933ebf759c5173fc67b451c077c6cb3d18c48af54f9b4192c
4
- data.tar.gz: 6917e250174825e7ead1ffaa69ad4614ba6aa1070bd53d6e84aa2b2c15faef47
3
+ metadata.gz: f803e15d40a85700faf6ceb443bea2fabc225c2d3503e32c99dcb4e54e7f75e3
4
+ data.tar.gz: 1c15042cec49c02013f05ff50c91335d00d6acff63b6ae51ccee2ea77c27ec88
5
5
  SHA512:
6
- metadata.gz: 1acb7ae8ea1a3a263d59611d3819036eb6aa303a3dfc3b55b0a6eb9eaef4b26412ed6c74aea6580ef1435aaab4a62360b7464e75130004f3da1d563f49a321c3
7
- data.tar.gz: 69b9d07798170f1944cdd98a396b880232ed44278167ae0db3760aebdfc83a86f8f9fcf9846ec8008594bbb28e6285b9537fef3c19805ebbe3d17b47dd3e589d
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.3
15
- # - 2.5.5
16
- # - 2.4.6
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: 2.6.3
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.6.3
42
+ - rvm: 2.7.3
32
43
  gemfile: gemfiles/Gemfile-rails.6.0.x
33
44
  env: API=1
34
- - rvm: 2.6.3
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.3
58
+ - rvm: 2.6.7
37
59
  gemfile: gemfiles/Gemfile-rails.5.2.x
38
60
  env: API=1
39
- - rvm: 2.6.3
61
+ - rvm: 2.6.7
40
62
  gemfile: gemfiles/Gemfile-rails.5.1.x
41
- - rvm: 2.6.3
63
+ - rvm: 2.6.7
42
64
  gemfile: gemfiles/Gemfile-rails.5.1.x
43
65
  env: API=1
44
- - rvm: 2.6.3
66
+ - rvm: 2.6.7
45
67
  gemfile: gemfiles/Gemfile-rails.5.0.x
46
- - rvm: 2.6.3
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.5
72
+ - rvm: 2.5.9
51
73
  gemfile: gemfiles/Gemfile-rails.5.2.x
52
74
 
53
- - rvm: 2.4.6
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, and 2.7 (trunk)
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, and 6.0 (edge)
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 ##
@@ -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 = `git ls-files`.split("\n")
17
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
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
@@ -5,3 +5,4 @@ gemspec path: '..'
5
5
  gem 'rails', '~> 4.2.0'
6
6
  gem 'sqlite3', '< 1.4'
7
7
  gem 'nokogiri', '~> 1.6.0'
8
+ gem 'jbuilder' unless ENV['API']
@@ -4,3 +4,4 @@ gemspec path: '..'
4
4
 
5
5
  gem 'rails', '~> 5.0.0'
6
6
  gem 'sqlite3', '< 1.4'
7
+ gem 'jbuilder' unless ENV['API']
@@ -3,3 +3,4 @@ source 'https://rubygems.org'
3
3
  gemspec path: '..'
4
4
 
5
5
  gem 'rails', '~> 5.1.0'
6
+ gem 'jbuilder' unless ENV['API']
@@ -2,4 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '..'
4
4
 
5
- gem 'rails', '~> 5.2.0'
5
+ gem 'rails', git: 'https://github.com/rails/rails', branch: '5-2-stable'
6
+ gem 'webdrivers', '< 4'
7
+ gem 'jbuilder' unless ENV['API']
@@ -2,4 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec path: '..'
4
4
 
5
- gem 'rails', '~> 6.0.0.rc1'
5
+ gem 'rails', '~> 6.0.0'
6
+ gem 'webdrivers'
7
+ gem 'jbuilder' unless ENV['API']
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rails', '~> 6.1.0'
6
+ gem 'webdrivers'
7
+ gem 'rexml'
8
+ gem 'jbuilder' unless ENV['API']
@@ -10,3 +10,9 @@ end
10
10
  github 'rails/rails' do
11
11
  gem 'rails'
12
12
  end
13
+
14
+ unless ENV['API']
15
+ github 'rails/jbuilder' do
16
+ gem 'jbuilder'
17
+ end
18
+ end
@@ -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
- if obj.is_a?(Array)
28
+ case obj
29
+ when Array
30
30
  obj.each do |r|
31
31
  decorate r
32
32
  end
33
- elsif obj.is_a?(Hash)
33
+ when Hash
34
34
  obj.each_value do |v|
35
35
  decorate v
36
36
  end
37
- elsif defined?(ActiveRecord) && obj.is_a?(ActiveRecord::Relation)
38
- # don't call each nor to_a immediately
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::Base) && !obj.is_a?(ActiveDecorator::Decorated)
48
- obj.extend ActiveDecorator::Decorated
49
- end
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
- d = decorator_for obj.class
52
- return obj unless d
53
- obj.extend d unless obj.is_a? d
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 = Object.const_get decorator_name, false
76
+ d = decorator_name.constantize
73
77
  unless Class === d
74
78
  d.send :include, ActiveDecorator::Helpers
75
79
  @@decorators[model_class] = d
@@ -25,5 +25,6 @@ module ActiveDecorator
25
25
  raise e1
26
26
  end
27
27
  end
28
+ ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
28
29
  end
29
30
  end
@@ -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
@@ -0,0 +1,12 @@
1
+ module ActiveDecorator
2
+ module Monkey
3
+ module ActionView
4
+ module CollectionRenderer
5
+ def render_collection_with_partial(collection, *)
6
+ ActiveDecorator::Decorator.instance.decorate collection
7
+ super
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module ActiveDecorator
2
+ module Monkey
3
+ module ActionView
4
+ module ObjectRenderer
5
+ def render_object_with_partial(object, *)
6
+ ActiveDecorator::Decorator.instance.decorate object
7
+ super
8
+ end
9
+ end
10
+ end
11
+ end
12
+ 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
- def setup(*)
11
- super
20
+ if Rails.version.to_f < 6.1
21
+ def setup(*)
22
+ super
12
23
 
13
- @locals.each_value do |v|
14
- ActiveDecorator::Decorator.instance.decorate v
15
- end if @locals
16
- ActiveDecorator::Decorator.instance.decorate @object if @object
17
- ActiveDecorator::Decorator.instance.decorate @collection unless @collection.blank?
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
- self
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveDecorator
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module <%= class_name %>Decorator
2
4
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_helper' : 'spec_helper' %>'
2
4
 
3
5
  RSpec.describe <%= class_name %>Decorator do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'test_helper'
2
4
 
3
5
  class <%= class_name %>DecoratorTest < ActiveSupport::TestCase
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.3.0
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: 2019-06-28 00:00:00.000000000 Z
11
+ date: 2021-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: test-unit-rails
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: :development
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: selenium-webdriver
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: puma
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: capybara
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: sqlite3
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: rake
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: jbuilder
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.3
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: []