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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f64ff03a6db9357ff1de28de696e43f5d0837fa0a286a97a7b58bcfbcbc8e74
4
- data.tar.gz: 9982b61be14185fe196aaa23787518e0093c4b407fbb59b6c6b109497f447cce
3
+ metadata.gz: 35a369de6f8a63a83c6fac93c5245af4c9577fab452f9fe8f533c4826d8b8a7f
4
+ data.tar.gz: b4c6a12e612af6ce3ab62a92a961e4f27ddfaedabd7a9bb58206b0433dd2446f
5
5
  SHA512:
6
- metadata.gz: ad3f579024358d903dd2fee3baeb1e84326833b4b4e999c2aeaaaea34a48ecb29e5db9958ca75b19b1473d65af78b6c9c8829649c80e7b18e8779955df27abee
7
- data.tar.gz: 73c24043da1cb99164c5dba8d704ad9776e97cb17751e0342f4bd036d526913d7226a61ff0da7a909ff2edae89c6314945e6ca64a0bf167c554546243368e43f
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
+ });
@@ -0,0 +1,14 @@
1
+ class NotificationsChannel < ApplicationCable::Channel
2
+
3
+ def subscribed
4
+ # stream_from "some_channel"
5
+ end
6
+
7
+ def unsubscribed
8
+ # Any cleanup needed when channel is unsubscribed
9
+ end
10
+
11
+ def change
12
+ end
13
+
14
+ end
@@ -1 +1,2 @@
1
+ require 'notification-pusher'
1
2
  require 'notification_pusher/action_cable'
@@ -1,3 +1,5 @@
1
+ require 'notification-renderer'
2
+
1
3
  class NotificationPusher::ActionCable
2
4
 
3
5
  require 'notification_pusher/action_cable/engine'
@@ -1,4 +1,5 @@
1
1
  require 'rails/railtie'
2
+ require 'action_cable'
2
3
 
3
4
  module NotificationPusher
4
5
  class ActionCable
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.beta10
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.beta10
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.beta10
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.beta10
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.beta10
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