render_parent 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 05f854b5c56d02e9463b1960fbb42d371daa260c
4
- data.tar.gz: 474071be6019acd892b1e4de2ddad62aefa2fcf3
2
+ SHA256:
3
+ metadata.gz: 4678d3b70f2c931c5237bffe7aa89eee83913ed79cc6916db74cbec7609a845b
4
+ data.tar.gz: 41a4a66d7e0943d002ebd870eb5358965a66332aa0c28cafc9f9aa17f7885570
5
5
  SHA512:
6
- metadata.gz: f81d87a55e53e30088f94c8492068d5c4d0cbb18ca4042f6209fb53de50096b016f4e53da77988ee6633c3d0f84f12587ed21037e4d7d8608954c5ddedd5ba57
7
- data.tar.gz: 8f5443fe9f5243130204fa65e17c8a6a9299bd9937e69fbcca1ecb2f71b0decd226a504282027086a4eeabff813bc282870b3ef51d961d8dd307ecf01c4b2b0a
6
+ metadata.gz: 2690560a9ef6319e37071e82f9d75d54f358fa5075cfa6d68674cb74acd4db343fcdb89b1f8ec8b2b2cb88402b85e8fa84b051670361f4560a6a87275afd9878
7
+ data.tar.gz: 40e6816f4332d04ccf258fe6a40a9af353c999be64164c34a3c293959ce2b1eba7ecae26c60e986339aed58067de89620c347d00ff852f5dc06cfcfe8d6a9b98
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ default
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.6.6
data/Appraisals ADDED
@@ -0,0 +1,35 @@
1
+ appraise 'rails-32' do
2
+ gem 'rails', '~>3.2.0'
3
+ end
4
+
5
+ appraise 'rails-40' do
6
+ gem 'rails', '~>4.0.0'
7
+ end
8
+
9
+ appraise 'rails-41' do
10
+ gem 'rails', '~>4.1.0'
11
+ end
12
+
13
+ appraise 'rails-42' do
14
+ gem 'rails', '~>4.2.0'
15
+ end
16
+
17
+ appraise 'rails-50' do
18
+ gem 'rails', '~>5.0.0'
19
+ end
20
+
21
+ appraise 'rails-51' do
22
+ gem 'rails', '~>5.1.0'
23
+ end
24
+
25
+ appraise 'rails-52' do
26
+ gem 'rails', '~>5.2.0'
27
+ end
28
+
29
+ appraise 'rails-60' do
30
+ gem 'rails', '~>6.0.0'
31
+ end
32
+
33
+ appraise 'rails-61' do
34
+ gem 'rails', '~>6.1.0'
35
+ end
data/Gemfile CHANGED
@@ -5,6 +5,8 @@ gem 'rails', '>= 2.3.0'
5
5
  # Add dependencies to develop your gem here.
6
6
  # Include everything needed to run rake, tests, features, etc.
7
7
  group :development do
8
- gem 'bundler'
9
- gem 'jeweler'
8
+ gem 'bundler', '< 2.0', '>= 1.3.0'
9
+ gem 'jeweler', github: 'technicalpickles/jeweler'
10
+ gem 'rspec'
11
+ gem 'appraisal'
10
12
  end
data/README.rdoc CHANGED
@@ -3,7 +3,7 @@
3
3
  Adds Rails "render :parent" helper, which renders template with the same name as current but higher on the view path
4
4
 
5
5
  == Contributing to render_parent
6
-
6
+
7
7
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
8
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
9
  * Fork the project.
@@ -14,6 +14,6 @@ Adds Rails "render :parent" helper, which renders template with the same name as
14
14
 
15
15
  == Copyright
16
16
 
17
- Copyright (c) 2012 Anton Argirov. See LICENSE.txt for
17
+ Copyright (c) 2019 Anton Argirov. See LICENSE.txt for
18
18
  further details.
19
19
 
data/Rakefile CHANGED
@@ -13,34 +13,20 @@ require 'rake'
13
13
 
