serialization_scopes 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/serialization_scopes.rb +2 -3
- metadata +59 -28
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
data/lib/serialization_scopes.rb
CHANGED
@@ -22,16 +22,15 @@ module SerializationScopes
|
|
22
22
|
options
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
protected
|
26
26
|
|
27
27
|
def serialization_scopes
|
28
|
-
@_serialization_scopes ||= {}
|
28
|
+
@_serialization_scopes ||= superclass.respond_to?(:serialization_scopes) ? superclass.send(:serialization_scopes).clone : {}
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
32
32
|
|
33
33
|
module InstanceExtensions
|
34
|
-
extend ActiveSupport::Concern
|
35
34
|
|
36
35
|
def to_xml(options = {})
|
37
36
|
super self.class.scoped_serialization_options(options)
|
metadata
CHANGED
@@ -1,38 +1,56 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialization_scopes
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Dimitrij Denissenko
|
9
14
|
- Evgeniy Dolzhenko
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
18
|
+
|
19
|
+
date: 2011-09-05 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: activemodel
|
17
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
18
25
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 7
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 0
|
33
|
+
- 0
|
22
34
|
version: 3.0.0
|
23
35
|
- - <
|
24
|
-
- !ruby/object:Gem::Version
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
hash: 15
|
38
|
+
segments:
|
39
|
+
- 3
|
40
|
+
- 2
|
41
|
+
- 0
|
25
42
|
version: 3.2.0
|
26
43
|
type: :runtime
|
27
|
-
|
28
|
-
|
29
|
-
description: Adds named scopes for ActiveRecord/ActiveResource serialization methods
|
30
|
-
(to_xml, to_json)
|
44
|
+
version_requirements: *id001
|
45
|
+
description: Adds named scopes for ActiveRecord/ActiveResource serialization methods (to_xml, to_json)
|
31
46
|
email: info@blacksquaremedia.com
|
32
47
|
executables: []
|
48
|
+
|
33
49
|
extensions: []
|
50
|
+
|
34
51
|
extra_rdoc_files: []
|
35
|
-
|
52
|
+
|
53
|
+
files:
|
36
54
|
- VERSION
|
37
55
|
- lib/serialization_scopes.rb
|
38
56
|
- lib/serialization_scopes/matchers.rb
|
@@ -42,27 +60,40 @@ files:
|
|
42
60
|
- rails/init.rb
|
43
61
|
homepage: http://github.com/bsm/serialization_scopes
|
44
62
|
licenses: []
|
63
|
+
|
45
64
|
post_install_message:
|
46
65
|
rdoc_options: []
|
47
|
-
|
66
|
+
|
67
|
+
require_paths:
|
48
68
|
- lib
|
49
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
70
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
hash: 57
|
75
|
+
segments:
|
76
|
+
- 1
|
77
|
+
- 8
|
78
|
+
- 7
|
54
79
|
version: 1.8.7
|
55
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
81
|
none: false
|
57
|
-
requirements:
|
58
|
-
- -
|
59
|
-
- !ruby/object:Gem::Version
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 23
|
86
|
+
segments:
|
87
|
+
- 1
|
88
|
+
- 3
|
89
|
+
- 6
|
60
90
|
version: 1.3.6
|
61
91
|
requirements: []
|
92
|
+
|
62
93
|
rubyforge_project:
|
63
94
|
rubygems_version: 1.8.5
|
64
95
|
signing_key:
|
65
96
|
specification_version: 3
|
66
|
-
summary: Named scopes for ActiveRecord/ActiveResource serialization methods (to_xml,
|
67
|
-
to_json)
|
97
|
+
summary: Named scopes for ActiveRecord/ActiveResource serialization methods (to_xml, to_json)
|
68
98
|
test_files: []
|
99
|
+
|