rpush 5.3.0 → 5.4.0
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/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/generators/templates/add_gcm.rb +4 -4
- data/lib/generators/templates/add_rpush.rb +4 -4
- data/lib/generators/templates/rpush_3_3_1_updates.rb +2 -2
- data/lib/rpush/version.rb +1 -1
- data/spec/unit/daemon/pushy/delivery_spec.rb +5 -3
- data/spec/unit/daemon/webpush/delivery_spec.rb +5 -3
- 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: 1166c47df63fee1cfaaa6e869d382923c65a0e3cae24ca36bc73d1736590dcac
|
4
|
+
data.tar.gz: d97ca83af8fb3959ca5d782d65af6e8f0bfddbc5b928753dcc3439f497a84edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ea1ec176522f0a766718a0de5c7840504d137eb93db1bcd8e76c47975f450e60f61c818726c9ec0b62a50885e201570c4807c2e97e4597f710d6c4143a95c0b
|
7
|
+
data.tar.gz: bec1191493bc5540e3c329cf39cb717b8c8fe86217c03d4461f4be275cead69c5e0c52e8c6525767b4899379aed8b4dbbe688beeb384628ea569c941d3305835
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v5.4.0](https://github.com/rpush/rpush/tree/v5.4.0) (2021-02-15)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v5.3.0...v5.4.0)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- fix typo in README.md [\#587](https://github.com/rpush/rpush/pull/587) ([yltsrc](https://github.com/yltsrc))
|
10
|
+
- Support Ruby 3.0 & Rails 6.1 [\#586](https://github.com/rpush/rpush/pull/586) ([andreaslillebo](https://github.com/andreaslillebo))
|
11
|
+
|
3
12
|
## [v5.3.0](https://github.com/rpush/rpush/tree/v5.3.0) (2021-01-07)
|
4
13
|
|
5
14
|
[Full Changelog](https://github.com/rpush/rpush/compare/v5.2.0...v5.3.0)
|
data/README.md
CHANGED
@@ -19,8 +19,8 @@ class AddGcm < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0]
|
|
19
19
|
|
20
20
|
change_column :rapns_notifications, :type, :string, null: false
|
21
21
|
change_column :rapns_apps, :type, :string, null: false
|
22
|
-
change_column :rapns_notifications, :device_token, :string,
|
23
|
-
change_column :rapns_notifications, :expiry, :integer,
|
22
|
+
change_column :rapns_notifications, :device_token, :string, null: true, limit: 64
|
23
|
+
change_column :rapns_notifications, :expiry, :integer, null: true, default: 1.day.to_i
|
24
24
|
change_column :rapns_apps, :environment, :string, null: true
|
25
25
|
change_column :rapns_apps, :certificate, :text, null: true, default: nil
|
26
26
|
|
@@ -73,8 +73,8 @@ class AddGcm < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0]
|
|
73
73
|
remove_column :rapns_notifications, :type
|
74
74
|
remove_column :rapns_apps, :type
|
75
75
|
|
76
|
-
change_column :rapns_notifications, :device_token, :string,
|
77
|
-
change_column :rapns_notifications, :expiry, :integer,
|
76
|
+
change_column :rapns_notifications, :device_token, :string, null: false, limit: 64
|
77
|
+
change_column :rapns_notifications, :expiry, :integer, null: false, default: 1.day.to_i
|
78
78
|
change_column :rapns_apps, :environment, :string, null: false
|
79
79
|
change_column :rapns_apps, :certificate, :text, null: false
|
80
80
|
|
@@ -164,8 +164,8 @@ class AddRpush < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0
|
|
164
164
|
|
165
165
|
change_column :rapns_notifications, :type, :string, null: false
|
166
166
|
change_column :rapns_apps, :type, :string, null: false
|
167
|
-
change_column :rapns_notifications, :device_token, :string,
|
168
|
-
change_column :rapns_notifications, :expiry, :integer,
|
167
|
+
change_column :rapns_notifications, :device_token, :string, null: true, limit: 64
|
168
|
+
change_column :rapns_notifications, :expiry, :integer, null: true, default: 1.day.to_i
|
169
169
|
change_column :rapns_apps, :environment, :string, null: true
|
170
170
|
change_column :rapns_apps, :certificate, :text, null: true, default: nil
|
171
171
|
|
@@ -218,8 +218,8 @@ class AddRpush < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0
|
|
218
218
|
remove_column :rapns_notifications, :type
|
219
219
|
remove_column :rapns_apps, :type
|
220
220
|
|
221
|
-
change_column :rapns_notifications, :device_token, :string,
|
222
|
-
change_column :rapns_notifications, :expiry, :integer,
|
221
|
+
change_column :rapns_notifications, :device_token, :string, null: false, limit: 64
|
222
|
+
change_column :rapns_notifications, :expiry, :integer, null: false, default: 1.day.to_i
|
223
223
|
change_column :rapns_apps, :environment, :string, null: false
|
224
224
|
change_column :rapns_apps, :certificate, :text, null: false
|
225
225
|
|
@@ -5,7 +5,7 @@ class Rpush331Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migrat
|
|
5
5
|
end
|
6
6
|
|
7
7
|
def self.down
|
8
|
-
change_column :rpush_notifications, :device_token, :string,
|
9
|
-
change_column :rpush_feedback, :device_token, :string,
|
8
|
+
change_column :rpush_notifications, :device_token, :string, null: true, limit: 64
|
9
|
+
change_column :rpush_feedback, :device_token, :string, null: true, limit: 64
|
10
10
|
end
|
11
11
|
end
|
data/lib/rpush/version.rb
CHANGED
@@ -61,10 +61,12 @@ describe Rpush::Daemon::Pushy::Delivery do
|
|
61
61
|
it_behaves_like 'process notification'
|
62
62
|
end
|
63
63
|
|
64
|
-
shared_examples 'retry delivery' do |
|
65
|
-
let(:response_code) { response_code }
|
64
|
+
shared_examples 'retry delivery' do |options|
|
65
|
+
let(:response_code) { options[:response_code] }
|
66
|
+
|
67
|
+
shared_examples 'logs' do |log_options|
|
68
|
+
let(:deliver_after) { log_options[:deliver_after] }
|
66
69
|
|
67
|
-
shared_examples 'logs' do |deliver_after:|
|
68
70
|
let(:expected_log_message) do
|
69
71
|
"Pushy responded with a #{response_code} error. Notification #{notification.id} " \
|
70
72
|
"will be retried after #{deliver_after} (retry 1)."
|
@@ -50,10 +50,12 @@ describe Rpush::Daemon::Webpush::Delivery do
|
|
50
50
|
it_behaves_like 'process notification'
|
51
51
|
end
|
52
52
|
|
53
|
-
shared_examples 'retry delivery' do |
|
54
|
-
let(:response_code) { response_code }
|
53
|
+
shared_examples 'retry delivery' do |options|
|
54
|
+
let(:response_code) { options[:response_code] }
|
55
|
+
|
56
|
+
shared_examples 'logs' do |log_options|
|
57
|
+
let(:deliver_after) { log_options[:deliver_after] }
|
55
58
|
|
56
|
-
shared_examples 'logs' do |deliver_after:|
|
57
59
|
let(:expected_log_message) do
|
58
60
|
"[MyApp] Webpush endpoint responded with a #{response_code} error. Notification #{notification.id} will be retried after #{deliver_after} (retry 1)."
|
59
61
|
end
|
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: 5.
|
4
|
+
version: 5.4.0
|
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-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|