notification-pusher-actioncable 1.2.5 → 1.2.6

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: 7d217b2b4da143271cfef00b43c3e72fac2107a4c7144058e514c4e0d3eb1b81
4
- data.tar.gz: 5dbd5c496d356afd5f48108032cd2f76a69dd6032aba174968c61b85dcb6fa8f
3
+ metadata.gz: '03668c62b8912715bcda1a409c0b5d033a95d3f777b46c1fdf500139ae50789a'
4
+ data.tar.gz: 3e58f131280321c19141cf27c3e170121f93bca6473dcef5562586213d3ca9ab
5
5
  SHA512:
6
- metadata.gz: 34c44882e249bc76563f41967bfc5049746e55b8b0cb0cb824265d80d75baa03594056cfe82a0e08d63165b9db8da4cde08a1d9ada1d90ef9cfa1f2b70b9a8d5
7
- data.tar.gz: 64b67c9736f6bb0104d98c6b183a077ff219ceb32475ee5552ce692c59510793ef728c21af725df6d17a814f897d6306a623e9c242774f52b7f86f5686927146
6
+ metadata.gz: bcfaefe6924d60ebec017f8485eb481417ded4ee605b10ea65850a1bb36e5555d79e7d2887e0d240f7b19a2e7a614055ede6ba63c40dbd67bb835dceb6a5fb7a
7
+ data.tar.gz: 3911fc21407bc10be97afaed4964762c0fed9f1f94f6b5473cf6f3832106d07a74da494c646470a9f4c22d1da2699186d8faa79c52440abb1c2c51e72fbeb5f8
data/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Jonas Hübotter
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Jonas Hübotter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,102 +1,102 @@
1
- # NotificationPusher for ActionCable
2
-
3
- [![Gem Version](https://badge.fury.io/rb/notification-pusher-actioncable.svg)](https://badge.fury.io/rb/notification-pusher-actioncable) <img src="https://travis-ci.org/jonhue/notifications-rails.svg?branch=master" />
4
-
5
- A pusher to serve your notifications through WebSockets wit ActionCable.
6
-
7
- ---
8
-
9
- ## Table of Contents
10
-
11
- * [Installation](#installation)
12
- * [Usage](#usage)
13
- * [Options](#options)
14
- * [To Do](#to-do)
15
- * [Contributing](#contributing)
16
- * [Contributors](#contributors)
17
- * [Semantic versioning](#semantic-versioning)
18
- * [License](#license)
19
-
20
- ---
21
-
22
- ## Installation
23
-
24
- NotificationPusher for ActionCable works with Rails 5 onwards. You can add it to your `Gemfile` with:
25
-
26
- ```ruby
27
- gem 'notification-pusher-actioncable'
28
- ```
29
-
30
- And then execute:
31
-
32
- $ bundle
33
-
34
- Or install it yourself as:
35
-
36
- $ gem install notification-pusher-actioncable
37
-
38
- If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
39
-
40
- ```ruby
41
- gem 'notification-pusher-actioncable', github: 'jonhue/notifications-rails'
42
- ```
43
-
44
- ---
45
-
46
- ## Usage
47
-
48
- Basic usage
49
-
50
- ### Options
51
-
52
- ...
53
-
54
- ---
55
-
56
- ## To Do
57
-
58
- [Here](https://github.com/jonhue/notifications-rails/projects/5) is the full list of current projects.
59
-
60
- To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/notifications-rails/issues/new).
61
-
62
- ---
63
-
64
- ## Contributing
65
-
66
- We hope that you will consider contributing to NotificationPusher for ActionCable. Please read this short overview for some information about how to get started:
67
-
68
- [Learn more about contributing to this repository](https://github.com/jonhue/notifications-rails/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/jonhue/notifications-rails/blob/master/CODE_OF_CONDUCT.md)
69
-
70
- ### Contributors
71
-
72
- Give the people some :heart: who are working on this project. See them all at:
73
-
74
- https://github.com/jonhue/notifications-rails/graphs/contributors
75
-
76
- ### Semantic Versioning
77
-
78
- NotificationPusher for ActionCable follows Semantic Versioning 2.0 as defined at http://semver.org.
79
-
80
- ## License
81
-
82
- MIT License
83
-
84
- Copyright (c) 2017 Jonas Hübotter
85
-
86
- Permission is hereby granted, free of charge, to any person obtaining a copy
87
- of this software and associated documentation files (the "Software"), to deal
88
- in the Software without restriction, including without limitation the rights
89
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
90
- copies of the Software, and to permit persons to whom the Software is
91
- furnished to do so, subject to the following conditions:
92
-
93
- The above copyright notice and this permission notice shall be included in all
94
- copies or substantial portions of the Software.
95
-
96
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
97
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
99
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
100
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
102
- SOFTWARE.
1
+ # NotificationPusher for ActionCable
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/notification-pusher-actioncable.svg)](https://badge.fury.io/rb/notification-pusher-actioncable) <img src="https://travis-ci.org/jonhue/notifications-rails.svg?branch=master" />
4
+
5
+ A pusher to serve your notifications through WebSockets wit ActionCable.
6
+
7
+ ---
8
+
9
+ ## Table of Contents
10
+
11
+ * [Installation](#installation)
12
+ * [Usage](#usage)
13
+ * [Options](#options)
14
+ * [To Do](#to-do)
15
+ * [Contributing](#contributing)
16
+ * [Contributors](#contributors)
17
+ * [Semantic versioning](#semantic-versioning)
18
+ * [License](#license)
19
+
20
+ ---
21
+
22
+ ## Installation
23
+
24
+ NotificationPusher for ActionCable works with Rails 5 onwards. You can add it to your `Gemfile` with:
25
+
26
+ ```ruby
27
+ gem 'notification-pusher-actioncable'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ $ bundle
33
+
34
+ Or install it yourself as:
35
+
36
+ $ gem install notification-pusher-actioncable
37
+
38
+ If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
39
+
40
+ ```ruby
41
+ gem 'notification-pusher-actioncable', github: 'jonhue/notifications-rails'
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Usage
47
+
48
+ Basic usage
49
+
50
+ ### Options
51
+
52
+ ...
53
+
54
+ ---
55
+
56
+ ## To Do
57
+
58
+ [Here](https://github.com/jonhue/notifications-rails/projects/5) is the full list of current projects.
59
+
60
+ To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/notifications-rails/issues/new).
61
+
62
+ ---
63
+
64
+ ## Contributing
65
+
66
+ We hope that you will consider contributing to NotificationPusher for ActionCable. Please read this short overview for some information about how to get started:
67
+
68
+ [Learn more about contributing to this repository](https://github.com/jonhue/notifications-rails/blob/master/CONTRIBUTING.md), [Code of Conduct](https://github.com/jonhue/notifications-rails/blob/master/CODE_OF_CONDUCT.md)
69
+
70
+ ### Contributors
71
+
72
+ Give the people some :heart: who are working on this project. See them all at:
73
+
74
+ https://github.com/jonhue/notifications-rails/graphs/contributors
75
+
76
+ ### Semantic Versioning
77
+
78
+ NotificationPusher for ActionCable follows Semantic Versioning 2.0 as defined at http://semver.org.
79
+
80
+ ## License
81
+
82
+ MIT License
83
+
84
+ Copyright (c) 2017 Jonas Hübotter
85
+
86
+ Permission is hereby granted, free of charge, to any person obtaining a copy
87
+ of this software and associated documentation files (the "Software"), to deal
88
+ in the Software without restriction, including without limitation the rights
89
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
90
+ copies of the Software, and to permit persons to whom the Software is
91
+ furnished to do so, subject to the following conditions:
92
+
93
+ The above copyright notice and this permission notice shall be included in all
94
+ copies or substantial portions of the Software.
95
+
96
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
97
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
98
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
99
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
100
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
101
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
102
+ SOFTWARE.
@@ -1,17 +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
- });
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
+ });
@@ -1,14 +1,13 @@
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
+ # frozen_string_literal: true
2
+
3
+ class NotificationsChannel < ApplicationCable::Channel
4
+ def subscribed
5
+ # stream_from "some_channel"
6
+ end
7
+
8
+ def unsubscribed
9
+ # Any cleanup needed when channel is unsubscribed
10
+ end
11
+
12
+ def change; end
13
+ end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'notification-pusher'
2
4
  require 'notification_pusher/action_cable'
@@ -1,11 +1,13 @@
1
- require 'notification-renderer'
1
+ # frozen_string_literal: true
2
2
 
3
- class NotificationPusher::ActionCable
3
+ require 'notification-renderer'
4
4
 
5
+ module NotificationPusher
6
+ class ActionCable
5
7
  require 'notification_pusher/action_cable/engine'
6
8
 
7
- def initialize notification, options = {}
8
- # ...
9
+ def initialize(notification, options = {})
10
+ # ...
9
11
  end
10
-
12
+ end
11
13
  end
@@ -1,9 +1,11 @@
1
- require 'rails/railtie'
2
- require 'action_cable'
3
-
4
- module NotificationPusher
5
- class ActionCable
6
- class Engine < ::Rails::Engine
7
- end
8
- end
9
- end
1
+ # frozen_string_literal: true
2
+
3
+ require 'rails/railtie'
4
+ require 'action_cable'
5
+
6
+ module NotificationPusher
7
+ class ActionCable
8
+ class Engine < ::Rails::Engine
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,106 +1,119 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notification-pusher-actioncable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Hübotter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-25 00:00:00.000000000 Z
11
+ date: 2018-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: railties
14
+ name: actioncable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.0'
26
+ version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: actioncable
28
+ name: notification-pusher
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
33
+ version: 1.2.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: 1.2.6
41
41
  - !ruby/object:Gem::Dependency
42
- name: notification-pusher
42
+ name: notification-renderer
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.2.5
47
+ version: 1.2.6
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.2.5
54
+ version: 1.2.6
55
55
  - !ruby/object:Gem::Dependency
56
- name: notification-renderer
56
+ name: railties
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.5
61
+ version: '5.2'
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.2.5
68
+ version: '5.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.7'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.7'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '0.52'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '0.52'
110
+ version: '0'
97
111
  description: A pusher to serve your notifications through WebSockets wit ActionCable.
98
112
  email: me@jonhue.me
99
113
  executables: []
100
114
  extensions: []
101
115
  extra_rdoc_files: []
102
116
  files:
103
- - CHANGELOG.md
104
117
  - LICENSE
105
118
  - README.md
106
119
  - app/assets/javascripts/channels/notifications.js
@@ -120,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
133
  requirements:
121
134
  - - ">="
122
135
  - !ruby/object:Gem::Version
123
- version: '2.3'
136
+ version: 2.2.2
124
137
  required_rubygems_version: !ruby/object:Gem::Requirement
125
138
  requirements:
126
139
  - - ">="
@@ -128,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
141
  version: '0'
129
142
  requirements: []
130
143
  rubyforge_project:
131
- rubygems_version: 2.7.4
144
+ rubygems_version: 2.7.6
132
145
  signing_key:
133
146
  specification_version: 4
134
147
  summary: A pusher to serve your notifications through WebSockets wit ActionCable
@@ -1,23 +0,0 @@
1
- # Changelog
2
-
3
- ### master
4
-
5
- * nothing yet
6
-
7
- ### 1.0.0 - 2017/12/28
8
-
9
- * bugfixes
10
-
11
- ### 1.0.0.beta6 - 2017/12/28
12
-
13
- * bugfixes
14
- * fix lib loading problems
15
-
16
- ### 1.0.0 - 2017/12/28
17
-
18
- * features
19
- * add Rails engine
20
-
21
- ### 1.0.0.beta1 - 2017/12/22
22
-
23
- * initial release