serialize_variants 0.0.6 → 0.0.7

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 +2 -2
  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.0.6"
37
+ s.version = "0.0.7"
38
38
  s.author = "Nicolas Goy"
39
39
  s.email = "kuon@goyman.com"
40
40
  s.homepage = "http://goyman.com/"
@@ -24,9 +24,9 @@ module SerializeVariants
24
24
 
25
25
  case options[:variant]
26
26
  when :short
27
- super(self.class.short_serialize_options.merge(force))
27
+ super((self.class.short_serialize_options || {}).merge(force))
28
28
  when :long
29
- super(self.class.long_serialize_options.merge(force))
29
+ super((self.class.long_serialize_options || {}).merge(force))
30
30
  else
31
31
  super(options)
32
32
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: serialize_variants
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicolas Goy