serialize_variants 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/serialize_variants.rb +3 -2
  3. metadata +2 -2
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.8"
37
+ s.version = "0.1.9"
38
38
  s.author = "Nicolas Goy"
39
39
  s.email = "kuon@goyman.com"
40
40
  s.homepage = "http://goyman.com/"
@@ -20,10 +20,11 @@ module SerializeVariants
20
20
  def serializable_hash(options = nil)
21
21
  options ||= {}
22
22
  variant = options[:variant]
23
- force = options[:force] || {}
24
23
 
25
24
  if options[:variant]
26
- res = super((self.class.serialize_variant(options[:variant]) || {}).merge(options).merge(force))
25
+ opts = (self.class.serialize_variant(options[:variant]) || {})
26
+ opts[:variant] = options[:variant]
27
+ res = super(opts)
27
28
  else
28
29
  res = super(options)
29
30
  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.1.8
5
+ version: 0.1.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicolas Goy
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-23 00:00:00 +02:00
13
+ date: 2011-06-27 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies: []
16
16