notification-pusher-actioncable 1.0.0.beta1 → 1.0.0.beta2
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/README.md +9 -37
- metadata +6 -42
- data/CHANGELOG.md +0 -9
- data/generators/install_generator.rb +0 -15
- data/generators/templates/install/initializer.rb +0 -6
- data/lib/notification_pusher/action_cable/configuration.rb +0 -24
- data/lib/notification_pusher/action_cable/engine.rb +0 -8
- data/lib/notification_pusher/action_cable/railtie.rb +0 -11
- data/lib/notification_pusher/action_cable.rb +0 -11
- data/lib/notification_pusher.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94a0b4829ce5db4846739ccff99d67c19ad8ed4885a6213604e493970d20e029
|
4
|
+
data.tar.gz: 69d54b7768e18a8be15a330c02318f87c7ae189bdfcb17bb1691449a18fd4c11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e4d77816dcd7d63c99d6a0285d3e8525cf720302e32b650bffd5f545772f594c76fd42b94fc5f764541d1f7a8b232bd4662620466ccad756e351c759046761
|
7
|
+
data.tar.gz: 10efbf41e40e5deae419074d8a0aeb388b13906717c7aa54f928a42a4643142d91813ae046807d3721176ebe14a1d21e6db66ac75074ea86d2d3bdd94eeade8f
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# NotificationsRails
|
2
2
|
|
3
|
-
[](https://badge.fury.io/rb/notifications-rails) <img src="https://travis-ci.org/jonhue/notifications-rails.svg?branch=master" />
|
4
4
|
|
5
5
|
The most powerful (cross-platform) notifications handler & pusher API for Rails.
|
6
6
|
|
@@ -9,8 +9,6 @@ The most powerful (cross-platform) notifications handler & pusher API for Rails.
|
|
9
9
|
## Table of Contents
|
10
10
|
|
11
11
|
* [Installation](#installation)
|
12
|
-
* [Usage](#usage)
|
13
|
-
* [Configuration](#configuration)
|
14
12
|
* [To Do](#to-do)
|
15
13
|
* [Contributing](#contributing)
|
16
14
|
* [Contributors](#contributors)
|
@@ -21,10 +19,10 @@ The most powerful (cross-platform) notifications handler & pusher API for Rails.
|
|
21
19
|
|
22
20
|
## Installation
|
23
21
|
|
24
|
-
|
22
|
+
NotificationsRails works with Rails 5 onwards. You can add it to your `Gemfile` with:
|
25
23
|
|
26
24
|
```ruby
|
27
|
-
gem '
|
25
|
+
gem 'notifications-rails'
|
28
26
|
```
|
29
27
|
|
30
28
|
And then execute:
|
@@ -33,45 +31,19 @@ And then execute:
|
|
33
31
|
|
34
32
|
Or install it yourself as:
|
35
33
|
|
36
|
-
$ gem install
|
34
|
+
$ gem install notifications-rails
|
37
35
|
|
38
36
|
If you always want to be up to date fetch the latest from GitHub in your `Gemfile`:
|
39
37
|
|
40
38
|
```ruby
|
41
|
-
gem '
|
39
|
+
gem 'notifications-rails', github: 'jonhue/notifications-rails'
|
42
40
|
```
|
43
41
|
|
44
|
-
Now run the generator:
|
45
|
-
|
46
|
-
$ rails g notification_pusher_actioncable:install
|
47
|
-
|
48
|
-
To wrap things up, migrate the changes to your database:
|
49
|
-
|
50
|
-
$ rails db:migrate
|
51
|
-
|
52
|
-
---
|
53
|
-
|
54
|
-
## Usage
|
55
|
-
|
56
|
-
---
|
57
|
-
|
58
|
-
## Configuration
|
59
|
-
|
60
|
-
You can configure NotificationPusher for ActionCable by passing a block to `configure`. This can be done in `config/initializers/notification-pusher-actioncable.rb`:
|
61
|
-
|
62
|
-
```ruby
|
63
|
-
NotificationPusher::ActionCable.configure do |config|
|
64
|
-
config.placeholder = true
|
65
|
-
end
|
66
|
-
```
|
67
|
-
|
68
|
-
**`placeholder`** ...
|
69
|
-
|
70
42
|
---
|
71
43
|
|
72
44
|
## To Do
|
73
45
|
|
74
|
-
[Here](https://github.com/jonhue/notifications-rails/projects
|
46
|
+
[Here](https://github.com/jonhue/notifications-rails/projects) is the full list of current projects.
|
75
47
|
|
76
48
|
To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/notifications-rails/issues/new).
|
77
49
|
|
@@ -79,7 +51,7 @@ To propose your ideas, initiate the discussion by adding a [new issue](https://g
|
|
79
51
|
|
80
52
|
## Contributing
|
81
53
|
|
82
|
-
We hope that you will consider contributing to
|
54
|
+
We hope that you will consider contributing to NotificationsRails. Please read this short overview for some information about how to get started:
|
83
55
|
|
84
56
|
[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)
|
85
57
|
|
@@ -91,7 +63,7 @@ https://github.com/jonhue/notifications-rails/graphs/contributors
|
|
91
63
|
|
92
64
|
### Semantic Versioning
|
93
65
|
|
94
|
-
|
66
|
+
NotificationsRails follows Semantic Versioning 2.0 as defined at http://semver.org.
|
95
67
|
|
96
68
|
## License
|
97
69
|
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
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.beta2
|
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: 2017-12-
|
11
|
+
date: 2017-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: railties
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -44,44 +44,16 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0.0.
|
47
|
+
version: 1.0.0.beta2
|
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.beta2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '1.16'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '1.16'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '10.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '10.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec-rails
|
56
|
+
name: rspec
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
86
58
|
requirements:
|
87
59
|
- - "~>"
|
@@ -114,16 +86,8 @@ executables: []
|
|
114
86
|
extensions: []
|
115
87
|
extra_rdoc_files: []
|
116
88
|
files:
|
117
|
-
- CHANGELOG.md
|
118
89
|
- LICENSE
|
119
90
|
- README.md
|
120
|
-
- generators/install_generator.rb
|
121
|
-
- generators/templates/install/initializer.rb
|
122
|
-
- lib/notification_pusher.rb
|
123
|
-
- lib/notification_pusher/action_cable.rb
|
124
|
-
- lib/notification_pusher/action_cable/configuration.rb
|
125
|
-
- lib/notification_pusher/action_cable/engine.rb
|
126
|
-
- lib/notification_pusher/action_cable/railtie.rb
|
127
91
|
homepage: https://github.com/jonhue/notifications-rails/tree/master/notification-pusher/notification-pusher-actioncable
|
128
92
|
licenses:
|
129
93
|
- MIT
|
data/CHANGELOG.md
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'rails/generators'
|
2
|
-
require 'rails/generators/migration'
|
3
|
-
|
4
|
-
class InstallGenerator < Rails::Generators::Base
|
5
|
-
|
6
|
-
include Rails::Generators::Migration
|
7
|
-
|
8
|
-
source_root File.join File.dirname(__FILE__), 'templates/install'
|
9
|
-
desc 'Install NotificationPusher for ActionCable'
|
10
|
-
|
11
|
-
def create_initializer
|
12
|
-
template 'initializer.rb', 'config/initializers/notification-pusher-actioncable.rb'
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module NotificationPusher
|
2
|
-
module ActionCable
|
3
|
-
|
4
|
-
class << self
|
5
|
-
attr_accessor :configuration
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.configure
|
9
|
-
self.configuration ||= Configuration.new
|
10
|
-
yield configuration
|
11
|
-
end
|
12
|
-
|
13
|
-
class Configuration
|
14
|
-
|
15
|
-
attr_accessor :placeholder
|
16
|
-
|
17
|
-
def initialize
|
18
|
-
@placeholder = true
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
24
|
-
end
|