actionview-component 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/CONTRIBUTING.md +2 -1
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/actionview-component.gemspec +2 -1
- data/lib/action_view/component/base.rb +4 -4
- data/lib/action_view/component/version.rb +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dcbc0baecff7159dafaf87120583a68055e931c926679bd8b3300b54232c769
|
4
|
+
data.tar.gz: b5eda121857a5dd034457e1fda306bfb1fa1e666159d20729feaee2f2da699c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf003dfb9c8dc68e7cef33e4c78fa947006b58ec076658586c95bece8a65e98516989cba81a58bcd632a1706c9b7b93b19bd51006b6f8291256dc0062ba4db1c
|
7
|
+
data.tar.gz: f7707687dee6494852ad1520154d57acff346f4fa6dcdb2bfc0e2f324ed4a4683fe7f2e3b8b1f3a69a38ff4dae0e0a72b53a7f73a3f524d0f7f6e9b07a625fd3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# v1.3.5
|
2
|
+
|
3
|
+
* Re-expose `controller` method.
|
4
|
+
|
5
|
+
*Michael Emhofer, Joel Hawksley*
|
6
|
+
|
7
|
+
* Gem version numbers are now accessible through `ActionView::Component::VERSION`
|
8
|
+
|
9
|
+
*Richard Macklin*
|
10
|
+
|
11
|
+
* Fix typo in README
|
12
|
+
|
13
|
+
*ars moriendi*
|
14
|
+
|
1
15
|
# v1.3.4
|
2
16
|
|
3
17
|
* Template errors surface correct file and line number.
|
data/CONTRIBUTING.md
CHANGED
@@ -32,7 +32,8 @@ 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 `
|
35
|
+
1. Bump gem version in `lib/action_view/component/version.rb`.
|
36
|
+
1. Add version heading/entries to `CHANGELOG.md`.
|
36
37
|
1. Make sure your local dependencies are up to date: `bundle`
|
37
38
|
1. Ensure that tests are green: `bundle exec rake`
|
38
39
|
1. Build a test gem `GEM_VERSION=$(git describe --tags 2>/dev/null | sed 's/-/./g' | sed 's/v//') gem build actionview-component.gemspec`
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,10 +3,11 @@
|
|
3
3
|
|
4
4
|
lib = File.expand_path("../lib", __FILE__)
|
5
5
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
+
require "action_view/component/version"
|
6
7
|
|
7
8
|
Gem::Specification.new do |spec|
|
8
9
|
spec.name = "actionview-component"
|
9
|
-
spec.version =
|
10
|
+
spec.version = ActionView::Component::VERSION::STRING
|
10
11
|
spec.authors = ["GitHub Open Source"]
|
11
12
|
spec.email = ["opensource+actionview-component@github.com"]
|
12
13
|
|
@@ -80,6 +80,10 @@ module ActionView
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
+
def controller
|
84
|
+
@controller ||= view_context.controller
|
85
|
+
end
|
86
|
+
|
83
87
|
class << self
|
84
88
|
def inherited(child)
|
85
89
|
child.include Rails.application.routes.url_helpers unless child < Rails.application.routes.url_helpers
|
@@ -156,10 +160,6 @@ module ActionView
|
|
156
160
|
|
157
161
|
private
|
158
162
|
|
159
|
-
def controller
|
160
|
-
@controller ||= view_context.controller
|
161
|
-
end
|
162
|
-
|
163
163
|
def request
|
164
164
|
@request ||= controller.request
|
165
165
|
end
|
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.5
|
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-10-
|
11
|
+
date: 2019-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- actionview-component.gemspec
|
130
130
|
- lib/action_view/component/base.rb
|
131
131
|
- lib/action_view/component/test_helpers.rb
|
132
|
+
- lib/action_view/component/version.rb
|
132
133
|
- script/bootstrap
|
133
134
|
- script/console
|
134
135
|
- script/install
|