serialize_variants 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/serialize_variants.rb +1 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -34,7 +34,7 @@ PKG_FILES = FileList[
34
34
 
35
35
  spec = Gem::Specification.new do |s|
36
36
  s.name = "serialize_variants"
37
- s.version = "0.1.9"
37
+ s.version = "0.1.10"
38
38
  s.author = "Nicolas Goy"
39
39
  s.email = "kuon@goyman.com"
40
40
  s.homepage = "http://goyman.com/"
@@ -23,7 +23,7 @@ module SerializeVariants
23
23
 
24
24
  if options[:variant]
25
25
  opts = (self.class.serialize_variant(options[:variant]) || {})
26
- opts[:variant] = options[:variant]
26
+ opts[:variant] ||= options[:variant]
27
27
  res = super(opts)
28
28
  else
29
29
  res = super(options)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: serialize_variants
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.9
5
+ version: 0.1.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicolas Goy