notification-pusher-onesignal 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 +4 -4
- data/LICENSE +21 -21
- data/README.md +147 -147
- data/lib/notification-pusher-onesignal.rb +2 -0
- data/lib/notification_pusher/one_signal.rb +38 -18
- metadata +34 -21
- data/CHANGELOG.md +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f08266986a6dc29a38160e40a7538758ebbe7af2daa5b39b9c9b49d01cc9830
|
4
|
+
data.tar.gz: d24373b5c9bd0a6c0c572a855a24cc432861ecb0c09cad16d8183e5f511af81a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 667cd4e33e746c5000cb42326a97261d1994580e31cbe3b1b0d0fd303628d74e86fa5d563e56ec792fed8d1d3616482d6befd3b2b6e539487eeb40857af56c10
|
7
|
+
data.tar.gz: 21041e057e0e104b6c011dcad2e4b9d019a69ff2cf197599168ead6fe8ede1ee760aff7e3d4ca4f845d4123595e11fc71405f57d77754dd86ada74df8c867820
|
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,147 +1,147 @@
|
|
1
|
-
# NotificationPusher for OneSignal
|
2
|
-
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/notification-pusher-onesignal.svg)](https://badge.fury.io/rb/notification-pusher-onesignal) <img src="https://travis-ci.org/jonhue/notifications-rails.svg?branch=master" />
|
4
|
-
|
5
|
-
A pusher to send cross-platform notifications with OneSignal.
|
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 OneSignal works with Rails 5 onwards. You can add it to your `Gemfile` with:
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
gem 'notification-pusher-onesignal'
|
28
|
-
```
|
29
|
-
|
30
|
-
And then execute:
|
31
|
-
|
32
|
-
$ bundle
|
33
|
-
|
34
|
-
Or install it yourself as:
|
35
|
-
|
36
|
-
$ gem install notification-pusher-onesignal
|
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-onesignal', github: 'jonhue/notifications-rails'
|
42
|
-
```
|
43
|
-
|
44
|
-
---
|
45
|
-
|
46
|
-
## Usage
|
47
|
-
|
48
|
-
Define this pusher in your `NotificationPusher` configuration:
|
49
|
-
|
50
|
-
```ruby
|
51
|
-
NotificationPusher.configure do |config|
|
52
|
-
config.define_pusher :OneSignal, app_id: 'f158a844-9f3c-4207-b246-e93603b0a970', auth_key: 'kODc3N2ItOTNC00NGzOGYtMzI5OWQ3ZmQ'
|
53
|
-
end
|
54
|
-
```
|
55
|
-
|
56
|
-
Now you can push your notifications to OneSignal:
|
57
|
-
|
58
|
-
```ruby
|
59
|
-
notification = Notification.create target: User.first, object: Recipe.first
|
60
|
-
notification.push :OneSignal, player_ids: ['f158a844-9f3c-4207-b246-e93603b0a970'], url: Rails.application.routes.url_helpers.root_url, contents: {
|
61
|
-
en: notification.object.title
|
62
|
-
}
|
63
|
-
```
|
64
|
-
|
65
|
-
To get player id's you could use the [devise-onesignal](https://github.com/jonhue/devise-onesignal) gem. This is how that would look:
|
66
|
-
|
67
|
-
```ruby
|
68
|
-
notification.push :OneSignal, player_ids: notification.target.onesignal_player_ids
|
69
|
-
```
|
70
|
-
|
71
|
-
You can also store OneSignal information in your notification opposed to specifying it when pushing:
|
72
|
-
|
73
|
-
```ruby
|
74
|
-
notification.metadata[:onesignal_url] = Rails.application.routes.url_helpers.root_url
|
75
|
-
notification.metadata[:onesignal_contents] = { en: 'My notification content' }
|
76
|
-
notification.metadata[:onesignal_headings] = { en: 'My notification header' }
|
77
|
-
notification.metadata[:onesignal_subtitle] = { en: 'My notification subtitle' }
|
78
|
-
notification.save
|
79
|
-
notification.push :OneSignal, player_ids: notification.target.onesignal_player_ids
|
80
|
-
```
|
81
|
-
|
82
|
-
|
83
|
-
### Options
|
84
|
-
|
85
|
-
**`app_id` (required)** OneSignal App ID. Takes a string.
|
86
|
-
|
87
|
-
**`auth_key` (required)** OneSignal API authentication key. Takes a string.
|
88
|
-
|
89
|
-
**`player_ids`** Array of OneSignal Player ID's a notification should be pushed to. Takes an array of strings.
|
90
|
-
|
91
|
-
**`url`** Specify a URL for this notification. Takes a string.
|
92
|
-
|
93
|
-
**`contents`** Globalized content of the notification. Takes a hash with languages as keys and strings as values.
|
94
|
-
|
95
|
-
**`headings`** Globalized header of the notification. Takes a hash with languages as keys and strings as values.
|
96
|
-
|
97
|
-
**`subtitle`** Globalized subtitle of the notification. Takes a hash with languages as keys and strings as values.
|
98
|
-
|
99
|
-
---
|
100
|
-
|
101
|
-
## To Do
|
102
|
-
|
103
|
-
[Here](https://github.com/jonhue/notifications-rails/projects/7) is the full list of current projects.
|
104
|
-
|
105
|
-
To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/notifications-rails/issues/new).
|
106
|
-
|
107
|
-
---
|
108
|
-
|
109
|
-
## Contributing
|
110
|
-
|
111
|
-
We hope that you will consider contributing to NotificationPusher for OneSignal. Please read this short overview for some information about how to get started:
|
112
|
-
|
113
|
-
[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)
|
114
|
-
|
115
|
-
### Contributors
|
116
|
-
|
117
|
-
Give the people some :heart: who are working on this project. See them all at:
|
118
|
-
|
119
|
-
https://github.com/jonhue/notifications-rails/graphs/contributors
|
120
|
-
|
121
|
-
### Semantic Versioning
|
122
|
-
|
123
|
-
NotificationPusher for OneSignal follows Semantic Versioning 2.0 as defined at http://semver.org.
|
124
|
-
|
125
|
-
## License
|
126
|
-
|
127
|
-
MIT License
|
128
|
-
|
129
|
-
Copyright (c) 2017 Jonas Hübotter
|
130
|
-
|
131
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
132
|
-
of this software and associated documentation files (the "Software"), to deal
|
133
|
-
in the Software without restriction, including without limitation the rights
|
134
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
135
|
-
copies of the Software, and to permit persons to whom the Software is
|
136
|
-
furnished to do so, subject to the following conditions:
|
137
|
-
|
138
|
-
The above copyright notice and this permission notice shall be included in all
|
139
|
-
copies or substantial portions of the Software.
|
140
|
-
|
141
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
142
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
143
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
144
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
145
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
146
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
147
|
-
SOFTWARE.
|
1
|
+
# NotificationPusher for OneSignal
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/notification-pusher-onesignal.svg)](https://badge.fury.io/rb/notification-pusher-onesignal) <img src="https://travis-ci.org/jonhue/notifications-rails.svg?branch=master" />
|
4
|
+
|
5
|
+
A pusher to send cross-platform notifications with OneSignal.
|
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 OneSignal works with Rails 5 onwards. You can add it to your `Gemfile` with:
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'notification-pusher-onesignal'
|
28
|
+
```
|
29
|
+
|
30
|
+
And then execute:
|
31
|
+
|
32
|
+
$ bundle
|
33
|
+
|
34
|
+
Or install it yourself as:
|
35
|
+
|
36
|
+
$ gem install notification-pusher-onesignal
|
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-onesignal', github: 'jonhue/notifications-rails'
|
42
|
+
```
|
43
|
+
|
44
|
+
---
|
45
|
+
|
46
|
+
## Usage
|
47
|
+
|
48
|
+
Define this pusher in your `NotificationPusher` configuration:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
NotificationPusher.configure do |config|
|
52
|
+
config.define_pusher :OneSignal, app_id: 'f158a844-9f3c-4207-b246-e93603b0a970', auth_key: 'kODc3N2ItOTNC00NGzOGYtMzI5OWQ3ZmQ'
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
Now you can push your notifications to OneSignal:
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
notification = Notification.create target: User.first, object: Recipe.first
|
60
|
+
notification.push :OneSignal, player_ids: ['f158a844-9f3c-4207-b246-e93603b0a970'], url: Rails.application.routes.url_helpers.root_url, contents: {
|
61
|
+
en: notification.object.title
|
62
|
+
}
|
63
|
+
```
|
64
|
+
|
65
|
+
To get player id's you could use the [devise-onesignal](https://github.com/jonhue/devise-onesignal) gem. This is how that would look:
|
66
|
+
|
67
|
+
```ruby
|
68
|
+
notification.push :OneSignal, player_ids: notification.target.onesignal_player_ids
|
69
|
+
```
|
70
|
+
|
71
|
+
You can also store OneSignal information in your notification opposed to specifying it when pushing:
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
notification.metadata[:onesignal_url] = Rails.application.routes.url_helpers.root_url
|
75
|
+
notification.metadata[:onesignal_contents] = { en: 'My notification content' }
|
76
|
+
notification.metadata[:onesignal_headings] = { en: 'My notification header' }
|
77
|
+
notification.metadata[:onesignal_subtitle] = { en: 'My notification subtitle' }
|
78
|
+
notification.save
|
79
|
+
notification.push :OneSignal, player_ids: notification.target.onesignal_player_ids
|
80
|
+
```
|
81
|
+
|
82
|
+
|
83
|
+
### Options
|
84
|
+
|
85
|
+
**`app_id` (required)** OneSignal App ID. Takes a string.
|
86
|
+
|
87
|
+
**`auth_key` (required)** OneSignal API authentication key. Takes a string.
|
88
|
+
|
89
|
+
**`player_ids`** Array of OneSignal Player ID's a notification should be pushed to. Takes an array of strings.
|
90
|
+
|
91
|
+
**`url`** Specify a URL for this notification. Takes a string.
|
92
|
+
|
93
|
+
**`contents`** Globalized content of the notification. Takes a hash with languages as keys and strings as values.
|
94
|
+
|
95
|
+
**`headings`** Globalized header of the notification. Takes a hash with languages as keys and strings as values.
|
96
|
+
|
97
|
+
**`subtitle`** Globalized subtitle of the notification. Takes a hash with languages as keys and strings as values.
|
98
|
+
|
99
|
+
---
|
100
|
+
|
101
|
+
## To Do
|
102
|
+
|
103
|
+
[Here](https://github.com/jonhue/notifications-rails/projects/7) is the full list of current projects.
|
104
|
+
|
105
|
+
To propose your ideas, initiate the discussion by adding a [new issue](https://github.com/jonhue/notifications-rails/issues/new).
|
106
|
+
|
107
|
+
---
|
108
|
+
|
109
|
+
## Contributing
|
110
|
+
|
111
|
+
We hope that you will consider contributing to NotificationPusher for OneSignal. Please read this short overview for some information about how to get started:
|
112
|
+
|
113
|
+
[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)
|
114
|
+
|
115
|
+
### Contributors
|
116
|
+
|
117
|
+
Give the people some :heart: who are working on this project. See them all at:
|
118
|
+
|
119
|
+
https://github.com/jonhue/notifications-rails/graphs/contributors
|
120
|
+
|
121
|
+
### Semantic Versioning
|
122
|
+
|
123
|
+
NotificationPusher for OneSignal follows Semantic Versioning 2.0 as defined at http://semver.org.
|
124
|
+
|
125
|
+
## License
|
126
|
+
|
127
|
+
MIT License
|
128
|
+
|
129
|
+
Copyright (c) 2017 Jonas Hübotter
|
130
|
+
|
131
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
132
|
+
of this software and associated documentation files (the "Software"), to deal
|
133
|
+
in the Software without restriction, including without limitation the rights
|
134
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
135
|
+
copies of the Software, and to permit persons to whom the Software is
|
136
|
+
furnished to do so, subject to the following conditions:
|
137
|
+
|
138
|
+
The above copyright notice and this permission notice shall be included in all
|
139
|
+
copies or substantial portions of the Software.
|
140
|
+
|
141
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
142
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
143
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
144
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
145
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
146
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
147
|
+
SOFTWARE.
|
@@ -1,18 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'one_signal'
|
4
|
+
|
5
|
+
module NotificationPusher
|
6
|
+
class OneSignal
|
7
|
+
def initialize(notification, options = {})
|
8
|
+
return unless options[:player_ids].any?
|
9
|
+
|
10
|
+
::OneSignal::Notification.create params: {
|
11
|
+
app_id: options[:app_id],
|
12
|
+
url: url_param(options[:url], notification),
|
13
|
+
contents: contents_param(options[:contents], notification),
|
14
|
+
headings: headings_param(options[:headings], notification),
|
15
|
+
subtitle: subtitle_param(options[:subtitle], notification),
|
16
|
+
include_player_ids: options[:player_ids]
|
17
|
+
}, opts: { auth_key: options[:auth_key] }
|
18
|
+
end
|
19
|
+
|
20
|
+
private
|
21
|
+
|
22
|
+
def url_param(url, notification)
|
23
|
+
url || notification.metadata[:onesignal_url].to_h
|
24
|
+
end
|
25
|
+
|
26
|
+
def contents_param(contents, notification)
|
27
|
+
contents || notification.metadata[:onesignal_contents].to_h
|
28
|
+
end
|
29
|
+
|
30
|
+
def headings_param(headings, notification)
|
31
|
+
headings || notification.metadata[:onesignal_headings].to_h
|
32
|
+
end
|
33
|
+
|
34
|
+
def subtitle_param(subtitle, notification)
|
35
|
+
subtitle || notification.metadata[:onesignal_subtitle].to_h
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notification-pusher-onesignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
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-
|
11
|
+
date: 2018-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: notification-pusher
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.6
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.6
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: one_signal
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -25,54 +39,53 @@ dependencies:
|
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '1.2'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
42
|
+
name: rspec
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- -
|
45
|
+
- - ">="
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
type: :
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- -
|
52
|
+
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: rubocop
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - "
|
59
|
+
- - ">="
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
61
|
+
version: '0'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - "
|
66
|
+
- - ">="
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: rubocop
|
70
|
+
name: rubocop-rspec
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
75
|
+
version: '0'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
82
|
+
version: '0'
|
69
83
|
description: A pusher to send cross-platform notifications with OneSignal.
|
70
84
|
email: me@jonhue.me
|
71
85
|
executables: []
|
72
86
|
extensions: []
|
73
87
|
extra_rdoc_files: []
|
74
88
|
files:
|
75
|
-
- CHANGELOG.md
|
76
89
|
- LICENSE
|
77
90
|
- README.md
|
78
91
|
- lib/notification-pusher-onesignal.rb
|
@@ -89,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
102
|
requirements:
|
90
103
|
- - ">="
|
91
104
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
105
|
+
version: 2.2.2
|
93
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
94
107
|
requirements:
|
95
108
|
- - ">="
|
@@ -97,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
110
|
version: '0'
|
98
111
|
requirements: []
|
99
112
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.7.
|
113
|
+
rubygems_version: 2.7.6
|
101
114
|
signing_key:
|
102
115
|
specification_version: 4
|
103
116
|
summary: A pusher to send cross-platform notifications with OneSignal
|
data/CHANGELOG.md
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
### master
|
4
|
-
|
5
|
-
* nothing yet
|
6
|
-
|
7
|
-
### 1.2.4 - 2018/03/17
|
8
|
-
|
9
|
-
* bugfixes
|
10
|
-
* rename `headers` option to `headings`
|
11
|
-
|
12
|
-
### 1.1.0 - 2017/12/29
|
13
|
-
|
14
|
-
* features
|
15
|
-
* add `headers` and `subtitle` options
|
16
|
-
|
17
|
-
### 1.0.0 - 2017/12/28
|
18
|
-
|
19
|
-
* bugfixes
|
20
|
-
|
21
|
-
### 1.0.0.beta6 - 2017/12/28
|
22
|
-
|
23
|
-
* bugfixes
|
24
|
-
* fix lib loading problems
|
25
|
-
|
26
|
-
### 1.0.0.beta4 - 2017/12/27
|
27
|
-
|
28
|
-
* features
|
29
|
-
* add functionality
|
30
|
-
|
31
|
-
### 1.0.0.beta1 - 2017/12/22
|
32
|
-
|
33
|
-
* initial release
|