vignette 0.0.16 → 0.0.17

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: 9e6cdf3a27251255b9bed7d82c76816ce95edc8c
4
- data.tar.gz: 6a43fd6f66033556886fc788b21ef56c3b97f66f
3
+ metadata.gz: 9039cedf8647c0a9fed3af2baf4b8011394929ce
4
+ data.tar.gz: 0d80b115aeb70c0431f9aab3a77f008545e805c3
5
5
  SHA512:
6
- metadata.gz: 55df73bf300cdc624ebc4728c5fe5fa8213bb882322fe6749059e8bdd31dff343b40aa975f33655cd31b2644ce6ee1c8932a3048c6a656f0a323debd5b15861e
7
- data.tar.gz: be530c3ba036ac2d02b0f855cb0424c14b6d184fab3ae374dd5bd1013b85d85a399b003f1744f06d4246eb7be0d613b3c7f86e9318b12ff775c0dc5086a029e9
6
+ metadata.gz: 32ecca1cb94d72395487b6f68aa76c96104324a3ecd26a95d639f4f07a59446d8e3993cd2241b66c6648bc863928da5221223ebdc583a5de1a2780da9fdbc312
7
+ data.tar.gz: 1969cbb84d8c21b44b2d24fe0a6486e69dc94193ed75e55bfd0c026ff69024c4914e0bcfffa9cd30fcf900b57cd8c2f2774d971e9862fbc15afb749d444c2982
@@ -24,10 +24,10 @@ module ObjectExtensions
24
24
  "(#{Vignette::strip_path(loc.absolute_path)}:#{loc.lineno})"
25
25
  end
26
26
 
27
- result = if vig.has_key?(vignette_crc)
28
- vig[vignette_crc]['v']
29
- elsif Vignette.force_choice && self.include?(Vignette.force_choice)
27
+ result = if Vignette.force_choice && self.include?(Vignette.force_choice)
30
28
  Vignette.force_choice
29
+ elsif vig.has_key?(vignette_crc)
30
+ vig[vignette_crc]['v']
31
31
  else
32
32
  # Store key into storage if not available
33
33
  new_value = self[Vignette::rand(length)]
@@ -1,3 +1,3 @@
1
1
  module Vignette
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vignette
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Hayes