checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA256:
3
- metadata.gz: 64c3fe4a31a28a25a52afb5863267005dcdd45f01439b4b73ceeb2b239c5a4da
4
- data.tar.gz: ee9d8b85da9d712137429b2a20195b3acb0743ede6966401eee1e277bcf924ef
3
+ metadata.gz: 6dba0d3d78a69188051183475629c6ad7f176b106ca86b55eec2148516c6c95b
4
+ data.tar.gz: bd96c16826fc7ee496914c48c42c3221d2779470475212fc76c6ca3a724e3a39
5
5
SHA512:
6
- metadata.gz: 75b5f118b1d2743025b696a1cde282414284ad0aa8c82f124a34c1dbb96abaada2b9cfd01c5bf2a3ede15ae020e0a037589c57dbf814bc6bdcfcbff3bd05e7b9
7
- data.tar.gz: 00725e2e65ce61ec185a3a2a14025871388645efd221596da0270d82490f581006104f72ac1be59f09576f84b51614c31344aa316a2b4eddf7fb50e134873f6f
6
+ metadata.gz: 971b8d1eb713b56dff1fb4f450afbf2e98e3fbff9c8fa9d79f0ebf73047bf46e17da56b9806490821323f95b60e16b3740319a5f12a5642c25c445301d45339f
7
+ data.tar.gz: 13353dbd4d12156f26c97abb55fc4c046d5ac68eeec47e3a822f6cd7e8674de3c39c48db9a560f68ce63dbd269a07332bfcbb96daa721670d2fbbac77ca5ed6e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v1.3.1
2
+
3
+ * Fix bug where rendering nested content caused an error.
4
+
5
+ *Joel Hawksley, Aaron Patterson*
6
+
1
7
# v1.3.0
2
8
3
9
* Components are rendered with enough controller context to support rendering of partials and forms.
data/CONTRIBUTING.md CHANGED
@@ -32,6 +32,7 @@ Here are a few things you can do that will increase the likelihood of your pull
32
32
If you are the current maintainer of this gem:
33
33
34
34
1. Create a branch for the release: `git checkout -b release-vxx.xx.xx`
35
+ 1. Bump gem version in `actionview-component.gemspec`.
35
36
1. Make sure your local dependencies are up to date: `bundle`
36
37
1. Ensure that tests are green: `bundle exec rake`
37
38
1. Build a test gem `GEM_VERSION=$(git describe --tags 2>/dev/null | sed 's/-/./g' | sed 's/v//') gem build actionview-component.gemspec`
@@ -39,7 +40,6 @@ If you are the current maintainer of this gem:
39
40
1. Bump the Gemfile and Gemfile.lock versions for an app which relies on this gem
40
41
1. Install the new gem locally
41
42
1. Test behavior locally, branch deploy, whatever needs to happen
42
- 1. Bump gem version in `actionview-component.gemspec`.
43
43
1. Make a PR to github/actionview-component.
44
44
1. Build a local gem: `gem build actionview-component.gemspec`
45
45
1. Merge github/actionview-component PR
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
PATH
2
2
remote: .
3
3
specs:
4
- actionview-component (1.2.1)
4
+ actionview-component (1.3.1)
5
5
6
6
GEM
7
7
remote: https://rubygems.org/
data/actionview-component.gemspec CHANGED
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
7
7
Gem::Specification.new do |spec|
8
8
spec.name = "actionview-component"
9
- spec.version = "1.3.0"
9
+ spec.version = "1.3.1"
10
10
spec.authors = ["GitHub Open Source"]
11
11
spec.email = ["opensource+actionview-component@github.com"]
12
12
data/lib/action_view/component/base.rb CHANGED
@@ -33,8 +33,6 @@ module ActionView
33
33
include ActiveSupport::Configurable
34
34
include ActionController::RequestForgeryProtection
35
35
36
- delegate :render, to: :view_context
37
-
38
36
# Entrypoint for rendering components. Called by ActionView::Base#render.
39
37
#
40
38
# view_context: ActionView context from calling view
@@ -75,6 +73,14 @@ module ActionView
75
73
76
74
def initialize(*); end
77
75
76
+ def render(options = {}, args = {}, &block)
77
+ if options.is_a?(Hash) && options.has_key?(:partial)
78
+ view_context.render(options, args, &block)
79
+ else
80
+ super
81
+ end
82
+ end
83
+
78
84
class << self
79
85
def inherited(child)
80
86
child.include Rails.application.routes.url_helpers unless child < Rails.application.routes.url_helpers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: actionview-component
3
3
version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
platform: ruby
6
6
authors:
7
7
- GitHub Open Source
8
8
autorequire:
9
9
bindir: exe
10
10
cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-01 00:00:00.000000000 Z
12
12
dependencies:
13
13
- !ruby/object:Gem::Dependency
14
14
name: bundler