serialist 0.5.1 → 0.5.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -69,14 +69,13 @@ module Serialist
69
69
  slug = self.send(self.class.serialist_field)
70
70
  case method.to_s.last
71
71
  when "?"
72
- slug && slug[method.to_s[0..-2].to_sym] == (args && args.first || "true")
73
72
  if args.empty?
74
73
  slug && ![nil, false, "false", :false].include?(slug[method.to_s[0..-2].to_sym])
75
74
  else
76
75
  slug && (slug[method.to_s[0..-2].to_sym] == args.first)
77
76
  end
78
77
  when "="
79
- self.send(slug.to_s + "=", Hash.new) unless slug
78
+ self.send(self.class.serialist_field.to_s + "=", Hash.new) unless slug
80
79
  self.send(self.class.serialist_field)[method.to_s[0..-2].to_sym] = args.first
81
80
  else
82
81
  slug && slug[method.to_sym]
data/serialist.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{serialist}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Benoit B\303\251n\303\251zech"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Benoit B\xC3\xA9n\xC3\xA9zech"