notifiable-rails 0.30.1 → 0.30.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66f8839bae95acf8a49b6720dfec0e4f025f2235
|
4
|
+
data.tar.gz: 1e5d49d46622d90f4178f7e646d6e288b43ebe9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a438a74429772c94d22975dfef7d9e6651b2d3e4c08f9e75a188e8bc20edc7282a914f72f185e9dbf7df212cf3cd1f6303e1f06cf7c55f464b8b47f0defe6a8
|
7
|
+
data.tar.gz: a3d064a3209562e183144d95727b3f2ae0b84529c6cd869ecd7136633da647c547295b7bc619819ddae46b863bb25903203ef2e68ba03d1fc0c4bef374d130e1
|
@@ -33,9 +33,9 @@ module Notifiable
|
|
33
33
|
|
34
34
|
end
|
35
35
|
|
36
|
-
def processed(device_token, status)
|
36
|
+
def processed(device_token, status, error_message = nil)
|
37
37
|
if @notification.app.save_notification_statuses
|
38
|
-
receipts << {notification_id: self.notification.id, device_token_id: device_token.id, status: status, created_at: DateTime.now}
|
38
|
+
receipts << {notification_id: self.notification.id, device_token_id: device_token.id, status: status, created_at: DateTime.now, error_message: error_message}
|
39
39
|
save_receipts if receipts.count >= Notifiable.notification_status_batch_size
|
40
40
|
end
|
41
41
|
|
data/lib/notifiable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifiable-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.30.
|
4
|
+
version: 0.30.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brooke-Smith
|
@@ -201,6 +201,7 @@ files:
|
|
201
201
|
- db/migrate/201805292135000_add_language_and_country_to_device_tokens.rb
|
202
202
|
- db/migrate/201806182135000_add_thread_id_to_notifications.rb
|
203
203
|
- db/migrate/201806242135000_add_category_to_notifications.rb
|
204
|
+
- db/migrate/201808242135000_add_error_message_to_notification_statuses.rb
|
204
205
|
- lib/generators/notifiable/install/install_generator.rb
|
205
206
|
- lib/generators/notifiable/install/templates/initializer.rb
|
206
207
|
- lib/notifiable.rb
|