render_variant 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 57748c63e6408eff7bc9eeb1ce2a4c9078038811
4
- data.tar.gz: e3a75c5096213ba72386d7a2d79b782552cf1a06
3
+ metadata.gz: c655a18cacb1c1e3fa45d90e0e494f8ce5756be9
4
+ data.tar.gz: c9123c3502496e034d722948d553686c759d04a2
5
5
  SHA512:
6
- metadata.gz: fd4611e0eb9570665dce4926bffef6484bfb6926b65f8a81adb4e3ff1b594b9c945241a746839aead21d4a2626dd74a2b0af030a6d195014a5d0cfb40691710c
7
- data.tar.gz: b5c3987274bef336ea52c34e2997d3134766442d958f12c5773e8c2006578b7ffa71bf4ea2a6a55ea1fd26d1d4331dc15b383a0d5c733544c37ccff1a4b25531
6
+ metadata.gz: 1c584ffa03513fd6732d9481405e31ee6854c51f7a92ea3741cadbfd5b73d08cd0e4babd80fce8f511a112a4f3ea255c7761e8232f9665113533a5e84167b8ff
7
+ data.tar.gz: a50003c5441d06767e276a53a474656de1711c1626013b3f725538706d2c1b235678cdc938e04dc79bc2505a82ab02695b84dd5e0689ee9e586559477da6b836
@@ -7,6 +7,7 @@ module RenderVariant
7
7
 
8
8
  def setup_with_variant(context, options, block)
9
9
  initial_setup = setup_without_variant(context, options, block)
10
+ return self unless @path
10
11
  variant = if(options[:variant])
11
12
  options[:variant]
12
13
  elsif(options[:locals] && options[:locals][:variant])
@@ -1,3 +1,3 @@
1
1
  module RenderVariant
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render_variant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-09 00:00:00.000000000 Z
11
+ date: 2013-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails