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: 6613b07622016c00531818ef23c956ce9e5ed4b9
4
- data.tar.gz: 2eb2d9a0ba09a4c2c90dad2c295584f9631e44c4
3
+ metadata.gz: ec7116e297d8711a90c4a10e9d451a556cf21978
4
+ data.tar.gz: 16f079858b43fe36e284d6499ecf9428ace60a01
5
5
  SHA512:
6
- metadata.gz: d867e54750bbe4312761b44926f21c6fd41be2745fd9ceb54335701c80a94311bb626c6aaf926f9dc27ad135355d16847735a1be0148473cd1b2aa9f8e7f6b03
7
- data.tar.gz: aeb795604200c42b35c4d35d48aef972d9ca866a5b88fcd16dbdcfbb678d3c59cc01719cd07bdf26409db37e759973306edf056e0d9bd063c819396e8b78070b
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 id
58
+ J7W1DestroyEndpointWorker.perform_async device_endpoint_arn
59
59
  end
60
60
  <%- end -%>
61
61
  end
@@ -1,7 +1,7 @@
1
1
  class J7W1DestroyEndpointWorker
2
2
  include Sidekiq::Worker
3
3
 
4
- def perform(id)
5
- J7W1ApplicationDevice.find(id).destroy_device_endpoint
4
+ def perform(endpoint_arn)
5
+ J7W1ApplicationDevice.destroy_device_endpoint endpoint_arn
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module J7W1
2
- VERSION = "0.0.21"
2
+ VERSION = "0.0.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: j7w1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - condor