updatebroker 0.0.2 → 0.0.3

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.
@@ -35,7 +35,7 @@ class UpdateBroker < Goliath::API
35
35
 
36
36
  def on_close(env)
37
37
  path = env[Goliath::Request::REQUEST_PATH]
38
- return unless path == "/events"
38
+ return unless path === "/events"
39
39
 
40
40
  channel = env.params[:channel]
41
41
  return if channel.nil? || channel == ""
@@ -43,7 +43,7 @@ class UpdateBroker < Goliath::API
43
43
  env.logger.info "Connection closed, Unsubscribing."
44
44
  unless env['redis'].nil?
45
45
  env['redis'].unsubscribe(channel)
46
- env['redis'].close
46
+ env['redis'].close_connection
47
47
  end
48
48
  end
49
49
 
@@ -1,3 +1,3 @@
1
1
  module Updatebroker
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/updatebroker.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_dependency "hiredis"
23
- s.add_dependency "em-hiredis"
23
+ s.add_dependency "em-hiredis", '~> 0.1.1'
24
24
  s.add_dependency "em-synchrony"
25
25
  s.add_dependency "goliath"
26
26
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: updatebroker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Vince Hodges
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-03-12 00:00:00 -07:00
13
+ date: 2012-03-20 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -30,9 +30,9 @@ dependencies:
30
30
  requirement: &id002 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
- - - ">="
33
+ - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: "0"
35
+ version: 0.1.1
36
36
  type: :runtime
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency