bixby-common 0.6.4 → 0.6.5

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: ece961c015b2b8956cb3ef072f65179bc02c6484
4
- data.tar.gz: ce301ca0ddf424f93877d1f1e5f850565d94cb64
3
+ metadata.gz: 62e56748cb7b2374e6b939aeeb499ccc984fce2b
4
+ data.tar.gz: 0fef427a1d4009f521cc1029fdf8c4b2a7243e1a
5
5
  SHA512:
6
- metadata.gz: 7b52ce15fc832bada40a529105abaed507bfe6537b989656fa51f34c89a3259ca4cad3309ffdb934d1ceee8b232ccac852fc28d4640dfe4bf0c01348bd18d8d0
7
- data.tar.gz: e92f00a22dae6e916f01f47cd64c70995fce4fa79f3e0098d0a1abee09d6e1da049a6fce1aa38524314f064a925a6019b15230b329838e5007ecc1acab1639c7
6
+ metadata.gz: 52971d77105a385fc30036f16dba3297757011f36cbc79c65d2c42e2323c327c8daa9843a052e64a91b4620a9d7d88eb87e42037e02e9d6b9424195c533d8584
7
+ data.tar.gz: 6dd1adb87e7a3b88d65b7c3540d5505e6ce5af9a4a6aab899a1b79186d68cbd922fdab4cec28e4f2121ba40a6b8093b525b1bf9d934597f0e897c527df2a7a94
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.6.5
data/bixby-common.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bixby-common 0.6.4 ruby lib
5
+ # stub: bixby-common 0.6.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bixby-common"
9
- s.version = "0.6.4"
9
+ s.version = "0.6.5"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Chetan Sarva"]
14
- s.date = "2015-04-22"
14
+ s.date = "2015-06-05"
15
15
  s.description = "Bixby Common files/libs"
16
16
  s.email = "chetan@pixelcop.net"
17
17
  s.extra_rdoc_files = [
@@ -76,6 +76,9 @@ module Bixby
76
76
 
77
77
  # Open
78
78
  def open(event)
79
+ if event && !event.target.kind_of?(Faye::WebSocket::Client) then
80
+ logger.debug { "opened connection from #{event.target.env["REMOTE_ADDR"]}" }
81
+ end
79
82
  @connected = true
80
83
  end
81
84
 
@@ -83,6 +86,9 @@ module Bixby
83
86
  #
84
87
  # Can be fired either due to disconnection or failure to connect
85
88
  def close(event)
89
+ if event && !event.target.kind_of?(Faye::WebSocket::Client) then
90
+ logger.debug { "closed connection from #{event.target.env["REMOTE_ADDR"]} (code=#{event.code}; reason=\"#{event.reason}\")" }
91
+ end
86
92
  if @connected then
87
93
  @connected = false
88
94
  @handler.new(nil).disconnect(self)
data/test/helper.rb CHANGED
@@ -10,12 +10,6 @@ end
10
10
 
11
11
  require 'micron/minitest'
12
12
 
13
- begin
14
- require 'curb'
15
- require 'curb_threadpool'
16
- rescue LoadError
17
- end
18
-
19
13
  begin
20
14
  require 'httpclient'
21
15
  rescue LoadError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bixby-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chetan Sarva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
11
+ date: 2015-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bixby-auth