14
14
  require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "render_parent"
16
+ gem.name = "render_parent"
18
17
  gem.homepage = "http://github.com/anteo/render-parent"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Adds Rails "render :parent" helper, which renders template with the same name as current but higher on the view path}
21
- gem.description = %Q{This version adds Rails 4 compatibility}
22
- gem.email = "anton.argirov@gmail.com"
23
- gem.authors = ["Anton Argirov"]
24
- gem.files = Dir.glob('lib/**/*.rb') + %w(.document Gemfile LICENSE.txt README.rdoc Rakefile VERSION)
25
- # dependencies defined in Gemfile
18
+ gem.license = "MIT"
19
+ gem.summary = %Q{Adds Rails "render :parent" helper, which renders template with the same name as current but higher on the view path}
20
+ gem.email = "anton.argirov@gmail.com"
21
+ gem.authors = ["Anton Argirov"]
22
+ gem.files = Dir.glob("{lib,spec}/**/*") + %w[.ruby-gemset .ruby-version Appraisals Gemfile LICENSE.txt README.rdoc Rakefile VERSION]
26
23
  end
27
24
  Jeweler::RubygemsDotOrgTasks.new
28
25
 
29
- require 'rake/testtask'
30
- Rake::TestTask.new(:test) do |test|
31
- test.libs << 'lib' << 'test'
32
- test.pattern = 'test/**/test_*.rb'
33
- test.verbose = true
34
- end
35
-
36
- task :default => :test
26
+ require 'rspec/core/rake_task'
27
+ RSpec::Core::RakeTask.new(:spec)
37
28
 
38
- require 'rdoc/task'
39
- Rake::RDocTask.new do |rdoc|
40
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
29
+ task :default => :spec
41
30
 
42
- rdoc.rdoc_dir = 'rdoc'
43
- rdoc.title = "render_parent #{version}"
44
- rdoc.rdoc_files.include('README*')
45
- rdoc.rdoc_files.include('lib/**/*.rb')
46
- end
31
+ require 'appraisal/task'
32
+ Appraisal::Task.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.1.0
@@ -1,7 +1,4 @@
1
- require 'action_view/helpers/rendering_helper'
2
- require 'action_view/renderer/template_renderer'
3
-
4
- ActionView::Helpers::RenderingHelper.module_eval do
1
+ ActionView::Base.class_eval do
5
2
  def render_parent_template(locals = {}, &block)
6
3
  template = controller.active_template
7
4
  view_paths.exclusions << template
@@ -51,26 +48,14 @@ ActionView::PathSet.class_eval do
51
48
  alias_method_chain :find_all, :exclusions
52
49
  end
53
50
 
54
- ActionView::TemplateRenderer.class_eval do
55
- def render_template_with_active_template(template, layout_name = nil, locals = {})
56
- template_stack = @view.controller.respond_to?(:active_template_stack) && @view.controller.active_template_stack
57
- template_stack.push(template) if template_stack
58
- result = render_template_without_active_template( template, layout_name, locals)
51
+ ActionView::Template.class_eval do
52
+ def render_with_active_template(view, locals, buffer=nil, &block)
53
+ template_stack = view.controller.respond_to?(:active_template_stack) && view.controller.active_template_stack
54
+ template_stack.push(self) if template_stack
55
+ result = render_without_active_template(view, locals, buffer, &block)
59
56
  template_stack.pop if template_stack
60
57
  result
61
58
  end
62
59
 
63
- alias_method_chain :render_template, :active_template
60
+ alias_method_chain :render, :active_template
64
61
  end
