j7w1 0.0.21 → 0.0.22
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec7116e297d8711a90c4a10e9d451a556cf21978
|
|
4
|
+
data.tar.gz: 16f079858b43fe36e284d6499ecf9428ace60a01
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af8e94e9c5cc8c8641cd196fb91b9538adf4389237852cec864ece38e20a2c05cf52060be6c3c810b9d732fb38c67f157afe5638ab8e34c629fd54635d0070a8
|
|
7
|
+
data.tar.gz: d6574dc6fb3a3533f029bd0e8d30efbbda08f8e5ae5f04d9c1d7f48f0e83cda4ceaa3543a5f06cf8fc25a47e35fb4e93bcc2daf0dfad2c7e840a1dc230796ff3
|
|
@@ -34,7 +34,7 @@ class J8W1ApplicationDevice < ActiveRecord::Base
|
|
|
34
34
|
update_attributes! device_endpoint_arn: device_endpoint_arn
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
-
def destroy_device_endpoint
|
|
37
|
+
def self.destroy_device_endpoint(device_arn)
|
|
38
38
|
J7W1::PushClient.destroy_endpoint device_arn
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -46,7 +46,7 @@ class J8W1ApplicationDevice < ActiveRecord::Base
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def destroy_device_endpoint_async
|
|
49
|
-
delay.destroy_device_endpoint
|
|
49
|
+
self.class.delay.destroy_device_endpoint device_endpoint_arn
|
|
50
50
|
end
|
|
51
51
|
<%- elsif options['async_engine'] == 'sidekiq' -%>
|
|
52
52
|
|
|
@@ -55,7 +55,7 @@ class J8W1ApplicationDevice < ActiveRecord::Base
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def destroy_device_endpoint_async
|
|
58
|
-
J7W1DestroyEndpointWorker.perform_async
|
|
58
|
+
J7W1DestroyEndpointWorker.perform_async device_endpoint_arn
|
|
59
59
|
end
|
|
60
60
|
<%- end -%>
|
|
61
61
|
end
|
data/lib/j7w1/version.rb
CHANGED