rpush 6.0.0 → 6.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/README.md +1 -1
- data/lib/generators/templates/rpush.rb +1 -4
- data/lib/rpush/client/active_model/webpush/notification.rb +1 -1
- data/lib/rpush/version.rb +1 -1
- data/spec/functional/webpush_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f2b9e229e7ebe35f201483f6e959cb317ae7ca97f56b0084ee1543a9bb13b3
|
4
|
+
data.tar.gz: 23b0ae77b424a34db34eb823b265eedc696f8924216555cc0485cd3d8f4a6a99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 106f87bc174864adaf3443933ae690312c7f2f16df946accb19c02bfeaff03d9f706a4e9f6f5f164e11a5e027663e46f547713b9ae8dd280e38b4f42ec77eb2b
|
7
|
+
data.tar.gz: 065b010d2f8af82d86fad787f6fa59441e120d3de987971f131f70d40680cc8c571247b78d25682b16a8e69b2587fa07fa1b91903340b2690565f6863826edae
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,16 @@
|
|
2
2
|
|
3
3
|
## [Unreleased](https://github.com/rpush/rpush/tree/HEAD)
|
4
4
|
|
5
|
-
[
|
5
|
+
## [v6.0.1](https://github.com/rpush/rpush/tree/v6.0.1) (2021-10-08)
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v6.0.0...v6.0.1)
|
8
|
+
|
9
|
+
**Merged pull requests:**
|
10
|
+
|
11
|
+
- Don't limit webpush registration keys [\#624](https://github.com/rpush/rpush/pull/624) ([treyrich](https://github.com/treyrich))
|
12
|
+
- Add Prometheus Exporter plugin link to README [\#617](https://github.com/rpush/rpush/pull/617) ([maxsz](https://github.com/maxsz))
|
13
|
+
- Reference current interface in config template [\#569](https://github.com/rpush/rpush/pull/569) ([benlangfeld](https://github.com/benlangfeld))
|
14
|
+
- Default the Rails environment to RAILS\_ENV if set [\#562](https://github.com/rpush/rpush/pull/562) ([benlangfeld](https://github.com/benlangfeld))
|
6
15
|
|
7
16
|
## [v6.0.0](https://github.com/rpush/rpush/tree/v6.0.0) (2021-05-21)
|
8
17
|
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Rpush aims to be the *de facto* gem for sending push notifications in Ruby. Its
|
|
24
24
|
|
25
25
|
* Use [**ActiveRecord**](https://github.com/rpush/rpush/wiki/Using-ActiveRecord) or [**Redis**](https://github.com/rpush/rpush/wiki/Using-Redis) for storage.
|
26
26
|
* Plugins for [**Bugsnag**](https://github.com/rpush/rpush-plugin-bugsnag),
|
27
|
-
[**Sentry**](https://github.com/rpush/rpush-plugin-sentry), [**StatsD**](https://github.com/rpush/rpush-plugin-statsd)
|
27
|
+
[**Sentry**](https://github.com/rpush/rpush-plugin-sentry), [**StatsD**](https://github.com/rpush/rpush-plugin-statsd). Third party plugins: [**Prometheus Exporter**](https://github.com/equinux/rpush-plugin-prometheus-exporter). Or [write your own](https://github.com/rpush/rpush/wiki/Writing-a-Plugin).
|
28
28
|
* Seamless integration with your projects, including **Rails**.
|
29
29
|
* Run as a [daemon](https://github.com/rpush/rpush#as-a-daemon), inside a [job queue](https://github.com/rpush/rpush/wiki/Push-API), on the [command-line](https://github.com/rpush/rpush#on-the-command-line) or [embedded](https://github.com/rpush/rpush/wiki/Embedding-API) in another process.
|
30
30
|
* Scales vertically (threading) and horizontally (multiple processes).
|
@@ -46,10 +46,7 @@ Rpush.reflect do |on|
|
|
46
46
|
# Called when a notification is queued internally for delivery.
|
47
47
|
# The internal queue for each app runner can be inspected:
|
48
48
|
#
|
49
|
-
# Rpush::Daemon::AppRunner.
|
50
|
-
# runner.app
|
51
|
-
# runner.queue_size
|
52
|
-
# end
|
49
|
+
# Rpush::Daemon::AppRunner.status
|
53
50
|
#
|
54
51
|
# on.notification_enqueued do |notification|
|
55
52
|
# end
|
@@ -11,7 +11,7 @@ module Rpush
|
|
11
11
|
return if record.registration_ids.size > 1
|
12
12
|
reg = record.registration_ids.first
|
13
13
|
unless reg.is_a?(Hash) &&
|
14
|
-
reg.keys.
|
14
|
+
(KEYS-reg.keys).empty? &&
|
15
15
|
reg[:endpoint].is_a?(String) &&
|
16
16
|
reg[:keys].is_a?(Hash)
|
17
17
|
record.errors.add(:base, 'Registration must have :endpoint (String) and :keys (Hash) keys')
|
data/lib/rpush/version.rb
CHANGED
@@ -8,6 +8,7 @@ describe 'Webpush' do
|
|
8
8
|
|
9
9
|
let(:device_reg) {
|
10
10
|
{ endpoint: 'https://webpush-provider.example.org/push/some-id',
|
11
|
+
expirationTime: nil,
|
11
12
|
keys: {'auth' => 'DgN9EBia1o057BdhCOGURA', 'p256dh' => 'BAtxJ--7vHq9IVm8utUB3peJ4lpxRqk1rukCIkVJOomS83QkCnrQ4EyYQsSaCRgy_c8XPytgXxuyAvRJdnTPK4A'} }
|
12
13
|
}
|
13
14
|
let(:notification) { Rpush::Webpush::Notification.create!(app: app, registration_ids: [device_reg], data: { message: 'test' }) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Leitch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|