65
-
66
- ActionView::PartialRenderer.class_eval do
67
- def render_partial_with_active_template
68
- template_stack = @view.controller.respond_to?(:active_template_stack) && @view.controller.active_template_stack
69
- template_stack.push(@template) if template_stack
70
- result = render_partial_without_active_template
71
- template_stack.pop if template_stack
72
- result
73
- end
74
-
75
- alias_method_chain :render_partial, :active_template
76
- end
@@ -1,17 +1,9 @@
1
- require 'rails'
2
-
3
- module RenderParent
4
- class Railtie < Rails::Railtie
5
- initializer "render_parent.initialize" do
6
- ActiveSupport.on_load(:action_controller) do
7
- require 'render_parent/rails3/on_load_action_controller'
8
- end
9
- ActiveSupport.on_load(:action_mailer) do
10
- require 'render_parent/rails3/on_load_action_mailer'
11
- end
12
- ActiveSupport.on_load(:action_view) do
13
- require 'render_parent/rails3/on_load_action_view'
14
- end
15
- end
16
- end
17
- end
1
+ ActiveSupport.on_load(:action_controller) do
2
+ require 'render_parent/rails/on_load_action_controller'
3
+ end
4
+ ActiveSupport.on_load(:action_mailer) do
5
+ require 'render_parent/rails/on_load_action_mailer'
6
+ end
7
+ ActiveSupport.on_load(:action_view) do
8
+ require 'render_parent/rails3/on_load_action_view'
9
+ end
@@ -0,0 +1,64 @@
1
+ ActionView::Base.class_eval do
2
+ def render_parent_template(locals = {}, &block)
3
+ template = controller.active_template
4
+ view_paths.exclusions << template
5
+ locals["__rendered_depth_#{view_paths.exclusions.count}"] = true
6
+ handlers = ActionView::Template::Handlers.extensions.select do |ext|
7
+ ActionView::Template.handler_for_extension(ext) == template.handler
8
+ end
9
+ result = render(:template => template.virtual_path,
10
+ :formats => template.formats,
11
+ :handlers => handlers,
12
+ :locals => locals, &block)
13
+ view_paths.exclusions.delete template
14
+ result
15
+ end
16
+
17
+ def render_with_parent(options = {}, locals = {}, &block)
18
+ if options == :parent
19
+ render_parent_template(locals, &block)
20
+ else
21
+ render_without_parent(options, locals, &block)
22
+ end
23
+ end
24
+
25
+ alias_method :render_without_parent, :render
26
+ alias_method :render, :render_with_parent
27
+ end
28
+
29
+ ActionView::PathSet.class_eval do
30
+ attr_writer :exclusions
31
+
32
+ def exclusions
33
+ @exclusions ||= []
34
+ end
35
+
36
+ def find_all_with_exclusions(path, prefixes = [], *args)
37
+ excluded = exclusions.map(&:identifier)
38
+ prefixes = [prefixes] if String === prefixes
39
+ prefixes.each do |prefix|
40
+ paths.each do |resolver|
41
+ templates = resolver.find_all(path, prefix, *args)
42
+ templates.delete_if {|t| excluded.include? t.identifier} unless templates.empty?
43
+ return templates unless templates.empty?
44
+ end
45
+ end
46
+ []
47
+ end
48
+
49
+ alias_method :find_all_without_exclusions, :find_all
50
+ alias_method :find_all, :find_all_with_exclusions
51
+ end
52
+
53
+ ActionView::Template.class_eval do
54
+ def render_with_active_template(view, locals, buffer=nil, &block)
55
+ template_stack = view.controller.respond_to?(:active_template_stack) && view.controller.active_template_stack
56
+ template_stack.push(self) if template_stack
57
+ result = render_without_active_template(view, locals, buffer, &block)
58
+ template_stack.pop if template_stack
59
+ result
60
+ end
61
+
62
+ alias_method :render_without_active_template, :render
63
+ alias_method :render, :render_with_active_template
64
+ end
@@ -0,0 +1,9 @@
1
+ ActiveSupport.on_load(:action_controller) do
2
+ require 'render_parent/rails/on_load_action_controller'
3
+ end
4
+ ActiveSupport.on_load(:action_mailer) do
5
+ require 'render_parent/rails/on_load_action_mailer'
6
+ end
7
+ ActiveSupport.on_load(:action_view) do
8
+ require 'render_parent/rails5/on_load_action_view'
9
+ end
@@ -0,0 +1,69 @@
1
+ ActionView::Base.class_eval do
2
+ def render_parent_template(locals = {}, &block)
3
+ template = @current_template
4
+ view_paths.excluded(template) do
5
+ locals["__rendered_depth_#{view_paths.exclusions.count}"] = true
6
+
7
+ handlers = ActionView::Template::Handlers.extensions.select do |ext|
8
+ ActionView::Template.handler_for_extension(ext) == template.handler
9
+ end
10
+ render template: template.virtual_path,
11
+ formats: template.format,
12
+ handlers: handlers,
13
+ locals: locals, &block
14
+ end
15
+ end
16
+
17
+ def render_with_parent(options = {}, locals = {}, &block)
18
+ if options == :parent
19
+ render_parent_template(locals, &block)
20
+ else
21
+ render_without_parent(options, locals, &block)
22
+ end
23
+ end
24
+
25
+ alias_method :render_without_parent, :render
26
+ alias_method :render, :render_with_parent
27
+ end
28
+
29
+ ActionView::PathSet.class_eval do
30
+ attr_writer :exclusions
31
+
32
+ def excluded(template)
33
+ exclusions << template
34
+ yield
35
+ ensure
36
+ exclusions.delete template
37
+ end
38
+
39
+ def exclusions
40
+ @exclusions ||= []
41
+ end
42
+
43
+ def find_all_with_exclusions(path, prefixes = [], *args)
44
+ excluded = exclusions.map(&:identifier)
45
+ prefixes = [prefixes] if String === prefixes
46
+ prefixes.each do |prefix|
47
+ paths.each do |resolver|
48
+ templates = resolver.find_all(path, prefix, *args)
49
+ templates.delete_if { |t| excluded.include? t.identifier } unless templates.empty?
50
+ return templates unless templates.empty?
51
+ end
52
+ end
53
+ []
54
+ end
55
+
56
+ alias_method :find_all_without_exclusions, :find_all
57
+ alias_method :find_all, :find_all_with_exclusions
58
+ end
59
+
60
+ ActionView::LookupContext.class_eval do
61
+ def initialize_with_exclusions(view_paths, details = {}, prefixes = [])
62
+ initialize_without_exclusions(view_paths, details, prefixes)
63
+ @view_paths.exclusions = view_paths.exclusions if view_paths.is_a?(ActionView::PathSet)
64
+ end
65
+
66
+ alias_method :initialize_without_exclusions, :initialize
67
+ alias_method :initialize, :initialize_with_exclusions
68
+ end
69
+
@@ -0,0 +1,3 @@
1
+ ActiveSupport.on_load(:action_view) do
2
+ require 'render_parent/rails6/on_load_action_view'
3
+ end
data/lib/render_parent.rb CHANGED
@@ -1,5 +1,12 @@
1
- if Rails::VERSION::MAJOR >= 3
1
+ require 'rails'
2
+ require 'action_view'
3
+
4
+ if Rails::VERSION::MAJOR >= 6
5
+ require 'render_parent/rails6'
6
+ elsif Rails::VERSION::MAJOR >= 5
7
+ require 'render_parent/rails5'
8
+ elsif Rails::VERSION::MAJOR >= 3
2
9
  require 'render_parent/rails3'
