serialization_scopes 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/serialization_scopes.rb +6 -5
  3. metadata +38 -46
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -4,11 +4,6 @@ require 'serialization_scopes/responder'
4
4
  module SerializationScopes
5
5
  extend ActiveSupport::Concern
6
6
 
7
- included do
8
- class_inheritable_reader :serialization_scopes, :instance_reader => false
9
- write_inheritable_attribute :serialization_scopes, {}
10
- end
11
-
12
7
  module ClassMethods
13
8
 
14
9
  def serialization_scope(name, options = {})
@@ -27,6 +22,12 @@ module SerializationScopes
27
22
  options
28
23
  end
29
24
 
25
+ private
26
+
27
+ def serialization_scopes
28
+ @_serialization_scopes ||= {}
29
+ end
30
+
30
31
  end
31
32
 
32
33
  module InstanceExtensions
metadata CHANGED
@@ -1,76 +1,68 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: serialization_scopes
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Dimitrij Denissenko
14
9
  - Evgeniy Dolzhenko
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-08-29 00:00:00 Z
20
- dependencies: []
21
-
22
- description: Adds named scopes for ActiveRecord/ActiveResource serialization methods (to_xml, to_json)
13
+ date: 2011-09-02 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activemodel
17
+ requirement: &19023060 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 3.0.0
23
+ - - <
24
+ - !ruby/object:Gem::Version
25
+ version: 3.2.0
26
+ type: :runtime
27
+ prerelease: false
28
+ version_requirements: *19023060
29
+ description: Adds named scopes for ActiveRecord/ActiveResource serialization methods
30
+ (to_xml, to_json)
23
31
  email: info@blacksquaremedia.com
24
32
  executables: []
25
-
26
33
  extensions: []
27
-
28
34
  extra_rdoc_files: []
29
-
30
- files:
35
+ files:
31
36
  - VERSION
32
- - lib/serialization_scopes/responder.rb
33
- - lib/serialization_scopes/resolver.rb
37
+ - lib/serialization_scopes.rb
34
38
  - lib/serialization_scopes/matchers.rb
39
+ - lib/serialization_scopes/responder.rb
35
40
  - lib/serialization_scopes/matchers/serialize_matcher.rb
36
- - lib/serialization_scopes.rb
41
+ - lib/serialization_scopes/resolver.rb
37
42
  - rails/init.rb
38
- homepage: http://github.com/dim/serialization_scopes
43
+ homepage: http://github.com/bsm/serialization_scopes
39
44
  licenses: []
40
-
41
45
  post_install_message:
42
46
  rdoc_options: []
43
-
44
- require_paths:
47
+ require_paths:
45
48
  - lib
46
- required_ruby_version: !ruby/object:Gem::Requirement
49
+ required_ruby_version: !ruby/object:Gem::Requirement
47
50
  none: false
48
- requirements:
49
- - - ">="
50
- - !ruby/object:Gem::Version
51
- hash: 57
52
- segments:
53
- - 1
54
- - 8
55
- - 7
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
56
54
  version: 1.8.7
57
- required_rubygems_version: !ruby/object:Gem::Requirement
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
56
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 23
63
- segments:
64
- - 1
65
- - 3
66
- - 6
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
67
60
  version: 1.3.6
68
61
  requirements: []
69
-
70
62
  rubyforge_project:
71
63
  rubygems_version: 1.8.5
72
64
  signing_key:
73
65
  specification_version: 3
74
- summary: Named scopes for ActiveRecord/ActiveResource serialization methods (to_xml, to_json)
66
+ summary: Named scopes for ActiveRecord/ActiveResource serialization methods (to_xml,
67
+ to_json)
75
68
  test_files: []
76
-