rpush 9.1.0 → 9.2.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 +7 -1
- data/README.md +2 -1
- data/lib/generators/templates/rpush.rb +0 -5
- data/lib/rpush/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6aa3ab521c672b61e3230b036cfd89a6e06b9dc121fcdc85a41f7a055ce2a920
|
4
|
+
data.tar.gz: 9d42f3ef5e450aba1f453c75099b76be603f7592bcbe2af36f69b69c002bda43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4446b6923428bf5e8c4ce534ddf768be70adb0efe02e539ec783e0807f74acd4220059f36003d2a6100b7feea653f4bf442ec51b76d5f89372c8bf9fa512e7df
|
7
|
+
data.tar.gz: 44bc79e6df91d48a1ff421c06aac8d5c27e5797d588fd8b426bc37b3b8878f79176499f6f78eca597c9b26eff81ca9a377efe00211381f35b08a6ae95b852d19
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
|
3
3
|
## [Unreleased](https://github.com/rpush/rpush/tree/HEAD)
|
4
4
|
|
5
|
-
[Full Changelog](https://github.com/rpush/rpush/compare/v9.
|
5
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v9.2.0...HEAD)
|
6
|
+
|
7
|
+
## [v9.2.0](https://github.com/rpush/rpush/tree/v9.2.0) (2024-11-28)
|
8
|
+
|
9
|
+
* Support for Rails 7.2 [\#706](https://github.com/rpush/rpush/pull/706) ([benlangfeld](https://github.com/benlangfeld))
|
10
|
+
|
11
|
+
[Full Changelog](https://github.com/rpush/rpush/compare/v9.1.0...v9.2.0)
|
6
12
|
|
7
13
|
## [v9.1.0](https://github.com/rpush/rpush/tree/v9.1.0) (2024-09-24)
|
8
14
|
|
data/README.md
CHANGED
@@ -128,7 +128,7 @@ The app `environment` for any Apns* option is "development" for XCode installs,
|
|
128
128
|
#### Firebase Cloud Messaging
|
129
129
|
|
130
130
|
You will need two params to make use of FCM via Rpush.
|
131
|
-
- `firebase_project_id` - The `Project
|
131
|
+
- `firebase_project_id` - The `Project number` in your Firebase Project Settings
|
132
132
|
- `json_key` - The JSON key file for a service account with the `Firebase Admin SDK Administrator Service Agent` role.
|
133
133
|
|
134
134
|
Create service account in the google cloud account attached to your firebase account:
|
@@ -151,6 +151,7 @@ fcm_app.save!
|
|
151
151
|
n = Rpush::Fcm::Notification.new
|
152
152
|
n.app = Rpush::Fcm::App.where(name: "fcm_app").first
|
153
153
|
n.device_token = device_token # Note that device_token is used here instead of registration_ids
|
154
|
+
n.notification = { title: "push title", body: "hi mom!" } # either title or body needs to be set, or nothing goes through
|
154
155
|
n.data = {}.transform_values(&:to_s) # All values going in here have to be strings, if you have anything else - nothing goes through
|
155
156
|
n.save!
|
156
157
|
```
|
@@ -85,11 +85,6 @@ Rpush.reflect do |on|
|
|
85
85
|
# on.fcm_failed_to_recipient do |notification, error|
|
86
86
|
# end
|
87
87
|
|
88
|
-
# Called when the FCM returns a failure that indicates an invalid device token.
|
89
|
-
# You will need to delete the device token from your records.
|
90
|
-
# on.fcm_invalid_device_token do |app, error, device_token|
|
91
|
-
# end
|
92
|
-
|
93
88
|
# Called for each recipient which successfully receives a notification. This
|
94
89
|
# can occur more than once for the same notification when there are multiple
|
95
90
|
# recipients.
|
data/lib/rpush/version.rb
CHANGED
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: 9.
|
4
|
+
version: 9.2.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: 2024-
|
11
|
+
date: 2024-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -82,9 +82,12 @@ dependencies:
|
|
82
82
|
- - "!="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: 7.1.4
|
85
|
-
- - "
|
85
|
+
- - "!="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: 7.2.0
|
88
|
+
- - "!="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 7.2.1
|
88
91
|
type: :runtime
|
89
92
|
prerelease: false
|
90
93
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -95,9 +98,12 @@ dependencies:
|
|
95
98
|
- - "!="
|
96
99
|
- !ruby/object:Gem::Version
|
97
100
|
version: 7.1.4
|
98
|
-
- - "
|
101
|
+
- - "!="
|
99
102
|
- !ruby/object:Gem::Version
|
100
103
|
version: 7.2.0
|
104
|
+
- - "!="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 7.2.1
|
101
107
|
- !ruby/object:Gem::Dependency
|
102
108
|
name: thor
|
103
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -784,7 +790,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
784
790
|
- !ruby/object:Gem::Version
|
785
791
|
version: '0'
|
786
792
|
requirements: []
|
787
|
-
rubygems_version: 3.
|
793
|
+
rubygems_version: 3.4.19
|
788
794
|
signing_key:
|
789
795
|
specification_version: 4
|
790
796
|
summary: The push notification service for Ruby.
|