j7w1 0.0.5 → 0.0.6

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: d0cf48d1191d9ea076ac76338c26de358d983ef9
4
- data.tar.gz: 477e962ffc5869f21d3d97f8579c937ad2ef3daa
3
+ metadata.gz: d4fca563abd2f742a6f1d4e5e6464394822ef449
4
+ data.tar.gz: 05c7520ab167a866d9b9bb88a34f88ed3464ba74
5
5
  SHA512:
6
- metadata.gz: 860d85c72a4594c02a7f02bc1248232445c8ea24305dbf45c379c4d83da9b083d08a7c5d1a504c245facc5ff3a156f8f58d23c9e5eb9c7ffd9f39446306fa63c
7
- data.tar.gz: ef4f6c8c0df6bbf2dadb76071a2735f1db05e355ad1a4cf9997fcb63865e78edbb79dd9a0d8353276bd765df7b5522c06afd9a4cbcd87fc84c36305467cebb61
6
+ metadata.gz: 1fc3a95a777c0ae8239cc646429397d73c3a6c3bd6ee3be7a3b6a73e3b837e9ecc3a89aedb3db4b8d9f21b3ac2bb332f5ff92fafc4fcd7793a525ce903522cea
7
+ data.tar.gz: 71fa991cef307c2887ef90f797f01ca81d30c44b50db4634789b31eaef493ae2ffd76b20bfb249ec6088a42952d1bbc9794f3c4a661ec079eb247bc2c5409be0
@@ -1,5 +1,5 @@
1
1
  class J7W1ApplicationDevice < ActiveRecord::Base
2
- set_table_name 'j7w1_application_devices'
2
+ self.table_name = 'j7w1_application_devices'
3
3
 
4
4
  belongs_to :owner, polymorphic: true
5
5
 
@@ -11,7 +11,7 @@ class J7W1ApplicationDevice < ActiveRecord::Base
11
11
  after_destroy :destroy_device_endpoint
12
12
  <%- end -%>
13
13
 
14
- scope :identified, -> identifier { where(device_identifier: identifier}
14
+ scope :identified, -> identifier { where(device_identifier: identifier) }
15
15
  scope :on_platform, -> platform { where(platform: J7W1::Util.normalize_platform(platform)) }
16
16
 
17
17
  def push!(options = {})
data/lib/j7_w1/mock.rb CHANGED
@@ -31,9 +31,8 @@ module J7W1
31
31
 
32
32
  module InstanceMethods
33
33
  def push!(options = {})
34
- sns_client = self.create_sns_client
35
34
  aplication_devices.each do |device|
36
- device.push! sns_client, *options
35
+ J7W1::PushClient.push device, options
37
36
  end
38
37
  end
39
38
 
data/lib/j7_w1/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module J7W1
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: j7w1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - condor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-30 00:00:00.000000000 Z
11
+ date: 2013-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk