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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aea8e688ad7161963e3892b5b64d6ecd5abc3b6e
4
- data.tar.gz: 4917a8685d6a608108f35028fb5c1f9fe3ca5c33
3
+ metadata.gz: 3e17dfa56e9d8691eacf830ef5fd5d05ce200461
4
+ data.tar.gz: 1fb56f25a27c57a21b9e2a8edcb377fb936c1b24
5
5
  SHA512:
6
- metadata.gz: bac4aa2988b8b701bb3bbed04daccec1cb3710d9e58faa8bc46b0b29cf95ab3f21d09dce042c854b3d07a26d35c746dca40b11b703088b4640eecdd53e6a08ee
7
- data.tar.gz: b9b69758a461b6231f2ed4d271bd35342e0d9071dc9aa7ff9119bee89d1689a29f7d95213a70883a2cf252c70abfcd45540d2c43a1f49bf1a7804e4bd89ca16a
6
+ metadata.gz: 6910e0a726760a352218d4fa1fd46ba418f86d19a229b977df994610f6c1af351562665d0d7a4ac8d01d730310c84cb90a8100e40aafca32fd8e34140936ec76
7
+ data.tar.gz: f90a17b8f6d71d14b0d089c136e1c24b4bc0a3023207e056e722b23359b53586ca6c499efb04f2ddbbc7c573bca6ebf9ef81c34adba8d767818b2ccdf3d85b40
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
@@ -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 json_to_send
12
+ def resource_content
13
13
  self.to_json
14
14
  end
15
15
 
16
- def send_to
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: json_to_send,
26
- send_to: send_to
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: json_to_send,
37
- send_to: send_to
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: json_to_send,
48
- send_to: send_to
47
+ resource_content: resource_content,
48
+ recipient_uids: recipient_uids
49
49
  }
50
50
  notify message
51
51
  end
@@ -1,3 +1,3 @@
1
1
  module RealtimeChange
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realtime_change
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emeson Santana