3
10
  elsif Rails::VERSION::MAJOR == 2
4
11
  require 'render_parent/rails2'
5
- end
12
+ end
@@ -0,0 +1,2 @@
1
+ <%= variable %>
2
+ Contents of path1/template.html.erb
@@ -0,0 +1,2 @@
1
+ <%= render :parent, local_assigns %>
2
+ Contents of path2/template.html.erb
@@ -0,0 +1,2 @@
1
+ <%= render :parent, local_assigns %>
2
+ Contents of path3/template.html.erb
@@ -0,0 +1,54 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe :render_parent do
4
+ class Controller < ActionController::Base
5
+ layout false
6
+
7
+ prepend_view_path('spec/fixtures/path1')
8
+ prepend_view_path('spec/fixtures/path2')
9
+ prepend_view_path('spec/fixtures/path3')
10
+
11
+ def self.build
12
+ if Rails::VERSION::MAJOR < 5
13
+ build_4
14
+ else
15
+ build_5
16
+ end
17
+ end
18
+
19
+ def self.build_4
20
+ request = ActionDispatch::TestRequest.new
21
+ response = ActionDispatch::Response.new
22
+
23
+ instance = new
24
+ instance.request = request
25
+ instance.response = response
26
+ instance
27
+ end
28
+
29
+ def self.build_5
30
+ request = ActionDispatch::TestRequest.create
31
+
32
+ instance = new
33
+ instance.set_request! request
34
+ instance.set_response! make_response!(request)
35
+ instance
36
+ end
37
+ end
38
+
39
+ before(:all) do
40
+ end
41
+
42
+ let(:controller) { Controller.build }
43
+
44
+ it 'should render templates in defined order' do
45
+ result = controller.render(template: 'template', locals: { variable: 'Test variable' })
46
+ result = result.first if result.is_a?(Array)
47
+ expect(result).to eq(<<~EOS)
48
+ Test variable
49
+ Contents of path1/template.html.erb
50
+ Contents of path2/template.html.erb
51
+ Contents of path3/template.html.erb
52
+ EOS
53
+ end
54
+ end
@@ -0,0 +1,103 @@
1
+ require 'action_controller'
2
+ require 'render_parent'
3
+
4
+ # This file was generated by the `rspec --init` command. Conventionally, all
5
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
6
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
7
+ # this file to always be loaded, without a need to explicitly require it in any
8
+ # files.
9
+ #
10
+ # Given that it is always loaded, you are encouraged to keep this file as
11
+ # light-weight as possible. Requiring heavyweight dependencies from this file
12
+ # will add to the boot time of your test suite on EVERY test run, even for an
13
+ # individual file that may not need all of that loaded. Instead, consider making
14
+ # a separate helper file that requires the additional dependencies and performs
15
+ # the additional setup, and require it from the spec files that actually need
16
+ # it.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
44
+ # have no way to turn it off -- the option exists only for backwards
45
+ # compatibility in RSpec 3). It causes shared context metadata to be
46
+ # inherited by the metadata hash of host groups and examples, rather than
47
+ # triggering implicit auto-inclusion in groups with matching metadata.
48
+ config.shared_context_metadata_behavior = :apply_to_host_groups
49
+
50
+ # The settings below are suggested to provide a good initial experience
51
+ # with RSpec, but feel free to customize to your heart's content.
52
+ =begin
53
+ # This allows you to limit a spec run to individual examples or groups
54
+ # you care about by tagging them with `:focus` metadata. When nothing
55
+ # is tagged with `:focus`, all examples get run. RSpec also provides
56
+ # aliases for `it`, `describe`, and `context` that include `:focus`
57
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
58
+ config.filter_run_when_matching :focus
59
+
60
+ # Allows RSpec to persist some state between runs in order to support
61
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
62
+ # you configure your source control system to ignore this file.
63
+ config.example_status_persistence_file_path = "spec/examples.txt"
64
+
65
+ # Limits the available syntax to the non-monkey patched syntax that is
66
+ # recommended. For more details, see:
67
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
68
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
69
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
70
+ config.disable_monkey_patching!
71
+
72
+ # This setting enables warnings. It's recommended, but in some cases may
73
+ # be too noisy due to issues in dependencies.
74
+ config.warnings = true
75
+
76
+ # Many RSpec users commonly either run the entire suite or an individual
77
+ # file, and it's useful to allow more verbose output when running an
78
+ # individual spec file.
79
+ if config.files_to_run.one?
80
+ # Use the documentation formatter for detailed output,
81
+ # unless a formatter has already been configured
82
+ # (e.g. via a command-line flag).
83
+ config.default_formatter = "doc"
84
+ end
85
+
86
+ # Print the 10 slowest examples and example groups at the
87
+ # end of the spec run, to help surface which specs are running
88
+ # particularly slow.
89
+ config.profile_examples = 10
90
+
91
+ # Run specs in random order to surface order dependencies. If you find an
92
+ # order dependency and want to debug it, you can fix the order by providing
93
+ # the seed, which is printed after each run.
94
+ # --seed 1234
95
+ config.order = :random
96
+
97
+ # Seed global randomization in this process using the `--seed` CLI option.
98
+ # Setting this allows you to use `--seed` to deterministically reproduce
99
+ # test failures related to randomization by passing the same `--seed` value
100
+ # as the one that triggered the failure.
101
+ Kernel.srand config.seed
102
+ =end
103
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render_parent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Argirov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-13 00:00:00.000000000 Z
11
+ date: 2021-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -26,6 +26,26 @@ dependencies:
26
26
  version: 2.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.0
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '2.0'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.3.0
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: jeweler
29
49
  requirement: !ruby/object:Gem::Requirement
