notifiable-rails 0.30.1 → 0.30.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c76ea0f0012104d6ed87d68c40f18b24d10194a0
4
- data.tar.gz: e91903b21118fa27bfb2532a56be94f61b46e9f0
3
+ metadata.gz: 66f8839bae95acf8a49b6720dfec0e4f025f2235
4
+ data.tar.gz: 1e5d49d46622d90f4178f7e646d6e288b43ebe9b
5
5
  SHA512:
6
- metadata.gz: 895cc6172194e39a9fa3e371a3c9ce169dd23ab0fad007f00d30d6a1a3998bc1e285bc3ecbea7e631b1fbe5dbb67a83a55e1f7cd1341faa7d8029004339e0156
7
- data.tar.gz: 6c900119b92b5f7a004a4c27444672c79e862bc172199b18c1e6c67739c71c27277a3b1e65f9e8409231d067363b548ee9825314ad6f0e190a515e3c079c3790
6
+ metadata.gz: 7a438a74429772c94d22975dfef7d9e6651b2d3e4c08f9e75a188e8bc20edc7282a914f72f185e9dbf7df212cf3cd1f6303e1f06cf7c55f464b8b47f0defe6a8
7
+ data.tar.gz: a3d064a3209562e183144d95727b3f2ae0b84529c6cd869ecd7136633da647c547295b7bc619819ddae46b863bb25903203ef2e68ba03d1fc0c4bef374d130e1
@@ -0,0 +1,5 @@
1
+ class AddCategoryToNotifications < ActiveRecord::Migration[4.2]
2
+ def change
3
+ add_column :notifiable_notification_statuses, :error_message, :string
4
+ end
5
+ end
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.30.1"
2
+ VERSION = "0.30.2"
3
3
  end
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.1
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