rpush 4.2.0 → 7.0.1
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 +307 -163
- data/README.md +105 -19
- data/lib/generators/templates/add_adm.rb +1 -1
- data/lib/generators/templates/add_alert_is_json_to_rapns_notifications.rb +2 -2
- data/lib/generators/templates/add_app_to_rapns.rb +2 -2
- data/lib/generators/templates/add_fail_after_to_rpush_notifications.rb +1 -1
- data/lib/generators/templates/add_gcm.rb +11 -25
- data/lib/generators/templates/add_rpush.rb +33 -83
- data/lib/generators/templates/add_wpns.rb +1 -1
- data/lib/generators/templates/create_rapns_apps.rb +1 -1
- data/lib/generators/templates/create_rapns_feedback.rb +3 -9
- data/lib/generators/templates/create_rapns_notifications.rb +3 -9
- data/lib/generators/templates/rename_rapns_to_rpush.rb +9 -33
- data/lib/generators/templates/rpush.rb +5 -4
- data/lib/generators/templates/rpush_2_0_0_updates.rb +10 -18
- data/lib/generators/templates/rpush_2_1_0_updates.rb +1 -1
- data/lib/generators/templates/rpush_2_6_0_updates.rb +1 -1
- data/lib/generators/templates/rpush_2_7_0_updates.rb +1 -1
- data/lib/generators/templates/rpush_3_0_0_updates.rb +1 -1
- data/lib/generators/templates/rpush_3_0_1_updates.rb +1 -1
- data/lib/generators/templates/rpush_3_1_0_add_pushy.rb +1 -1
- data/lib/generators/templates/rpush_3_1_1_updates.rb +1 -1
- data/lib/generators/templates/rpush_3_2_0_add_apns_p8.rb +1 -1
- data/lib/generators/templates/rpush_3_2_4_updates.rb +1 -1
- data/lib/generators/templates/rpush_3_3_0_updates.rb +1 -1
- data/lib/generators/templates/rpush_3_3_1_updates.rb +3 -3
- data/lib/generators/templates/rpush_4_1_0_updates.rb +1 -1
- data/lib/generators/templates/rpush_4_1_1_updates.rb +1 -1
- data/lib/generators/templates/rpush_4_2_0_updates.rb +1 -1
- data/lib/rpush/cli.rb +1 -1
- data/lib/rpush/client/active_model/adm/data_validator.rb +1 -1
- data/lib/rpush/client/active_model/apns/app.rb +1 -17
- data/lib/rpush/client/active_model/apns/device_token_format_validator.rb +2 -2
- data/lib/rpush/client/active_model/apns/notification.rb +13 -1
- data/lib/rpush/client/active_model/apns/notification_payload_size_validator.rb +15 -0
- data/lib/rpush/client/active_model/apns2/app.rb +7 -1
- data/lib/rpush/client/active_model/apns2/notification.rb +14 -0
- data/lib/rpush/client/active_model/certificate_private_key_validator.rb +19 -0
- data/lib/rpush/client/active_model/gcm/expiry_collapse_key_mutual_inclusion_validator.rb +1 -1
- data/lib/rpush/client/active_model/gcm/notification.rb +2 -2
- data/lib/rpush/client/active_model/payload_data_size_validator.rb +1 -1
- data/lib/rpush/client/active_model/registration_ids_count_validator.rb +1 -1
- data/lib/rpush/client/active_model/webpush/app.rb +41 -0
- data/lib/rpush/client/active_model/webpush/notification.rb +66 -0
- data/lib/rpush/client/active_model.rb +5 -1
- data/lib/rpush/client/active_record/apns/active_record_serializable_notification.rb +65 -0
- data/lib/rpush/client/active_record/apns/notification.rb +1 -57
- data/lib/rpush/client/active_record/apns2/notification.rb +4 -1
- data/lib/rpush/client/active_record/apnsp8/notification.rb +1 -0
- data/lib/rpush/client/active_record/webpush/app.rb +11 -0
- data/lib/rpush/client/active_record/webpush/notification.rb +12 -0
- data/lib/rpush/client/active_record.rb +4 -0
- data/lib/rpush/client/redis/apns2/notification.rb +1 -0
- data/lib/rpush/client/redis/apnsp8/notification.rb +2 -0
- data/lib/rpush/client/redis/pushy/notification.rb +0 -1
- data/lib/rpush/client/redis/webpush/app.rb +15 -0
- data/lib/rpush/client/redis/webpush/notification.rb +15 -0
- data/lib/rpush/client/redis.rb +3 -0
- data/lib/rpush/configuration.rb +3 -2
- data/lib/rpush/daemon/apns/feedback_receiver.rb +1 -1
- data/lib/rpush/daemon/apns2/delivery.rb +14 -2
- data/lib/rpush/daemon/apnsp8/delivery.rb +14 -3
- data/lib/rpush/daemon/app_runner.rb +1 -1
- data/lib/rpush/daemon/batch.rb +12 -5
- data/lib/rpush/daemon/delivery.rb +1 -2
- data/lib/rpush/daemon/store/active_record/reconnectable.rb +1 -1
- data/lib/rpush/daemon/store/active_record.rb +11 -7
- data/lib/rpush/daemon/store/redis.rb +6 -6
- data/lib/rpush/daemon/string_helpers.rb +1 -1
- data/lib/rpush/daemon/webpush/delivery.rb +114 -0
- data/lib/rpush/daemon/webpush.rb +10 -0
- data/lib/rpush/daemon.rb +4 -1
- data/lib/rpush/logger.rb +2 -1
- data/lib/rpush/version.rb +3 -3
- data/spec/functional/apns2_spec.rb +99 -2
- data/spec/functional/gcm_priority_spec.rb +40 -0
- data/spec/functional/retry_spec.rb +1 -1
- data/spec/functional/webpush_spec.rb +31 -0
- data/spec/spec_helper.rb +3 -1
- data/spec/support/active_record_setup.rb +4 -3
- data/spec/support/config/database.yml +4 -4
- data/spec/support/simplecov_helper.rb +2 -2
- data/spec/unit/client/active_record/adm/app_spec.rb +2 -54
- data/spec/unit/client/active_record/adm/notification_spec.rb +2 -39
- data/spec/unit/client/active_record/apns/app_spec.rb +3 -26
- data/spec/unit/client/active_record/apns/feedback_spec.rb +1 -5
- data/spec/unit/client/active_record/apns/notification_spec.rb +29 -293
- data/spec/unit/client/active_record/apns2/app_spec.rb +5 -0
- data/spec/unit/client/active_record/apns2/notification_spec.rb +65 -0
- data/spec/unit/client/active_record/apnsp8/notification_spec.rb +28 -0
- data/spec/unit/client/active_record/app_spec.rb +1 -26
- data/spec/unit/client/active_record/gcm/app_spec.rb +3 -1
- data/spec/unit/client/active_record/gcm/notification_spec.rb +6 -88
- data/spec/unit/client/active_record/notification_spec.rb +3 -11
- data/spec/unit/client/active_record/pushy/app_spec.rb +2 -13
- data/spec/unit/client/active_record/pushy/notification_spec.rb +2 -55
- data/spec/unit/client/active_record/shared/app.rb +14 -0
- data/spec/unit/{notification_shared.rb → client/active_record/shared/notification.rb} +12 -7
- data/spec/unit/client/active_record/webpush/app_spec.rb +6 -0
- data/spec/unit/client/active_record/webpush/notification_spec.rb +6 -0
- data/spec/unit/client/active_record/wns/badge_notification_spec.rb +1 -11
- data/spec/unit/client/active_record/wns/raw_notification_spec.rb +3 -12
- data/spec/unit/client/active_record/wpns/app_spec.rb +3 -1
- data/spec/unit/client/active_record/wpns/notification_spec.rb +2 -17
- data/spec/unit/client/redis/adm/app_spec.rb +5 -0
- data/spec/unit/client/redis/adm/notification_spec.rb +5 -0
- data/spec/unit/client/redis/apns/app_spec.rb +5 -0
- data/spec/unit/client/redis/apns/feedback_spec.rb +5 -0
- data/spec/unit/client/redis/apns/notification_spec.rb +50 -0
- data/spec/unit/client/redis/apns2/app_spec.rb +4 -0
- data/spec/unit/client/redis/apns2/notification_spec.rb +50 -0
- data/spec/unit/client/redis/apnsp8/notification_spec.rb +29 -0
- data/spec/unit/client/redis/app_spec.rb +5 -0
- data/spec/unit/client/redis/gcm/app_spec.rb +5 -0
- data/spec/unit/client/redis/gcm/notification_spec.rb +5 -0
- data/spec/unit/client/redis/notification_spec.rb +5 -0
- data/spec/unit/client/redis/pushy/app_spec.rb +5 -0
- data/spec/unit/client/redis/pushy/notification_spec.rb +5 -0
- data/spec/unit/client/redis/webpush/app_spec.rb +5 -0
- data/spec/unit/client/redis/webpush/notification_spec.rb +5 -0
- data/spec/unit/client/redis/wns/badge_notification_spec.rb +5 -0
- data/spec/unit/client/redis/wns/raw_notification_spec.rb +22 -0
- data/spec/unit/client/redis/wpns/app_spec.rb +5 -0
- data/spec/unit/client/redis/wpns/notification_spec.rb +5 -0
- data/spec/unit/client/shared/adm/app.rb +51 -0
- data/spec/unit/client/shared/adm/notification.rb +39 -0
- data/spec/unit/client/shared/apns/app.rb +29 -0
- data/spec/unit/client/shared/apns/feedback.rb +9 -0
- data/spec/unit/client/shared/apns/notification.rb +277 -0
- data/spec/unit/client/shared/app.rb +17 -0
- data/spec/unit/client/shared/gcm/app.rb +4 -0
- data/spec/unit/client/shared/gcm/notification.rb +77 -0
- data/spec/unit/client/shared/notification.rb +10 -0
- data/spec/unit/client/shared/pushy/app.rb +17 -0
- data/spec/unit/client/shared/pushy/notification.rb +55 -0
- data/spec/unit/client/shared/webpush/app.rb +33 -0
- data/spec/unit/client/shared/webpush/notification.rb +83 -0
- data/spec/unit/client/shared/wns/badge_notification.rb +15 -0
- data/spec/unit/client/shared/wns/raw_notification.rb +21 -0
- data/spec/unit/client/shared/wpns/app.rb +4 -0
- data/spec/unit/client/shared/wpns/notification.rb +18 -0
- data/spec/unit/daemon/apnsp8/delivery_spec.rb +53 -0
- data/spec/unit/daemon/batch_spec.rb +50 -2
- data/spec/unit/daemon/delivery_spec.rb +10 -0
- data/spec/unit/daemon/pushy/delivery_spec.rb +5 -3
- data/spec/unit/daemon/shared/store.rb +312 -0
- data/spec/unit/daemon/store/active_record/reconnectable_spec.rb +7 -7
- data/spec/unit/daemon/store/active_record_spec.rb +6 -287
- data/spec/unit/daemon/store/redis_spec.rb +2 -291
- data/spec/unit/daemon/webpush/delivery_spec.rb +144 -0
- data/spec/unit_spec_helper.rb +3 -0
- metadata +145 -18
- data/lib/rpush/client/active_model/apns/binary_notification_validator.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 409c28bf9f63343232e1c7db56f8d7131acc70b4828032059f37eab3a4606e6c
|
|
4
|
+
data.tar.gz: 3f07d7e79828fa43ab5ed73a9b19183a9f4ac9e5a3d8891f1ecfec42c7375c03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 400a7241c337ff9874767be4ee051d1494676665bd17e9b3acb2e3ce8efae236971a138888da6c0172e0c649276e97f4d639430733bad345e7980d408e8c3436
|
|
7
|
+
data.tar.gz: e81b66da807a2bc8a386a12825aed37c452672be899b69ff633d65b80548903669e7d63b3b1eec899633557a489157e8083ed562b2665c017566df9ad220c151
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,120 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## [v7.0.1](https://github.com/rpush/rpush/tree/v7.0.1) (2022-03-02)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v7.0.0...v7.0.1)
|
|
6
|
+
|
|
7
|
+
**Merged pull requests:**
|
|
8
|
+
|
|
9
|
+
- Fix deprecation warnings from the redis gem [\#636](https://github.com/rpush/rpush/pull/636) ([sharang-d](https://github.com/sharang-d))
|
|
10
|
+
|
|
11
|
+
## [Unreleased](https://github.com/rpush/rpush/tree/HEAD)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v7.0.0...HEAD)
|
|
14
|
+
|
|
15
|
+
## [v7.0.0](https://github.com/rpush/rpush/tree/HEAD)
|
|
16
|
+
|
|
17
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v6.0.1...v7.0.0)
|
|
18
|
+
|
|
19
|
+
**Merged pull requests:**
|
|
20
|
+
|
|
21
|
+
- Test with Ruby 3.1 [\#632](https://github.com/rpush/rpush/pull/632) ([aried3r](https://github.com/aried3r))
|
|
22
|
+
- Resolves Rails 7 Time.now.to\_s deprecation warning [\#630](https://github.com/rpush/rpush/pull/630) ([gregblake](https://github.com/gregblake))
|
|
23
|
+
- Adds Rails 7 Support [\#629](https://github.com/rpush/rpush/pull/629) ([gregblake](https://github.com/gregblake))
|
|
24
|
+
- Test with Rails 7.0.0.alpha2 [\#626](https://github.com/rpush/rpush/pull/626) ([aried3r](https://github.com/aried3r))
|
|
25
|
+
|
|
26
|
+
**Breaking:**
|
|
27
|
+
|
|
28
|
+
- Drop support for Ruby 2.3 [\#631](https://github.com/rpush/rpush/pull/631) ([aried3r](https://github.com/aried3r))
|
|
29
|
+
|
|
30
|
+
## [v6.0.1](https://github.com/rpush/rpush/tree/v6.0.1) (2021-10-08)
|
|
31
|
+
|
|
32
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v6.0.0...v6.0.1)
|
|
33
|
+
|
|
34
|
+
**Merged pull requests:**
|
|
35
|
+
|
|
36
|
+
- Don't limit webpush registration keys [\#624](https://github.com/rpush/rpush/pull/624) ([treyrich](https://github.com/treyrich))
|
|
37
|
+
- Add Prometheus Exporter plugin link to README [\#617](https://github.com/rpush/rpush/pull/617) ([maxsz](https://github.com/maxsz))
|
|
38
|
+
- Reference current interface in config template [\#569](https://github.com/rpush/rpush/pull/569) ([benlangfeld](https://github.com/benlangfeld))
|
|
39
|
+
- Default the Rails environment to RAILS\_ENV if set [\#562](https://github.com/rpush/rpush/pull/562) ([benlangfeld](https://github.com/benlangfeld))
|
|
40
|
+
|
|
41
|
+
## [v6.0.0](https://github.com/rpush/rpush/tree/v6.0.0) (2021-05-21)
|
|
42
|
+
|
|
43
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v5.4.0...v6.0.0)
|
|
44
|
+
|
|
45
|
+
This release contains **breaking changes**, such as removing support for Rails versions older than 5.2.
|
|
46
|
+
Please see the details in the PRs below.
|
|
47
|
+
|
|
48
|
+
**Merged pull requests:**
|
|
49
|
+
|
|
50
|
+
- Switch to GitHub Actions for CI [\#615](https://github.com/rpush/rpush/pull/615) ([aried3r](https://github.com/aried3r))
|
|
51
|
+
- Prepare 6.0.0 release [\#613](https://github.com/rpush/rpush/pull/613) ([aried3r](https://github.com/aried3r))
|
|
52
|
+
- Bump activesupport version to 5.2 or later [\#610](https://github.com/rpush/rpush/pull/610) ([biow0lf](https://github.com/biow0lf))
|
|
53
|
+
- Fixed infinite loop issue with Apnsp8 delivery [\#608](https://github.com/rpush/rpush/pull/608) ([diminish7](https://github.com/diminish7))
|
|
54
|
+
- Eliminate deprecation warning in Ruby 3.0 [\#602](https://github.com/rpush/rpush/pull/602) ([rofreg](https://github.com/rofreg))
|
|
55
|
+
- Make ActiveRecord validations work with Apns2 client [\#601](https://github.com/rpush/rpush/pull/601) ([favrik](https://github.com/favrik))
|
|
56
|
+
- Bump gemspec post\_install\_message [\#600](https://github.com/rpush/rpush/pull/600) ([fdoxyz](https://github.com/fdoxyz))
|
|
57
|
+
- Remove references and checks for unsupported versions of Rails [\#599](https://github.com/rpush/rpush/pull/599) ([ericsaupe](https://github.com/ericsaupe))
|
|
58
|
+
- Drop support for Rails 5.0 and 5.1 [\#597](https://github.com/rpush/rpush/pull/597) ([ericsaupe](https://github.com/ericsaupe))
|
|
59
|
+
- Fix silent APNS notifications for Apns2 and Apnsp8 [\#596](https://github.com/rpush/rpush/pull/596) ([shved270189](https://github.com/shved270189))
|
|
60
|
+
- Updates README to Apple's new EOL date for the APNs legacy binary protocol [\#595](https://github.com/rpush/rpush/pull/595) ([gregblake](https://github.com/gregblake))
|
|
61
|
+
|
|
62
|
+
## [v5.4.0](https://github.com/rpush/rpush/tree/v5.4.0) (2021-02-15)
|
|
63
|
+
|
|
64
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v5.3.0...v5.4.0)
|
|
65
|
+
|
|
66
|
+
**Merged pull requests:**
|
|
67
|
+
|
|
68
|
+
- fix typo in README.md [\#587](https://github.com/rpush/rpush/pull/587) ([yltsrc](https://github.com/yltsrc))
|
|
69
|
+
- Support Ruby 3.0 & Rails 6.1 [\#586](https://github.com/rpush/rpush/pull/586) ([andreaslillebo](https://github.com/andreaslillebo))
|
|
70
|
+
|
|
71
|
+
## [v5.3.0](https://github.com/rpush/rpush/tree/v5.3.0) (2021-01-07)
|
|
72
|
+
|
|
73
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v5.2.0...v5.3.0)
|
|
74
|
+
|
|
75
|
+
**Implemented enhancements:**
|
|
76
|
+
|
|
77
|
+
- support for Webpush with VAPID [\#574](https://github.com/rpush/rpush/pull/574) ([jkraemer](https://github.com/jkraemer))
|
|
78
|
+
|
|
79
|
+
**Merged pull requests:**
|
|
80
|
+
|
|
81
|
+
- Bug fix: APNS P8 Notifications Are Marked as Invalid When the Payload Exceeds 2kb \(2048 bytes\) [\#583](https://github.com/rpush/rpush/pull/583) ([gregblake](https://github.com/gregblake))
|
|
82
|
+
- Fix more Rails 6.1 deprecation warnings [\#582](https://github.com/rpush/rpush/pull/582) ([jas14](https://github.com/jas14))
|
|
83
|
+
- Feature/apns2 default headers [\#579](https://github.com/rpush/rpush/pull/579) ([jkraemer](https://github.com/jkraemer))
|
|
84
|
+
- Fix APNS2 documentation in README [\#578](https://github.com/rpush/rpush/pull/578) ([jamestjw](https://github.com/jamestjw))
|
|
85
|
+
- Fixed typo with misspell [\#575](https://github.com/rpush/rpush/pull/575) ([hsbt](https://github.com/hsbt))
|
|
86
|
+
|
|
87
|
+
## [v5.2.0](https://github.com/rpush/rpush/tree/v5.2.0) (2020-10-08)
|
|
88
|
+
|
|
89
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v5.1.0...v5.2.0)
|
|
90
|
+
|
|
91
|
+
**Merged pull requests:**
|
|
92
|
+
|
|
93
|
+
- Allow opting out of foreground stdout logging [\#571](https://github.com/rpush/rpush/pull/571) ([benlangfeld](https://github.com/benlangfeld))
|
|
94
|
+
- Do not retry notifications which already have been delivered/failed [\#567](https://github.com/rpush/rpush/pull/567) ([AlexTatarnikov](https://github.com/AlexTatarnikov))
|
|
95
|
+
- Improve APNs documentation. [\#553](https://github.com/rpush/rpush/pull/553) ([timdiggins](https://github.com/timdiggins))
|
|
96
|
+
|
|
97
|
+
## [v5.1.0](https://github.com/rpush/rpush/tree/v5.1.0) (2020-09-25)
|
|
98
|
+
|
|
99
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v5.0.0...v5.1.0)
|
|
100
|
+
|
|
101
|
+
**Merged pull requests:**
|
|
102
|
+
|
|
103
|
+
- Resume APNS2 delivery when async requests timeout [\#564](https://github.com/rpush/rpush/pull/564) ([benlangfeld](https://github.com/benlangfeld))
|
|
104
|
+
- Improve DB reconnection for big tables [\#563](https://github.com/rpush/rpush/pull/563) ([AlexTatarnikov](https://github.com/AlexTatarnikov))
|
|
105
|
+
- Default the Rails environment to RAILS_ENV if set [\#562](https://github.com/rpush/rpush/pull/562) ([benlangfeld](https://github.com/benlangfeld))
|
|
106
|
+
- Allow Apns2 payloads to be up to 4096 bytes [\#561](https://github.com/rpush/rpush/pull/561) ([benlangfeld](https://github.com/benlangfeld))
|
|
107
|
+
- Improve test coverage [\#528](https://github.com/rpush/rpush/pull/528) ([jhottenstein](https://github.com/jhottenstein))
|
|
108
|
+
|
|
109
|
+
## [v5.0.0](https://github.com/rpush/rpush/tree/v5.0.0) (2020-02-21)
|
|
110
|
+
|
|
111
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v4.2.0...v5.0.0)
|
|
112
|
+
|
|
113
|
+
**Merged pull requests:**
|
|
114
|
+
|
|
115
|
+
- Test with Ruby 2.7 [\#550](https://github.com/rpush/rpush/pull/550) ([aried3r](https://github.com/aried3r))
|
|
116
|
+
- Fix GCM priority when using Redis [\#549](https://github.com/rpush/rpush/pull/549) ([daniel-nelson](https://github.com/daniel-nelson))
|
|
117
|
+
- Drop support for Rails 4.2 [\#547](https://github.com/rpush/rpush/pull/547) ([aried3r](https://github.com/aried3r))
|
|
6
118
|
|
|
7
119
|
## 4.2.0 (2019-12-13)
|
|
8
120
|
|
|
@@ -178,15 +290,15 @@ When upgrading, don't forget to run `bundle exec rpush init` to get all the late
|
|
|
178
290
|
|
|
179
291
|
#### Fixes
|
|
180
292
|
|
|
181
|
-
|
|
182
|
-
|
|
293
|
+
- Fixes migrations added in 3.0.1 ([#396](https://github.com/rpush/rpush/pull/396) by [@grosser](https://github.com/grosser))
|
|
294
|
+
- Actually run these migrations in the test suite ([#399](https://github.com/rpush/rpush/pull/399) by [@aried3r](https://github.com/aried3r))
|
|
183
295
|
|
|
184
296
|
## 3.0.1 (2017-11-30)
|
|
185
297
|
|
|
186
298
|
#### Enhancements
|
|
187
299
|
|
|
188
|
-
|
|
189
|
-
|
|
300
|
+
- Reduce booleans to true/false, do not allow nil ([#384](https://github.com/rpush/rpush/pull/384)) by [@grosser](https://github.com/grosser)
|
|
301
|
+
- Better error message for error 8 in APNS ([#387](https://github.com/rpush/rpush/pull/387/files)) by [@grosser](https://github.com/grosser)
|
|
190
302
|
|
|
191
303
|
## 3.0.0 (2017-09-15)
|
|
192
304
|
|
|
@@ -194,7 +306,7 @@ Same as 3.0.0.rc1 including:
|
|
|
194
306
|
|
|
195
307
|
#### Features
|
|
196
308
|
|
|
197
|
-
|
|
309
|
+
- Added support for latest modis version ([#378](https://github.com/rpush/rpush/pull/378)) by [@milgner](https://github.com/milgner)
|
|
198
310
|
|
|
199
311
|
## 3.0.0.rc1 (2017-08-31)
|
|
200
312
|
|
|
@@ -202,233 +314,265 @@ When upgrading, don't forget to run `bundle exec rpush init` to get all the late
|
|
|
202
314
|
|
|
203
315
|
#### Features
|
|
204
316
|
|
|
205
|
-
|
|
206
|
-
|
|
317
|
+
- Added support for APNS `mutable-content` ([#296](https://github.com/rpush/rpush/pull/296) by [@tdtran](https://github.com/tdtran))
|
|
318
|
+
- Added support for HTTP2 base APNS Api ([#315](https://github.com/rpush/rpush/pull/315) by [@soulfly](https://github.com/soulfly) and [@Nattfodd](https://github.com/Nattfodd))
|
|
207
319
|
|
|
208
320
|
#### Changes
|
|
209
321
|
|
|
210
|
-
|
|
322
|
+
- **Breaking:** Dropped support for old Rubies and Rails versions. rpush 3.0 only supports Ruby versions 2.2.2 or higher and
|
|
211
323
|
Rails 4.2 or higher. ([#366](https://github.com/rpush/rpush/pull/366) by [@aried3r](https://github.com/aried3r))
|
|
212
|
-
|
|
213
|
-
|
|
324
|
+
- **Breaking:** Dropped MongoDB support because there was no one maintaining it. But we're open to adding it back in. ([#366](https://github.com/rpush/rpush/pull/366) by [@aried3r](https://github.com/aried3r))
|
|
325
|
+
- **Breaking:** Dropped JRuby support. ([#366](https://github.com/rpush/rpush/pull/366) by [@aried3r](https://github.com/aried3r))
|
|
214
326
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
327
|
+
- Make synchronizer aware of GCM and WNS apps ([#254](https://github.com/rpush/rpush/pull/254) by [@wouterh](https://github.com/wouterh))
|
|
328
|
+
- Precise after init commit msg ([#266](https://github.com/rpush/rpush/pull/266) by [@azranel](https://github.com/azranel))
|
|
329
|
+
- Use new GCM endpoint ([#303](https://github.com/rpush/rpush/pull/303) by [@aried3r](https://github.com/aried3r))
|
|
330
|
+
- Remove sound default value ([#320](https://github.com/rpush/rpush/pull/320) by [@amaierhofer](https://github.com/amaierhofer))
|
|
219
331
|
|
|
220
332
|
#### Bugfixes
|
|
221
333
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
334
|
+
- ~~~Lock `net-http-persistent` dependency to `< 3`. See also [#306](https://github.com/rpush/rpush/issues/306) for more details. (by [@amaierhofer](https://github.com/amaierhofer))~~~
|
|
335
|
+
- Fix `net-http-persistent` initializer to support version 2.x as well as 3.x. ([#309](https://github.com/rpush/rpush/pull/309) by [@amirmujkic](https://github.com/amirmujkic))
|
|
336
|
+
- Fixed Rpush::ApnsFeedback being run on every application type when using Redis. ([#318](https://github.com/rpush/rpush/pull/318) by [@robertasg](https://github.com/robertasg))
|
|
225
337
|
|
|
226
338
|
## 2.7.0 (February 9, 2016)
|
|
227
339
|
|
|
228
340
|
#### Features
|
|
229
341
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
342
|
+
- Added support for GCM priorities. ([#243](https://github.com/rpush/rpush/pull/243) by [@aried3r](https://github.com/aried3r))
|
|
343
|
+
- Added support for GCM notification payload ([#246](https://github.com/rpush/rpush/pull/246) by [@aried3r](https://github.com/aried3r))
|
|
344
|
+
- Added support for Windows Raw Notifications (in JSON form) ([#238](https://github.com/rpush/rpush/pull/238) by [@mseppae](https://github.com/mseppae))
|
|
345
|
+
- Added WNS badge notifications ([#247](https://github.com/rpush/rpush/pull/247) by [@wouterh](https://github.com/wouterh))
|
|
346
|
+
- Added the `launch` argument of WNS toast notifications ([#247](https://github.com/rpush/rpush/pull/247) by [@wouterh](https://github.com/wouterh))
|
|
347
|
+
- Added sound in WNS toast notifications ([#247](https://github.com/rpush/rpush/pull/247) by [@wouterh](https://github.com/wouterh))
|
|
236
348
|
|
|
237
349
|
#### Changes
|
|
238
350
|
|
|
239
|
-
|
|
351
|
+
- Change `alert` type from `string` to `text` in ActiveRecord to allow bigger alert dictionaries. ([#248](https://github.com/rpush/rpush/pull/248) by [@schmidt](https://github.com/schmidt))
|
|
240
352
|
|
|
241
353
|
#### Fixes
|
|
242
354
|
|
|
243
|
-
|
|
244
|
-
|
|
355
|
+
- Fixed issue where setting the `mdm` parameter broke `to_binary` for MDM APNs ([#234](https://github.com/rpush/rpush/pull/234) by [@troya2](https://github.com/troya2))
|
|
356
|
+
- Fixed `as_json` ([#231](https://github.com/rpush/rpush/issues/231) by [@aried3r](https://github.com/aried3r))
|
|
245
357
|
|
|
246
358
|
## 2.6.0 (January 25, 2016)
|
|
247
359
|
|
|
248
360
|
#### Features
|
|
249
361
|
|
|
250
|
-
|
|
362
|
+
- Added support for GCM for iOS' `content_available`. ([#221](https://github.com/rpush/rpush/pull/221))
|
|
251
363
|
|
|
252
364
|
#### Fixes
|
|
253
365
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
366
|
+
- Fix typo in Oracle support. ([#185](https://github.com/rpush/rpush/pull/185))
|
|
367
|
+
- Remove `param` tag from WNS message. ([#190](https://github.com/rpush/rpush/pull/190))
|
|
368
|
+
- Fixed WNS response headers parser. ([#192](https://github.com/rpush/rpush/pull/192))
|
|
369
|
+
- GCM: fixed raise of unhandled errors. ([#193](https://github.com/rpush/rpush/pull/193))
|
|
370
|
+
- Fix issue with custom PID file set in `Rpush.config`. ([#224](https://github.com/rpush/rpush/pull/224), [#225](https://github.com/rpush/rpush/pull/225))
|
|
259
371
|
|
|
260
372
|
## 2.5.0 (July 19, 2015)
|
|
261
|
-
Features:
|
|
262
|
-
* Add 'rpush status' to inspect running Rpush internal status.
|
|
263
|
-
* ActiveRecord logging is no longer redirected to rpush.log when embedded (#138).
|
|
264
|
-
* Support for WNS (Windows RT) (#137).
|
|
265
|
-
* Indexes added to some Mongoid fields (#151).
|
|
266
|
-
* Added support for Oracle.
|
|
267
373
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
374
|
+
Features:
|
|
375
|
+
|
|
376
|
+
- Add 'rpush status' to inspect running Rpush internal status.
|
|
377
|
+
- ActiveRecord logging is no longer redirected to rpush.log when embedded (#138).
|
|
378
|
+
- Support for WNS (Windows RT) (#137).
|
|
379
|
+
- Indexes added to some Mongoid fields (#151).
|
|
380
|
+
- Added support for Oracle.
|
|
381
|
+
|
|
382
|
+
Bug fixes:
|
|
383
|
+
|
|
384
|
+
- Fix for handling APNs error when using `rpush push` or `Rpush.push`.
|
|
385
|
+
- Fix backwards compatibility issue with ActiveRecord (#144).
|
|
271
386
|
|
|
272
387
|
## 2.4.0 (Feb 18, 2015)
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
388
|
+
|
|
389
|
+
Features:
|
|
390
|
+
|
|
391
|
+
- Support for MongoDB (using Mongoid).
|
|
392
|
+
- config.feedback_poll is now deprecated, use config.apns.feedback_receiver.frequency instead.
|
|
393
|
+
- Add config.apns.feedback_receiver.enabled to optionally enable the APNs feedback receiver (#129).
|
|
394
|
+
- Passing configuration options directly to Rpush.embed and Rpush.push is now deprecated.
|
|
395
|
+
|
|
396
|
+
Bug fixes:
|
|
397
|
+
|
|
398
|
+
- Fix setting the log level when using Rails 4+ or without Rails (#124).
|
|
399
|
+
- Fix the possibility for excessive error logging when using APNs (#128).
|
|
400
|
+
- Re-use timestamp when replacing a migration with the same name (#91).
|
|
401
|
+
- Ensure App/Notification type is updated during 2.0 upgrade migration (#102).
|
|
284
402
|
|
|
285
403
|
## 2.3.2 (Jan 30, 2015)
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
404
|
+
|
|
405
|
+
Bug fixes:
|
|
406
|
+
|
|
407
|
+
- Internal sleep mechanism would sometimes no wait for the full duration specified.
|
|
408
|
+
- Rpush.push nows delivers all pending notifications before returning.
|
|
409
|
+
- Require thor >= 0.18.1 (#121).
|
|
290
410
|
|
|
291
411
|
## 2.3.1 (Jan 24, 2015)
|
|
292
|
-
|
|
412
|
+
|
|
413
|
+
- Fix CPU thrashing while waiting for an APNs connection be established (#119).
|
|
293
414
|
|
|
294
415
|
## 2.3.0 (Jan 19, 2015)
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
416
|
+
|
|
417
|
+
- Add 'version' CLI command.
|
|
418
|
+
- Rpush::Wpns::Notification now supports setting the 'data' attribute.
|
|
419
|
+
- ActiveRecord is now directed to the configured Rpush logger (#104).
|
|
420
|
+
- Logs are reopened when the HUP signal is received (#95).
|
|
421
|
+
- Fix setting config.redis_options (#114).
|
|
422
|
+
- Increase frequency of TCP keepalive probes on Linux.
|
|
423
|
+
- APNs notifications are no longer marked as failed when a dropped connection is detected, as it's impossible to know exactly how many actually failed (if any).
|
|
424
|
+
- Notifications are now retried instead of being marked as failed if a TCP/HTTP connection cannot be established.
|
|
303
425
|
|
|
304
426
|
## 2.2.0 (Oct 7, 2014)
|
|
305
|
-
|
|
306
|
-
|
|
427
|
+
|
|
428
|
+
- Numerous command-line fixes, sorry folks!
|
|
429
|
+
- Add 'rpush push' command-line command for one-off use.
|
|
307
430
|
|
|
308
431
|
## 2.1.0 (Oct 4, 2014)
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
432
|
+
|
|
433
|
+
- Bump APNs max payload size to 2048 for iOS 8.
|
|
434
|
+
- Add 'category' for iOS 8.
|
|
435
|
+
- Add url_args for Safari Push Notification Support (#77).
|
|
436
|
+
- Improved command-line interface.
|
|
437
|
+
- Rails integration is now optional.
|
|
438
|
+
- Added log_level config option.
|
|
439
|
+
- log_dir is now deprecated and has no effect, use log_file instead.
|
|
316
440
|
|
|
317
441
|
## 2.0.1 (Sept 13, 2014)
|
|
318
|
-
|
|
319
|
-
|
|
442
|
+
|
|
443
|
+
- Add ssl_certificate_revoked reflection (#68).
|
|
444
|
+
- Fix for Postgis support in 2.0.0 migration (#70).
|
|
320
445
|
|
|
321
446
|
## 2.0.0 (Sept 6, 2014)
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
447
|
+
|
|
448
|
+
- Use APNs enhanced binary format version 2.
|
|
449
|
+
- Support running multiple Rpush processes when using ActiveRecord and Redis.
|
|
450
|
+
- APNs error detection is now performed asynchronously, 'check_for_errors' is therefore deprecated.
|
|
451
|
+
- Deprecated attributes_for_device accessors. Use data instead.
|
|
452
|
+
- Fix signal handling to work with Ruby 2.x. (#40).
|
|
453
|
+
- You no longer need to signal HUP after creating a new app, they will be loaded automatically for you.
|
|
454
|
+
- APNs notifications are now delivered in batches, greatly improving throughput.
|
|
455
|
+
- Signaling HUP now also causes Rpush to immediately check for new notifications.
|
|
456
|
+
- The 'wakeup' config option has been removed.
|
|
457
|
+
- The 'batch_storage_updates' config option has been deprecated, storage backends will now always batch updates where appropriate.
|
|
458
|
+
- The rpush process title updates with number of queued notifications and number of dispatchers.
|
|
459
|
+
- Rpush::Apns::Feedback#app has been renamed to app_id and is now an Integer.
|
|
460
|
+
- An app is restarted when the HUP signal is received if its certificate or environment attribute changed.
|
|
335
461
|
|
|
336
462
|
## 1.0.0 (Feb 9, 2014)
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
463
|
+
|
|
464
|
+
- Renamed to Rpush (from Rapns). Version number reset to 1.0.0.
|
|
465
|
+
- Reduce default batch size to 100.
|
|
466
|
+
- Fix sqlite3 support (#160).
|
|
467
|
+
- Drop support for Ruby 1.8.
|
|
468
|
+
- Improve APNs certificate validation errors (#192) @mattconnolly).
|
|
469
|
+
- Support for Windows Phone notifications (#191) (@matiaslina).
|
|
470
|
+
- Support for Amazon device messaging (#173) (@darrylyip).
|
|
471
|
+
- Add two new GCM reflections: gcm_delivered_to_recipient, gcm_failed_to_recipient (#184) (@jakeonfire).
|
|
472
|
+
- Fix migration issues (#181) (@jcoleman).
|
|
473
|
+
- Add GCM gcm_invalid_registration_id reflection (#171) (@marcrohloff).
|
|
474
|
+
- Feature: wakeup feeder via UDP socket (#164) (@mattconnolly).
|
|
475
|
+
- Fix reflections when using batches (#161).
|
|
476
|
+
- Only perform APNs certificate validation for APNs apps (#133).
|
|
477
|
+
- The deprecated on_apns_feedback has now been removed.
|
|
478
|
+
- The deprecated airbrake_notify config option has been removed.
|
|
479
|
+
- Removed the deprecated ability to set attributes_for_device using mass-assignment.
|
|
480
|
+
- Fixed issue where database connections may not be released from the connection pool.
|
|
354
481
|
|
|
355
482
|
## 3.4.1 (Aug 30, 2013)
|
|
356
|
-
|
|
357
|
-
|
|
483
|
+
|
|
484
|
+
- Silence unintended airbrake_notify deprecation warning (#158).
|
|
485
|
+
- Add :dependent => :destroy to app notifications (#156).
|
|
358
486
|
|
|
359
487
|
## 3.4.0 (Aug 28, 2013)
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
488
|
+
|
|
489
|
+
- Rails 4 support.
|
|
490
|
+
- Add apns_certificate_will_expire reflection.
|
|
491
|
+
- Perform storage update in batches where possible, to increase throughput.
|
|
492
|
+
- airbrake_notify is now deprecated, use the Reflection API instead.
|
|
493
|
+
- Fix calling the notification_delivered reflection twice (#149).
|
|
365
494
|
|
|
366
495
|
## 3.3.2 (June 30, 2013)
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
496
|
+
|
|
497
|
+
- Fix Rails 3.0.x compatibility (#138) (@yoppi).
|
|
498
|
+
- Ensure Rails does not set a default value for text columns (#137).
|
|
499
|
+
- Fix error in down action for add_gcm migration (#135) (@alexperto).
|
|
370
500
|
|
|
371
501
|
## 3.3.1 (June 2, 2013)
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
502
|
+
|
|
503
|
+
- Fix compatibility with postgres_ext (#104).
|
|
504
|
+
- Add ability to switch the logger (@maxsz).
|
|
505
|
+
- Do not validate presence of alert, badge or sound - not actually required by the APNs (#129) (@wilg).
|
|
506
|
+
- Catch IOError from an APNs connection. (@maxsz).
|
|
507
|
+
- Allow nested hashes in APNs notification attributes (@perezda).
|
|
377
508
|
|
|
378
509
|
## 3.3.0 (April 21, 2013)
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
510
|
+
|
|
511
|
+
- GCM: collapse_key is no longer required to set expiry (time_to_live).
|
|
512
|
+
- Add reflection for GCM canonical IDs.
|
|
513
|
+
- Add Rpush::Daemon.store to decouple storage backend.
|
|
382
514
|
|
|
383
515
|
## 3.2.0 (Apr 1, 2013)
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
516
|
+
|
|
517
|
+
- Rpush.apns_feedback for one time feedback retrieval. Rpush.push no longer checks for feedback (#117, #105).
|
|
518
|
+
- Lazily connect to the APNs only when a notification is to be delivered (#111).
|
|
519
|
+
- Ensure all notifications are sent when using Rpush.push (#107).
|
|
520
|
+
- Fix issue with running Rpush.push more than once in the same process (#106).
|
|
388
521
|
|
|
389
522
|
## 3.1.0 (Jan 26, 2013)
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
523
|
+
|
|
524
|
+
- Rpush.reflect API for fine-grained introspection.
|
|
525
|
+
- Rpush.embed API for embedding Rpush into an existing process.
|
|
526
|
+
- Rpush.push API for using Rpush in scheduled jobs.
|
|
527
|
+
- Fix issue with integration with ActiveScaffold (#98) (@jeffarena).
|
|
528
|
+
- Fix content-available setter for APNs (#95) (@dup2).
|
|
529
|
+
- GCM validation fixes (#96) (@DianthuDia).
|
|
396
530
|
|
|
397
531
|
## 3.0.1 (Dec 16, 2012)
|
|
398
|
-
|
|
532
|
+
|
|
533
|
+
- Fix compatibility with Rails 3.0.x. Fixes #89.
|
|
399
534
|
|
|
400
535
|
## 3.0.0 (Dec 15, 2012)
|
|
401
|
-
* Add support for Google Cloud Messaging.
|
|
402
|
-
* Fix Heroku logging issue.
|
|
403
536
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
537
|
+
- Add support for Google Cloud Messaging.
|
|
538
|
+
- Fix Heroku logging issue.
|
|
539
|
+
|
|
540
|
+
## 2.0.5 (Nov 4, 2012)
|
|
541
|
+
|
|
542
|
+
- Support content-available (#68).
|
|
543
|
+
- Append to log files.
|
|
544
|
+
- Fire a callback when Feedback is received.
|
|
545
|
+
|
|
546
|
+
## 2.0.5.rc1 (Oct 5, 2012)
|
|
547
|
+
|
|
548
|
+
- Release db connections back into the pool after use (#72).
|
|
549
|
+
- Continue to start daemon if a connection cannot be made during startup (#62) (@mattconnolly).
|
|
550
|
+
|
|
551
|
+
## 2.0.4 (Aug 6, 2012)
|
|
552
|
+
|
|
553
|
+
- Don't exit when there aren't any Rpush::App instances, just warn (#55).
|
|
554
|
+
|
|
555
|
+
## 2.0.3 (July 26, 2012)
|
|
556
|
+
|
|
557
|
+
- JRuby support.
|
|
558
|
+
- Explicitly list all attributes instead of calling column_names (#53).
|
|
408
559
|
|
|
409
|
-
## 2.0.
|
|
410
|
-
* Release db connections back into the pool after use (#72).
|
|
411
|
-
* Continue to start daemon if a connection cannot be made during startup (#62) (@mattconnolly).
|
|
560
|
+
## 2.0.2 (July 25, 2012)
|
|
412
561
|
|
|
413
|
-
|
|
414
|
-
|
|
562
|
+
- Support MultiJson < 1.3.0.
|
|
563
|
+
- Make all model attributes accessible.
|
|
415
564
|
|
|
416
|
-
## 2.0.
|
|
417
|
-
* JRuby support.
|
|
418
|
-
* Explicitly list all attributes instead of calling column_names (#53).
|
|
565
|
+
## 2.0.1 (July 7, 2012)
|
|
419
566
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
* Make all model attributes accessible.
|
|
567
|
+
- Fix delivery when using Ruby 1.8.
|
|
568
|
+
- MultiJson support.
|
|
423
569
|
|
|
424
|
-
## 2.0.
|
|
425
|
-
* Fix delivery when using Ruby 1.8.
|
|
426
|
-
* MultiJson support.
|
|
570
|
+
## 2.0.0 (June 19, 2012)
|
|
427
571
|
|
|
428
|
-
|
|
572
|
+
- Support for multiple apps.
|
|
573
|
+
- Hot Updates - add/remove apps without restart.
|
|
574
|
+
- MDM support.
|
|
575
|
+
- Removed rpush.yml in favour of command line options.
|
|
576
|
+
- Started the changelog!
|
|
429
577
|
|
|
430
|
-
|
|
431
|
-
* Hot Updates - add/remove apps without restart.
|
|
432
|
-
* MDM support.
|
|
433
|
-
* Removed rpush.yml in favour of command line options.
|
|
434
|
-
* Started the changelog!
|
|
578
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|