30
50
  requirements:
31
51
  - - ">="
@@ -39,7 +59,21 @@ dependencies:
39
59
  - !ruby/object:Gem::Version
40
60
  version: '0'
41
61
  - !ruby/object:Gem::Dependency
42
- name: jeweler
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: appraisal
43
77
  requirement: !ruby/object:Gem::Requirement
44
78
  requirements:
45
79
  - - ">="
@@ -52,7 +86,7 @@ dependencies:
52
86
  - - ">="
53
87
  - !ruby/object:Gem::Version
54
88
  version: '0'
55
- description: This version adds Rails 4 compatibility
89
+ description:
56
90
  email: anton.argirov@gmail.com
57
91
  executables: []
58
92
  extensions: []
@@ -60,7 +94,9 @@ extra_rdoc_files:
60
94
  - LICENSE.txt
61
95
  - README.rdoc
62
96
  files:
63
- - ".document"
97
+ - ".ruby-gemset"
98
+ - ".ruby-version"
99
+ - Appraisals
64
100
  - Gemfile
65
101
  - LICENSE.txt
66
102
  - README.rdoc
@@ -68,16 +104,25 @@ files:
68
104
  - VERSION
69
105
  - lib/rails/init.rb
70
106
  - lib/render_parent.rb
107
+ - lib/render_parent/rails/on_load_action_controller.rb
108
+ - lib/render_parent/rails/on_load_action_mailer.rb
71
109
  - lib/render_parent/rails2.rb
72
110
  - lib/render_parent/rails3.rb
73
- - lib/render_parent/rails3/on_load_action_controller.rb
74
- - lib/render_parent/rails3/on_load_action_mailer.rb
75
111
  - lib/render_parent/rails3/on_load_action_view.rb
112
+ - lib/render_parent/rails5.rb
113
+ - lib/render_parent/rails5/on_load_action_view.rb
114
+ - lib/render_parent/rails6.rb
115
+ - lib/render_parent/rails6/on_load_action_view.rb
116
+ - spec/fixtures/path1/template.html.erb
117
+ - spec/fixtures/path2/template.html.erb
118
+ - spec/fixtures/path3/template.html.erb
119
+ - spec/lib/render_parent_spec.rb
120
+ - spec/spec_helper.rb
76
121
  homepage: http://github.com/anteo/render-parent
77
122
  licenses:
78
123
  - MIT
79
124
  metadata: {}
80
- post_install_message:
125
+ post_install_message:
81
126
  rdoc_options: []
82
127
  require_paths:
83
128
  - lib
@@ -92,9 +137,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
137
  - !ruby/object:Gem::Version
93
138
  version: '0'
94
139
  requirements: []
95
- rubyforge_project:
96
- rubygems_version: 2.4.6
97
- signing_key:
140
+ rubygems_version: 3.0.9
141
+ signing_key:
98
142
  specification_version: 4
99
143
  summary: Adds Rails "render :parent" helper, which renders template with the same
100
144
  name as current but higher on the view path
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt