iodine 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of iodine might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 636347aa715abdbf11841686f90c2880483e914f
4
- data.tar.gz: 73264587c620ce8493c2eb5f9e3c5c229f51a21c
3
+ metadata.gz: 5fa1a23166127d28f5115a2a26d9f1065a0ebbe6
4
+ data.tar.gz: a649b5fcb56decc43c8de19af7d6e8f60a594769
5
5
  SHA512:
6
- metadata.gz: e60f7d4a0f98caaaa8afcf1b4755af8c8e3b4a1878dc62c84071a5f5b3b0a68b5b5c8fa5432750a7c3db35b61d33f7782b0dd43e0bff7c151be8a4cbbc745d5f
7
- data.tar.gz: 4d2a3b8d9f9a77b5352917bbbe4da91577e86e1bb58c580a84b74c9aaa0c1703d6dc4e6506b14026c5a975ab6794bd936ee548061d89c9f48e13949531de15fa
6
+ metadata.gz: fea7a37cad21a33383709ba16af7d871eb6478fec9809aa1a4a562e965bb4f0b2a7193b76548b6c4a5940ac2ef0d0a11561d0c64f0e0d5aa15241b4d81a9764e
7
+ data.tar.gz: dfd9f61e71a8b37d5e76feb234f544797585bd6b46cfecf2ecb253247ed34cb3bc9abc032a1e30e771d15a76e7180bd46a2c28ffa18f244438075df666f2084a
data/CHANGELOG.md CHANGED
@@ -4,11 +4,13 @@
4
4
 
5
5
  Please notice that this change log contains changes for upcoming releases as well. Please refer to the current gem version to review the current release.
6
6
 
7
- **Deprecation Notice**:
7
+ ## Changes:
8
8
 
9
- It is unlikely that Iodine 0.2.0 will support a blocking websocket client API.
9
+ ***
10
10
 
11
- ## Changes:
11
+ Change log v.0.1.7
12
+
13
+ Removed a deprecation notice for blocking API. Client API will remain blocking due to use-case requirements.
12
14
 
13
15
  ***
14
16
 
@@ -22,9 +24,7 @@ Change log v.0.1.6
22
24
 
23
25
  **Deprecation notice**:
24
26
 
25
- Iodine will soon add a core client protocol API and the WebsocketClient will be adjusted to take advantage of that API.
26
-
27
- This will mean that WebsocketClient will no longer block when connecting directly using the `Iodine::Http::WebsocketClient.connect` method... make sure to use `Iodine::Http.ws_connect` and to define an `:on_open` callback.
27
+ (removed after reviewing use-cases).
28
28
 
29
29
  ***
30
30
 
data/lib/iodine/client.rb CHANGED
@@ -1,10 +1,5 @@
1
1
  Iodine.protocol = :client if require('iodine/http') && Iodine.protocol == Iodine::Http::Http1
2
2
 
3
3
  module Iodine
4
- # # Connect to a remote server or network socket
5
- # # this method is defined under the `client` API.
6
- # def connect url, protocol, ssl=false
7
-
8
- # end
9
4
  end
10
5
 
data/lib/iodine/core.rb CHANGED
@@ -35,6 +35,7 @@ module Iodine
35
35
  def force_start!
36
36
  thread = Thread.new { startup true }
37
37
  Kernel.at_exit {thread.raise("stop"); thread.join}
38
+ self
38
39
  end
39
40
 
40
41
  protected
@@ -208,7 +208,6 @@ module Iodine
208
208
  #
209
209
  # @return [Iodine::Http::WebsocketClient] this method returns the connected {Iodine::Http::WebsocketClient} or raises an exception if something went wrong (such as a connection timeout).
210
210
  def self.connect url, options={}, &block
211
- @message ||= Iodine.warn("Deprecation Notice:\nIt is unlikely that Iodine 0.2.0 will support a blocking websocket client API.\nMake sure to use Iodine::Http.ws_connect and define an 'on_open' callback.") && true
212
211
  socket = nil
213
212
  options = options.dup
214
213
  options[:on_message] ||= block
@@ -191,9 +191,6 @@ module Iodine
191
191
  ping if @timeout && !@send_locker.locked? && ( (time - @last_active) > @timeout )
192
192
  end
193
193
 
194
-
195
-
196
-
197
194
  protected
198
195
  # This method is used by Iodine to create the IO handler whenever a new connection is established.
199
196
  #
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iodine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler