rpush 5.3.0 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2da7543fed0193b0dcd20169efb5abd8170f15bc5043ef4ce2cb4d0e56380b4f
4
- data.tar.gz: d7ba0f5b1dc97d17a7d23bf623d900b6da26b428ddcf4a8a93fce7641ab20f2d
3
+ metadata.gz: 1166c47df63fee1cfaaa6e869d382923c65a0e3cae24ca36bc73d1736590dcac
4
+ data.tar.gz: d97ca83af8fb3959ca5d782d65af6e8f0bfddbc5b928753dcc3439f497a84edc
5
5
  SHA512:
6
- metadata.gz: 745e0799a2e66d4813b99c4a93eb5d172dcbbe4c1317bd945b1addf177720f489bbdb0d83d918b9ab0ba4b98c35d186c0522d39740541097e16e90d0687487d8
7
- data.tar.gz: e6d249ad9c7366cc54267e4eaa6f3d1bb3670dc6211380aa8bced26b33053cc0fda328f33b72a1d843cdd794e44e0793cd579e49745c60e46aa83155a5d0acca
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
@@ -79,7 +79,7 @@ app.save!
79
79
  ```
80
80
 
81
81
  ```ruby
82
- n = Rpush::Apns::Notification.new
82
+ n = Rpush::Apnsp8::Notification.new
83
83
  n.app = Rpush::Apnsp8::App.find_by_name("ios_app")
84
84
  n.device_token = "..." # hex string
85
85
  n.alert = "hi mom!"
@@ -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, { null: true, limit: 64 }
23
- change_column :rapns_notifications, :expiry, :integer, { null: true, default: 1.day.to_i }
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, { null: false, limit: 64 }
77
- change_column :rapns_notifications, :expiry, :integer, { null: false, default: 1.day.to_i }
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, { null: true, limit: 64 }
168
- change_column :rapns_notifications, :expiry, :integer, { null: true, default: 1.day.to_i }
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, { null: false, limit: 64 }
222
- change_column :rapns_notifications, :expiry, :integer, { null: false, default: 1.day.to_i }
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, { null: true, limit: 64 }
9
- change_column :rpush_feedback, :device_token, :string, { null: true, limit: 64 }
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
@@ -1,7 +1,7 @@
1
1
  module Rpush
2
2
  module VERSION
3
3
  MAJOR = 5
4
- MINOR = 3
4
+ MINOR = 4
5
5
  TINY = 0
6
6
  PRE = nil
7
7
 
@@ -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 |response_code:|
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 |response_code:|
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.3.0
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-01-07 00:00:00.000000000 Z
11
+ date: 2021-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json