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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0ec77845c19054f8f3ded8e4ee36f80b9ef5c16
4
- data.tar.gz: fca528a70e26a270a600779a5998371f55c83bfd
3
+ metadata.gz: 07be3dac0b13bbf73ca5e0890887e07f41714d04
4
+ data.tar.gz: 12165bf821d681d1244fe4d66816acd60da1999e
5
5
  SHA512:
6
- metadata.gz: 8e5d7edbd9c0c078094905ae49bb701e20a71c988a0cd712424bb049b46dba7b3e5225b2d0ef38526b786b976bc39d220fbf272a5393b2f43d6ea370345edc53
7
- data.tar.gz: 3b6940cb92999d6462db8739b710eb0472e18cfdd2a737b1da91b20300689e57380e3821632f599179643f37c49ed57c76b4862f055c4ddf6004cc883e0dfc14
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
- Plezi.info "Websocket got: #{data}"
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 ||= (uuid && "#{::Plezi::Base::MessageDispatch.pid}-#{uuid.to_s(16)}")
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 uuid
128
+ def conn_id
129
129
  defined?(super) && super
130
130
  end
131
131
 
data/lib/plezi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plezi
2
- VERSION = '0.14.0'.freeze
2
+ VERSION = '0.14.1'.freeze
3
3
  end
@@ -13,7 +13,7 @@ module Plezi
13
13
  module_function
14
14
 
15
15
  def pid
16
- @uuid ||= SecureRandom.urlsafe_base64.tap { |str| @prefix_len = str.length }
16
+ @pid ||= SecureRandom.urlsafe_base64.tap { |str| @prefix_len = str.length }
17
17
  end
18
18
 
19
19
  def _init
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.0'
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.0
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-18 00:00:00.000000000 Z
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.0
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.0
26
+ version: 0.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement