plezi 0.14.0 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/bin/hello_world +2 -1
- data/lib/plezi/controller/controller.rb +2 -2
- data/lib/plezi/version.rb +1 -1
- data/lib/plezi/websockets/message_dispatch.rb +1 -1
- data/plezi.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07be3dac0b13bbf73ca5e0890887e07f41714d04
|
4
|
+
data.tar.gz: 12165bf821d681d1244fe4d66816acd60da1999e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7828a5c7a2b81270eedda66063937aa763bfcd363d1c3e20252bd8a781e54a789bae4533705f531087d5a6824a4388e6ea9d0785bf52e50a6a011d82ef986035
|
7
|
+
data.tar.gz: 95c13086f6e6680ea23dad7e76c631a5428a683a330c1ab30bf481b336efbc427b190ccc090c6c5eb9f98f80ff441dadd9c0354d5c99a1af771a5ded4c87d07e
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
***
|
4
4
|
|
5
|
+
Change log v.0.14.1
|
6
|
+
|
7
|
+
**Update**: update due to Iodine's 0.2.1 version and the deprecation of the `uuid` method (replaced by `conn_id` to minimize collisions).
|
8
|
+
|
9
|
+
***
|
10
|
+
|
5
11
|
Change log v.0.14.0
|
6
12
|
|
7
13
|
Rewrote the whole thing. v. 0.14.0 is a total restart...
|
data/bin/hello_world
CHANGED
@@ -37,7 +37,8 @@ class WebsocketSample
|
|
37
37
|
#
|
38
38
|
# data is a string that contains binary or UTF8 (message dependent) data.
|
39
39
|
def on_message(data)
|
40
|
-
|
40
|
+
puts "Websocket got: #{data}"
|
41
|
+
write ">> #{data}"
|
41
42
|
end
|
42
43
|
|
43
44
|
# called once, AFTER the connection was closed.
|
@@ -120,12 +120,12 @@ module Plezi
|
|
120
120
|
|
121
121
|
# A connection's Plezi ID uniquely identifies the connection across application instances, allowing it to receive and send messages using {#unicast}.
|
122
122
|
def id
|
123
|
-
@_pl_id ||= (
|
123
|
+
@_pl_id ||= (conn_id && "#{::Plezi::Base::MessageDispatch.pid}-#{conn_id.to_s(16)}")
|
124
124
|
end
|
125
125
|
|
126
126
|
# @private
|
127
127
|
# This is the process specific Websocket's UUID. This function is here to protect you from yourself. Don't call it.
|
128
|
-
def
|
128
|
+
def conn_id
|
129
129
|
defined?(super) && super
|
130
130
|
end
|
131
131
|
|
data/lib/plezi/version.rb
CHANGED
data/plezi.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ['lib']
|
29
29
|
|
30
|
-
spec.add_dependency 'iodine', '~> 0.2.
|
30
|
+
spec.add_dependency 'iodine', '~> 0.2.1'
|
31
31
|
# spec.add_dependency 'redcarpet', '> 3.3.0'
|
32
32
|
# spec.add_dependency 'slim', '> 3.0.0'
|
33
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plezi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boaz Segev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: iodine
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.2.
|
19
|
+
version: 0.2.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.2.
|
26
|
+
version: 0.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|