realtime_change 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/realtime_change/model/class_methods.rb +8 -8
- data/lib/realtime_change/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e17dfa56e9d8691eacf830ef5fd5d05ce200461
|
4
|
+
data.tar.gz: 1fb56f25a27c57a21b9e2a8edcb377fb936c1b24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6910e0a726760a352218d4fa1fd46ba418f86d19a229b977df994610f6c1af351562665d0d7a4ac8d01d730310c84cb90a8100e40aafca32fd8e34140936ec76
|
7
|
+
data.tar.gz: f90a17b8f6d71d14b0d089c136e1c24b4bc0a3023207e056e722b23359b53586ca6c499efb04f2ddbbc7c573bca6ebf9ef81c34adba8d767818b2ccdf3d85b40
|
data/.gitignore
CHANGED
@@ -9,11 +9,11 @@ module RealtimeChange
|
|
9
9
|
|
10
10
|
# Define an anonymous module for all of the instance methods.
|
11
11
|
instance_methods = Module.new do
|
12
|
-
def
|
12
|
+
def resource_content
|
13
13
|
self.to_json
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def recipient_uids
|
17
17
|
[]
|
18
18
|
end
|
19
19
|
|
@@ -22,8 +22,8 @@ module RealtimeChange
|
|
22
22
|
type: 'change',
|
23
23
|
action: 'create',
|
24
24
|
resource: self.class.name,
|
25
|
-
resource_content:
|
26
|
-
|
25
|
+
resource_content: resource_content,
|
26
|
+
recipient_uids: recipient_uids
|
27
27
|
}
|
28
28
|
notify message
|
29
29
|
end
|
@@ -33,8 +33,8 @@ module RealtimeChange
|
|
33
33
|
type: 'change',
|
34
34
|
action: 'update',
|
35
35
|
resource: self.class.name,
|
36
|
-
resource_content:
|
37
|
-
|
36
|
+
resource_content: resource_content,
|
37
|
+
recipient_uids: recipient_uids
|
38
38
|
}
|
39
39
|
notify message
|
40
40
|
end
|
@@ -44,8 +44,8 @@ module RealtimeChange
|
|
44
44
|
type: 'change',
|
45
45
|
action: 'destroy',
|
46
46
|
resource: self.class.name,
|
47
|
-
resource_content:
|
48
|
-
|
47
|
+
resource_content: resource_content,
|
48
|
+
recipient_uids: recipient_uids
|
49
49
|
}
|
50
50
|
notify message
|
51
51
|
end
|