actionview-component 1.3.0 → 1.3.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile.lock +1 -1
- data/actionview-component.gemspec +1 -1
- data/lib/action_view/component/base.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dba0d3d78a69188051183475629c6ad7f176b106ca86b55eec2148516c6c95b
|
4
|
+
data.tar.gz: bd96c16826fc7ee496914c48c42c3221d2779470475212fc76c6ca3a724e3a39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 971b8d1eb713b56dff1fb4f450afbf2e98e3fbff9c8fa9d79f0ebf73047bf46e17da56b9806490821323f95b60e16b3740319a5f12a5642c25c445301d45339f
|
7
|
+
data.tar.gz: 13353dbd4d12156f26c97abb55fc4c046d5ac68eeec47e3a822f6cd7e8674de3c39c48db9a560f68ce63dbd269a07332bfcbb96daa721670d2fbbac77ca5ed6e
|
data/CHANGELOG.md
CHANGED
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
@@ -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.
|
9
|
+
spec.version = "1.3.1"
|
10
10
|
spec.authors = ["GitHub Open Source"]
|
11
11
|
spec.email = ["opensource+actionview-component@github.com"]
|
12
12
|
|
@@ -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.
|
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-
|
11
|
+
date: 2019-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|