actionview-component 1.8.0 → 1.8.1

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: ab99ff30cf5a1d5fad5d3f670936b813d8923b9e4e5a3db566c0c08fa8cb7550
4
- data.tar.gz: 7432ee39d40af863647a1cdf220b7775592bfef12c84bbc8a6175d741b88c2ff
3
+ metadata.gz: d236db5b36182b7b47553a9d5edcba890edcda2c1dc09e12a483f59fcad1e43c
4
+ data.tar.gz: 83d47a9e35480a4d30f2f8ba2e2759ecd17423513a8500e3a656c5e83c600735
5
5
  SHA512:
6
- metadata.gz: 53a8dc19f3caa79baf1c2fc754ee0b715885b83eaae13a7a3b6f2f25fb574dd6a0b109cd61328444abaf93ef55ded12413d59a5343fc707c544baba766c14ae7
7
- data.tar.gz: a73449076c9d073052c97ad8cc0d58a88d40f8973a576221a41d7b9e7ed15aeecd0d3704694e4f78bf918fbe6f4d875df0f389f71381b81ad0fed7f8fb4720d3
6
+ metadata.gz: d437983458628e9b66587bcecd015bece3728391275b82453e14085f2461806c97501353725d9866c8aae62a75481aa7cd1a2db46206e1cdaf15ffff824b8a30
7
+ data.tar.gz: 6573fe5fe6ca95259145e37e12011c10e3956df14a31597a5ebbf59f1114f85854049c1e7e98af6f176f422c452c49da05449be509a2ec5fe8d2e5a9c9adcd07
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v1.8.1
2
+
3
+ * Run validation checks before calling `#render?`.
4
+
5
+ *Ash Wilson*
6
+
1
7
  # v1.8.0
2
8
 
3
9
  * Remove the unneeded ComponentExamplesController and simplify preview rendering.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- actionview-component (1.8.0)
4
+ actionview-component (1.8.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -583,10 +583,10 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/github
583
583
  |@elia|@cesariouy|@spdawson|@rmacklin|@michaelem|
584
584
  |Milan||United Kingdom||Berlin|
585
585
 
586
- |<img src="https://avatars.githubusercontent.com/mellowfish?s=256" alt="mellowfish" width="128" />|<img src="https://avatars.githubusercontent.com/horacio?s=256" alt="horacio" width="128" />|<img src="https://avatars.githubusercontent.com/dukex?s=256" alt="dukex" width="128" />|<img src="https://avatars.githubusercontent.com/dark-panda?s=256" alt="dark-panda" width="128" />|
587
- |:---:|:---:|:---:|:---:|
588
- |@mellowfish|@horacio|@dukex|@dark-panda|
589
- |Spring Hill, TN|Buenos Aires|São Paulo||
586
+ |<img src="https://avatars.githubusercontent.com/mellowfish?s=256" alt="mellowfish" width="128" />|<img src="https://avatars.githubusercontent.com/horacio?s=256" alt="horacio" width="128" />|<img src="https://avatars.githubusercontent.com/dukex?s=256" alt="dukex" width="128" />|<img src="https://avatars.githubusercontent.com/dark-panda?s=256" alt="dark-panda" width="128" />|<img src="https://avatars.githubusercontent.com/smashwilson?s=256" alt="smashwilson" width="128" />|
587
+ |:---:|:---:|:---:|:---:|:---:|
588
+ |@mellowfish|@horacio|@dukex|@dark-panda|@smashwilson|
589
+ |Spring Hill, TN|Buenos Aires|São Paulo||Gambrills, MD|
590
590
 
591
591
  ## License
592
592
 
@@ -48,8 +48,6 @@ module ActionView
48
48
  @virtual_path ||= virtual_path
49
49
  @variant = @lookup_context.variants.first
50
50
 
51
- return "" unless render?
52
-
53
51
  old_current_template = @current_template
54
52
  @current_template = self
55
53
 
@@ -57,6 +55,8 @@ module ActionView
57
55
 
58
56
  validate!
59
57
 
58
+ return "" unless render?
59
+
60
60
  send(self.class.call_method_name(@variant))
61
61
  ensure
62
62
  @current_template = old_current_template
@@ -5,7 +5,7 @@ module ActionView
5
5
  module VERSION
6
6
  MAJOR = 1
7
7
  MINOR = 8
8
- PATCH = 0
8
+ PATCH = 1
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  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.8.0
4
+ version: 1.8.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: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler