notification-pusher 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +9 -0
- data/LICENSE +21 -0
- data/README.md +118 -0
- data/generators/install_generator.rb +15 -0
- data/generators/templates/install/initializer.rb +6 -0
- data/lib/notification_pusher.rb +9 -0
- data/lib/notification_pusher/configuration.rb +22 -0
- data/lib/notification_pusher/engine.rb +6 -0
- data/lib/notification_pusher/railtie.rb +9 -0
- metadata +122 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f2e9c830dc7b1de8d27291188277e83f4830a152120ef7e5863348b1af397d9a
|
4
|
+
data.tar.gz: 71be2b06c0afad3cbfa87894c2c045b0c0cc1a64a0577ca8c3bee3fab651be3c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 62b24fc27a5445b8ff31c10eed7732d2a4c81e62e0d9632b6206ab8d225e9baa6fb6cb4aaa26f0a11629b63877f436941fae7beee36c9a2a49e97e4bed0f716e
|
7
|
+
data.tar.gz: bb80a2c2b5b18c0eb05df22552696b3ccccaffe64c81f18b1ad470a9ad0c72a3c4ecb4f7a102bc9df0c091bb84d22435c952564eca5cda2c2d015be7f24eab41
|
data/CHANGELOG.md
ADDED
data/LICENSE
ADDED
@@ -0,0 +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.
|
data/README.md
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
# NotificationPusher
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/notification-pusher.svg)](https://badge.fury.io/rb/notification-pusher) <img src="https://travis-ci.org/jonhue/notifications-rails.svg?branch=master" />
|
4
|
+
|
5
|
+
The most powerful (cross-platform) notifications handler & pusher API for Rails.
|
6
|
+
|
7
|
+
---
|
8
|
+
|
9
|
+
## Table of Contents
|
10
|
+
|
11
|
+
* [Installation](#installation)
|
12
|
+
* [Usage](#usage)
|
13
|
+
* [Configuration](#configuration)
|
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 works with Rails 5 onwards. You can add it to your `Gemfile` with:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'notification-pusher'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
$ bundle
|
33
|
+
|
34
|
+
Or install it yourself as:
|
35
|
+
|
36
|
+
$ gem install notification-pusher
|
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', github: 'jonhue/notifications-rails/tree/master/notification-pusher'
|
42
|
+
```
|
43
|
+
|
44
|
+
Now run the generator:
|
45
|
+
|
46
|
+
$ rails g notification_pusher: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 by passing a block to `configure`. This can be done in `config/initializers/notification-pusher.rb`:
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
NotificationPusher.configure do |config|
|
64
|
+
config.placeholder = true
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
68
|
+
**`placeholder`** ...
|
69
|
+
|
70
|
+
---
|
71
|
+
|
72
|
+
## To Do
|
73
|
+
|
74
|
+
[Here](https://github.com/jonhue/notifications-rails/projects/3) is the full list of current projects.
|
75
|
+
|
76
|
+
To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/notifications-rails/issues/new).
|
77
|
+
|
78
|
+
---
|
79
|
+
|
80
|
+
## Contributing
|
81
|
+
|
82
|
+
We hope that you will consider contributing to NotificationPusher. Please read this short overview for some information about how to get started:
|
83
|
+
|
84
|
+
[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
|
+
|
86
|
+
### Contributors
|
87
|
+
|
88
|
+
Give the people some :heart: who are working on this project. See them all at:
|
89
|
+
|
90
|
+
https://github.com/jonhue/notifications-rails/graphs/contributors
|
91
|
+
|
92
|
+
### Semantic Versioning
|
93
|
+
|
94
|
+
NotificationPusher follows Semantic Versioning 2.0 as defined at http://semver.org.
|
95
|
+
|
96
|
+
## License
|
97
|
+
|
98
|
+
MIT License
|
99
|
+
|
100
|
+
Copyright (c) 2017 Jonas Hübotter
|
101
|
+
|
102
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
103
|
+
of this software and associated documentation files (the "Software"), to deal
|
104
|
+
in the Software without restriction, including without limitation the rights
|
105
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
106
|
+
copies of the Software, and to permit persons to whom the Software is
|
107
|
+
furnished to do so, subject to the following conditions:
|
108
|
+
|
109
|
+
The above copyright notice and this permission notice shall be included in all
|
110
|
+
copies or substantial portions of the Software.
|
111
|
+
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
113
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
114
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
115
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
116
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
117
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
118
|
+
SOFTWARE.
|
@@ -0,0 +1,15 @@
|
|
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'
|
10
|
+
|
11
|
+
def create_initializer
|
12
|
+
template 'initializer.rb', 'config/initializers/notification-pusher.rb'
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module NotificationPusher
|
2
|
+
|
3
|
+
class << self
|
4
|
+
attr_accessor :configuration
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.configure
|
8
|
+
self.configuration ||= Configuration.new
|
9
|
+
yield configuration
|
10
|
+
end
|
11
|
+
|
12
|
+
class Configuration
|
13
|
+
|
14
|
+
attr_accessor :placeholder
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@placeholder = true
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: notification-pusher
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.beta1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jonas Hübotter
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.7'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.7'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.52'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.52'
|
83
|
+
description: "..."
|
84
|
+
email: jonas.huebotter@gmail.com
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files: []
|
88
|
+
files:
|
89
|
+
- CHANGELOG.md
|
90
|
+
- LICENSE
|
91
|
+
- README.md
|
92
|
+
- generators/install_generator.rb
|
93
|
+
- generators/templates/install/initializer.rb
|
94
|
+
- lib/notification_pusher.rb
|
95
|
+
- lib/notification_pusher/configuration.rb
|
96
|
+
- lib/notification_pusher/engine.rb
|
97
|
+
- lib/notification_pusher/railtie.rb
|
98
|
+
homepage: https://github.com/jonhue/notifications-rails/tree/master/notification-pusher
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
metadata: {}
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options: []
|
104
|
+
require_paths:
|
105
|
+
- lib
|
106
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.3'
|
111
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 1.3.1
|
116
|
+
requirements: []
|
117
|
+
rubyforge_project:
|
118
|
+
rubygems_version: 2.7.3
|
119
|
+
signing_key:
|
120
|
+
specification_version: 4
|
121
|
+
summary: "..."
|
122
|
+
test_files: []
|