rpush 5.4.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -0
  3. data/README.md +3 -3
  4. data/lib/generators/templates/add_adm.rb +1 -1
  5. data/lib/generators/templates/add_alert_is_json_to_rapns_notifications.rb +2 -2
  6. data/lib/generators/templates/add_app_to_rapns.rb +2 -2
  7. data/lib/generators/templates/add_fail_after_to_rpush_notifications.rb +1 -1
  8. data/lib/generators/templates/add_gcm.rb +7 -21
  9. data/lib/generators/templates/add_rpush.rb +29 -79
  10. data/lib/generators/templates/add_wpns.rb +1 -1
  11. data/lib/generators/templates/create_rapns_apps.rb +1 -1
  12. data/lib/generators/templates/create_rapns_feedback.rb +3 -9
  13. data/lib/generators/templates/create_rapns_notifications.rb +3 -9
  14. data/lib/generators/templates/rename_rapns_to_rpush.rb +9 -33
  15. data/lib/generators/templates/rpush.rb +1 -4
  16. data/lib/generators/templates/rpush_2_0_0_updates.rb +10 -18
  17. data/lib/generators/templates/rpush_2_1_0_updates.rb +1 -1
  18. data/lib/generators/templates/rpush_2_6_0_updates.rb +1 -1
  19. data/lib/generators/templates/rpush_2_7_0_updates.rb +1 -1
  20. data/lib/generators/templates/rpush_3_0_0_updates.rb +1 -1
  21. data/lib/generators/templates/rpush_3_0_1_updates.rb +1 -1
  22. data/lib/generators/templates/rpush_3_1_0_add_pushy.rb +1 -1
  23. data/lib/generators/templates/rpush_3_1_1_updates.rb +1 -1
  24. data/lib/generators/templates/rpush_3_2_0_add_apns_p8.rb +1 -1
  25. data/lib/generators/templates/rpush_3_2_4_updates.rb +1 -1
  26. data/lib/generators/templates/rpush_3_3_0_updates.rb +1 -1
  27. data/lib/generators/templates/rpush_3_3_1_updates.rb +1 -1
  28. data/lib/generators/templates/rpush_4_1_0_updates.rb +1 -1
  29. data/lib/generators/templates/rpush_4_1_1_updates.rb +1 -1
  30. data/lib/generators/templates/rpush_4_2_0_updates.rb +1 -1
  31. data/lib/rpush/client/active_model/apns/app.rb +1 -17
  32. data/lib/rpush/client/active_model/apns/notification.rb +4 -0
  33. data/lib/rpush/client/active_model/apns2/app.rb +7 -1
  34. data/lib/rpush/client/active_model/certificate_private_key_validator.rb +19 -0
  35. data/lib/rpush/client/active_model/webpush/notification.rb +1 -1
  36. data/lib/rpush/client/active_model.rb +1 -0
  37. data/lib/rpush/daemon/apns2/delivery.rb +1 -0
  38. data/lib/rpush/daemon/apnsp8/delivery.rb +7 -1
  39. data/lib/rpush/daemon/store/active_record.rb +11 -7
  40. data/lib/rpush/daemon/store/redis.rb +6 -6
  41. data/lib/rpush/daemon/string_helpers.rb +1 -1
  42. data/lib/rpush/logger.rb +1 -1
  43. data/lib/rpush/version.rb +3 -3
  44. data/spec/functional/apns2_spec.rb +4 -2
  45. data/spec/functional/retry_spec.rb +1 -1
  46. data/spec/functional/webpush_spec.rb +1 -0
  47. data/spec/spec_helper.rb +1 -1
  48. data/spec/support/active_record_setup.rb +4 -3
  49. data/spec/support/config/database.yml +4 -4
  50. data/spec/support/simplecov_helper.rb +1 -1
  51. data/spec/unit/client/active_record/apns/notification_spec.rb +1 -1
  52. data/spec/unit/client/active_record/apns2/app_spec.rb +1 -0
  53. data/spec/unit/client/active_record/apns2/notification_spec.rb +1 -1
  54. data/spec/unit/client/redis/apns/notification_spec.rb +1 -1
  55. data/spec/unit/client/redis/apns2/notification_spec.rb +1 -1
  56. data/spec/unit/client/shared/apns/notification.rb +15 -0
  57. data/spec/unit/daemon/apnsp8/delivery_spec.rb +53 -0
  58. data/spec/unit/daemon/store/active_record_spec.rb +7 -0
  59. metadata +15 -11
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.0
4
+ version: 7.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-02-15 00:00:00.000000000 Z
11
+ date: 2022-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '5.0'
81
+ version: '5.2'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: '5.0'
88
+ version: '5.2'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: thor
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -292,16 +292,16 @@ dependencies:
292
292
  name: rubocop
