notification-pusher-actioncable 1.0.0.beta10 → 1.0.0.beta11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/channels/notifications.js +17 -0
- data/app/channels/notifications_channel.rb +14 -0
- data/lib/notification-pusher-actioncable.rb +1 -0
- data/lib/notification_pusher/action_cable.rb +2 -0
- data/lib/notification_pusher/action_cable/engine.rb +1 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35a369de6f8a63a83c6fac93c5245af4c9577fab452f9fe8f533c4826d8b8a7f
|
4
|
+
data.tar.gz: b4c6a12e612af6ce3ab62a92a961e4f27ddfaedabd7a9bb58206b0433dd2446f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bdbda11ce221d84dbda51e9147cf0e45566c8c82ae16aa5da468f162e20e6f5941c6afe70b322d54a93360f9789ea965c9b3f50f051ba06ff07f119ecd65510
|
7
|
+
data.tar.gz: e67b0846132d0f59459f0ce9eb99427a3b054781c099a812c50d3c6e42e4be35105d90fcbf946437078c4d235b58e8c9c84d089b7bb6c2560eaccebbcea3e901
|
@@ -0,0 +1,17 @@
|
|
1
|
+
App.notifications = App.cable.subscriptions.create('NotificationsChannel', {
|
2
|
+
connected: function() {
|
3
|
+
// Called when the subscription is ready for use on the server
|
4
|
+
},
|
5
|
+
|
6
|
+
disconnected: function() {
|
7
|
+
// Called when the subscription has been terminated by the server
|
8
|
+
},
|
9
|
+
|
10
|
+
received: function(data) {
|
11
|
+
// Called when there's incoming data on the websocket for this channel
|
12
|
+
},
|
13
|
+
|
14
|
+
change: function() {
|
15
|
+
return this.perform('change');
|
16
|
+
}
|
17
|
+
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notification-pusher-actioncable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Hübotter
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0.0.
|
47
|
+
version: 1.0.0.beta11
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.0.
|
54
|
+
version: 1.0.0.beta11
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: notification-renderer
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.0.
|
61
|
+
version: 1.0.0.beta11
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.0.
|
68
|
+
version: 1.0.0.beta11
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,6 +103,8 @@ files:
|
|
103
103
|
- CHANGELOG.md
|
104
104
|
- LICENSE
|
105
105
|
- README.md
|
106
|
+
- app/assets/javascripts/channels/notifications.js
|
107
|
+
- app/channels/notifications_channel.rb
|
106
108
|
- lib/notification-pusher-actioncable.rb
|
107
109
|
- lib/notification_pusher/action_cable.rb
|
108
110
|
- lib/notification_pusher/action_cable/engine.rb
|