bixby-common 0.6.4 → 0.6.5
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bixby-common.gemspec +3 -3
- data/lib/bixby-common/websocket/api_channel.rb +6 -0
- data/test/helper.rb +0 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62e56748cb7b2374e6b939aeeb499ccc984fce2b
|
4
|
+
data.tar.gz: 0fef427a1d4009f521cc1029fdf8c4b2a7243e1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52971d77105a385fc30036f16dba3297757011f36cbc79c65d2c42e2323c327c8daa9843a052e64a91b4620a9d7d88eb87e42037e02e9d6b9424195c533d8584
|
7
|
+
data.tar.gz: 6dd1adb87e7a3b88d65b7c3540d5505e6ce5af9a4a6aab899a1b79186d68cbd922fdab4cec28e4f2121ba40a6b8093b525b1bf9d934597f0e897c527df2a7a94
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
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.
|
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.
|
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-
|
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
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
|
+
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-
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bixby-auth
|