293
293
  requirement: !ruby/object:Gem::Requirement
294
294
  requirements:
295
- - - ">="
295
+ - - "~>"
296
296
  - !ruby/object:Gem::Version
297
- version: '0'
297
+ version: 1.12.0
298
298
  type: :development
299
299
  prerelease: false
300
300
  version_requirements: !ruby/object:Gem::Requirement
301
301
  requirements:
302
- - - ">="
302
+ - - "~>"
303
303
  - !ruby/object:Gem::Version
304
- version: '0'
304
+ version: 1.12.0
305
305
  - !ruby/object:Gem::Dependency
306
306
  name: rubocop-performance
307
307
  requirement: !ruby/object:Gem::Requirement
@@ -428,6 +428,7 @@ files:
428
428
  - lib/rpush/client/active_model/apns2/notification.rb
429
429
  - lib/rpush/client/active_model/apnsp8/app.rb
430
430
  - lib/rpush/client/active_model/apnsp8/notification.rb
431
+ - lib/rpush/client/active_model/certificate_private_key_validator.rb
431
432
  - lib/rpush/client/active_model/gcm/app.rb
432
433
  - lib/rpush/client/active_model/gcm/expiry_collapse_key_mutual_inclusion_validator.rb
433
434
  - lib/rpush/client/active_model/gcm/notification.rb
@@ -650,6 +651,7 @@ files:
650
651
  - spec/unit/daemon/apns/certificate_expired_error_spec.rb
651
652
  - spec/unit/daemon/apns/delivery_spec.rb
652
653
  - spec/unit/daemon/apns/feedback_receiver_spec.rb
654
+ - spec/unit/daemon/apnsp8/delivery_spec.rb
653
655
  - spec/unit/daemon/app_runner_spec.rb
654
656
  - spec/unit/daemon/batch_spec.rb
655
657
  - spec/unit/daemon/delivery_error_spec.rb
@@ -691,8 +693,9 @@ metadata:
691
693
  bug_tracker_uri: https://github.com/rpush/rpush/issues
692
694
  changelog_uri: https://github.com/rpush/rpush/blob/master/CHANGELOG.md
693
695
  source_code_uri: https://github.com/rpush/rpush
696
+ rubygems_mfa_required: 'true'
694
697
  post_install_message: |
695
- When upgrading, don't forget to run `bundle exec rpush init` to get all the latest migrations.
698
+ When upgrading Rpush, don't forget to run `bundle exec rpush init` to get all the latest migrations.
696
699
 
697
700
  For details on this specific release, refer to the CHANGELOG.md file.
698
701
  https://github.com/rpush/rpush/blob/master/CHANGELOG.md
@@ -703,14 +706,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
703
706
  requirements:
704
707
  - - ">="
705
708
  - !ruby/object:Gem::Version
706
- version: 2.3.0
709
+ version: 2.4.0
707
710
  required_rubygems_version: !ruby/object:Gem::Requirement
708
711
  requirements:
709
712
  - - ">="
710
713
  - !ruby/object:Gem::Version
711
714
  version: '0'
712
715
  requirements: []
713
- rubygems_version: 3.1.4
716
+ rubygems_version: 3.3.5
714
717
  signing_key:
715
718
  specification_version: 4
716
719
  summary: The push notification service for Ruby.
@@ -803,6 +806,7 @@ test_files:
803
806
  - spec/unit/daemon/apns/certificate_expired_error_spec.rb
804
807
  - spec/unit/daemon/apns/delivery_spec.rb
805
808
  - spec/unit/daemon/apns/feedback_receiver_spec.rb
809
+ - spec/unit/daemon/apnsp8/delivery_spec.rb
806
810
  - spec/unit/daemon/app_runner_spec.rb
807
811
  - spec/unit/daemon/batch_spec.rb
808
812
  - spec/unit/daemon/delivery_error_spec.rb