apple_shove 1.1.0 → 1.1.1

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.
@@ -32,12 +32,12 @@ module AppleShove
32
32
  def send(notification)
33
33
  message = notification.binary_message
34
34
 
35
- if @last_used && Time.now - @last_used > CONFIG[:reconnect_timer] * 60
36
- Logger.info("refreshing connection", self, notification)
37
- reconnect
38
- end
39
-
40
35
  begin
36
+ if @last_used && Time.now - @last_used > CONFIG[:reconnect_timer] * 60
37
+ Logger.info("refreshing connection", self, notification)
38
+ reconnect
39
+ end
40
+
41
41
  socket.write message
42
42
  rescue Errno::EPIPE
43
43
  Logger.warn("broken pipe. reconnecting.", self, notification)
@@ -1,3 +1,3 @@
1
1
  module AppleShove
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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.0
4
+ version: 1.1.1
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-20 00:00:00.000000000 Z
12
+ date: 2013-05-21 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: 2826984217209674541
158
+ hash: -700148547197933798
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: 2826984217209674541
167
+ hash: -700148547197933798
168
168
  requirements: []
169
169
  rubyforge_project:
170
170
  rubygems_version: 1.8.24