apple_shove 1.1.1 → 1.1.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.
@@ -52,7 +52,7 @@ module AppleShove
52
52
  @connections.delete key
53
53
  conn.shutdown
54
54
 
55
- Logger.info "destroyed connection to APNS (#{@connections.count} total)", connection
55
+ Logger.info "destroyed connection to APNS (#{@connections.count} total)", conn_name
56
56
  end
57
57
  end
58
58
 
@@ -43,7 +43,13 @@ module AppleShove
43
43
 
44
44
  def self.log(severity, msg, connection, notification)
45
45
  output = ''
46
- output += "#{connection.name}\t" if connection && connection.respond_to?("name")
46
+
47
+ if connection && connection.respond_to?("name")
48
+ output += "#{connection.name}\t"
49
+ elsif connection.kind_of? String
50
+ output += "#{connection}\t"
51
+ end
52
+
47
53
  output += "#{notification.device_token}\t" if notification
48
54
  output += msg
49
55
 
@@ -1,3 +1,3 @@
1
1
  module AppleShove
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_shove
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-21 00:00:00.000000000 Z
12
+ date: 2013-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -155,7 +155,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  segments:
157
157
  - 0
158
- hash: -700148547197933798
158
+ hash: 3767349799964953849
159
159
  required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: -700148547197933798
167
+ hash: 3767349799964953849
168
168
  requirements: []
169
169
  rubyforge_project:
170
170
  rubygems_version: 1.8.24