notifiable-rails 0.15.3 → 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83b57f3c9bf7316dfd03fd35f33ab946757bae77
4
- data.tar.gz: 74b884fe096cdb15ef63c051d33743c06019cd28
3
+ metadata.gz: f30aedea3e880227ba64bf3903eb10482359bf2a
4
+ data.tar.gz: 21a45a11188525573f4ab3af52fce37e57861a24
5
5
  SHA512:
6
- metadata.gz: a43e0b1d07bc1101b373c54295942826580d063d1534c555c5ed748663d661cdc34160452f1b212f9d0e1fdf96a99f149ebb68184e9baca6959465344748b198
7
- data.tar.gz: 849f950abc4c4735d9efd34b66ae7fc40c3aa0fd98c33143319e5219088cf6f35f40702d6a10a051b25151abe456ab680d4e623dd63b19521ebf059005d569f0
6
+ metadata.gz: 8319edde506a4ba27665679ee7f95a732b08e853307d5bdbbed9c35427a0d83b70cbebdc943fd3b7472233762ab0bd8ee7a75ed700c7923fc509eb40ddeacf40
7
+ data.tar.gz: b2b2532fe66bf77736aa14c5cda7787996b37206209af47eaa573cd8d8f291a48103aedd28049115fa83145c3acaa4438bf32d360f2200c5e63ce3b1ccc56c31
@@ -6,7 +6,7 @@ module Notifiable
6
6
 
7
7
  def send_notification(notification, device_token)
8
8
  # todo - add before hook
9
- enqueue(notification, device_token, custom_params(notification))
9
+ enqueue(notification, device_token, notification.message, custom_params(notification))
10
10
  # todo - add after hook
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module Notifiable
2
- VERSION = "0.15.3"
2
+ VERSION = "0.16.0"
3
3
  end
data/spec/batch_spec.rb CHANGED
@@ -57,7 +57,7 @@ end
57
57
  class ConfigurableMockNotifier < Notifiable::NotifierBase
58
58
  attr_accessor :use_sandbox
59
59
 
60
- def enqueue(notification, device_token, params)
60
+ def enqueue(notification, device_token, message, params)
61
61
  processed(notification, device_token, 0)
62
62
  end
63
63
  end
data/spec/spec_helper.rb CHANGED
@@ -42,7 +42,7 @@ RSpec.configure do |config|
42
42
  end
43
43
 
44
44
  class MockNotifier < Notifiable::NotifierBase
45
- def enqueue(notification, device_token, params)
45
+ def enqueue(notification, device_token, message, params)
46
46
  processed(notification, device_token, 200)
47
47
  end
48
48
  end