mm_dirtier 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,35 +6,48 @@ module MongoMapper
6
6
  def can_be_observable?
7
7
  false
8
8
  end
9
+ def observable?
10
+ false
11
+ end
9
12
  end
10
13
 
11
14
  class ManyEmbeddedProxy
12
15
  def can_be_observable?; true; end
16
+ def observable?; @observable; end
13
17
 
14
18
  def make_observable
15
19
  class << self; include MmDirtier::ManyEmbeddedProxyListener; end unless observable?
20
+ @observable = true
16
21
  end
17
22
  end
18
23
 
19
24
  class ManyEmbeddedPolymorphicProxy
20
25
  def can_be_observable?; true; end
26
+ def observable?; @observable; end
21
27
 
22
28
  def make_observable
23
29
  class << self; include MmDirtier::ManyEmbeddedProxyListener; end unless observable?
30
+ @observable = true
24
31
  end
25
32
  end
26
33
 
27
34
  class InArrayProxy
28
35
  def can_be_observable?; true; end
36
+ def observable?; @observable; end
37
+
29
38
  def make_observable
30
39
  class << self; include MmDirtier::InArrayProxyListener;end unless observable?
40
+ @observable = true
31
41
  end
32
42
  end
33
43
 
34
44
  class OneEmbeddedProxy
35
45
  def can_be_observable?; true; end
46
+ def observable?; @observable; end
47
+
36
48
  def make_observable
37
49
  class << self; include MmDirtier::OneEmbeddedProxyListener;end unless observable?
50
+ @observable = true
38
51
  end
39
52
  end
40
53
 
@@ -40,9 +40,9 @@ class Hash
40
40
  def make_indifferent!
41
41
  return self if defined?(@is_indifferent) && @is_indifferent
42
42
 
43
+ @is_indifferent = true
43
44
  stringify_keys!
44
45
  extend IndifferentAccess
45
- @is_indifferent = true
46
46
 
47
47
  self
48
48
  end
@@ -1,6 +1,6 @@
1
1
  # encoding: UTF-8
2
2
  module MongoMapper
3
3
  module Dirtier
4
- Version = '0.1.3'
4
+ Version = '0.1.4'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mm_dirtier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nathan Stults
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-04 00:00:00 -08:00
18
+ date: 2011-01-13 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency