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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03a3c04aa78f3fcc16c350b49955870f60e712ad0383eb924e7053d7208431d0
4
- data.tar.gz: 299741730bcfe4eb6640e5899e3973d4fd303dc28aadc79103eb72bdcd2382ec
3
+ metadata.gz: 6dcbc0baecff7159dafaf87120583a68055e931c926679bd8b3300b54232c769
4
+ data.tar.gz: b5eda121857a5dd034457e1fda306bfb1fa1e666159d20729feaee2f2da699c1
5
5
  SHA512:
6
- metadata.gz: '01091f9da0436fcbfcbdfd602bcf7595c9c061738f49b9fb70305474218b6b928382daed58c4a3ebc1d08991815ecc965cc6a19b8c4384c35338d672ee5b456e'
7
- data.tar.gz: 32fae5a27cb1f1f939ce5b59947b3785f1b4ee73a8e9b3b1a95eb1351800aa005518b61b6f24d8570790c1e45d128bf87ab28e4f14cecac1479d33a4ed30a524
6
+ metadata.gz: cf003dfb9c8dc68e7cef33e4c78fa947006b58ec076658586c95bece8a65e98516989cba81a58bcd632a1706c9b7b93b19bd51006b6f8291256dc0062ba4db1c
7
+ data.tar.gz: f7707687dee6494852ad1520154d57acff346f4fa6dcdb2bfc0e2f324ed4a4683fe7f2e3b8b1f3a69a38ff4dae0e0a72b53a7f73a3f524d0f7f6e9b07a625fd3
@@ -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.
@@ -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 `actionview-component.gemspec`.
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`
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- actionview-component (1.3.4)
4
+ actionview-component (1.3.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -149,7 +149,7 @@ Components can be rendered via:
149
149
 
150
150
  The following syntax has been deprecated and will be removed in v2.0.0:
151
151
 
152
- `render(TestComponent.new(foo: :bar)`
152
+ `render(TestComponent.new(foo: :bar))`
153
153
 
154
154
  #### Error case
155
155
 
@@ -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 = "1.3.4"
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
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActionView
4
+ module Component
5
+ module VERSION
6
+ MAJOR = 1
7
+ MINOR = 3
8
+ PATCH = 5
9
+
10
+ STRING = [MAJOR, MINOR, PATCH].join(".")
11
+ end
12
+ end
13
+ 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
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-07 00:00:00.000000000 Z
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