serialization_scopes 0.9.1 → 0.9.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.9.1
1
+ 0.9.2
@@ -71,7 +71,7 @@ module SerializationScopes # :nodoc:
71
71
  end
72
72
 
73
73
  def serialized
74
- @serialized ||= ActiveSupport::JSON.decode(@subject.to_json(:scope => @scope))
74
+ @serialized ||= Hash.from_xml(@subject.to_xml(:scope => @scope))
75
75
  end
76
76
 
77
77
  def expectation
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serialization_scopes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 9
9
- - 1
10
- version: 0.9.1
5
+ version: 0.9.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Dimitrij Denissenko
@@ -16,8 +11,7 @@ autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
13
 
19
- date: 2011-05-16 00:00:00 +01:00
20
- default_executable:
14
+ date: 2011-07-02 00:00:00 Z
21
15
  dependencies: []
22
16
 
23
17
  description: Adds named scopes for ActiveRecord/ActiveResource serialization methods (to_xml, to_json)
@@ -36,7 +30,6 @@ files:
36
30
  - lib/serialization_scopes/matchers/serialize_matcher.rb
37
31
  - lib/serialization_scopes/matchers.rb
38
32
  - rails/init.rb
39
- has_rdoc: true
40
33
  homepage: http://github.com/dim/serialization_scopes
41
34
  licenses: []
42
35
 
@@ -50,27 +43,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
43
  requirements:
51
44
  - - ">="
52
45
  - !ruby/object:Gem::Version
53
- hash: 57
54
- segments:
55
- - 1
56
- - 8
57
- - 7
58
46
  version: 1.8.7
59
47
  required_rubygems_version: !ruby/object:Gem::Requirement
60
48
  none: false
61
49
  requirements:
62
50
  - - ">="
63
51
  - !ruby/object:Gem::Version
64
- hash: 23
65
- segments:
66
- - 1
67
- - 3
68
- - 6
69
52
  version: 1.3.6
70
53
  requirements: []
71
54
 
72
55
  rubyforge_project:
73
- rubygems_version: 1.6.2
56
+ rubygems_version: 1.8.5
74
57
  signing_key:
75
58
  specification_version: 3
76
59
  summary: Named scopes for ActiveRecord/ActiveResource serialization methods (to_xml, to_json)