iodine 0.1.18 → 0.1.19

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: f7911b148c188d1f152a742917c38f4f0e6842cd
4
- data.tar.gz: 2b1f3862c8c952d5e81e6f7ab216e048086c1bbd
3
+ metadata.gz: 26fc8c539c88696980b52287e3cbe646333fd1de
4
+ data.tar.gz: 3b0fbe71cc301108ccfe9a92b9e651062c1679a5
5
5
  SHA512:
6
- metadata.gz: 61d0143b7066b7d511e628d33bd5d1f2b098238f883b2a68339ed557344f967eac671ed4f18eb7a7f81851a8c3a5ea6fbbe93bede310420fe640210de090edf4
7
- data.tar.gz: 49f1992df2719f383bbe478efa4bf33be3932dbeca3b06d866a876ba94b00ada59241a08c31fb9522a4d4d361036fdc59284df60961b7095fd24a9fb4980070b
6
+ metadata.gz: b7f048ef6135b596cc0041a28e52e0889a384df22094027058f4b3ef8bc7b132d21f2b48336b7b9fe22c0fb27cf626f62fd162379d563520259572653df5a084
7
+ data.tar.gz: 3860f9850f6a53688d5fbf5920900f7852404047cb4daad09ee46f49a4debf60b48a0da015e2bde5f7626018fb79275a4c93d0419951eab2b7a95d90c2b26280
data/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ Please notice that this change log contains changes for upcoming releases as wel
8
8
 
9
9
  ***
10
10
 
11
+ Change log v.0.1.19
12
+
13
+ **Update**: added the `go_away` method to the Http/1 peorotocol, for seamless connection closeing across Http/2, Http/1 and Websockets.
14
+
15
+ ***
16
+
11
17
  Change log v.0.1.18
12
18
 
13
19
  **Update**: The request now has the shortcut method `Request#host_name` for accessing the host's name (without the port part of the string).
@@ -145,6 +145,11 @@ module Iodine
145
145
  true
146
146
  end
147
147
 
148
+ def go_away error_code
149
+ return false if @io.closed?
150
+ close
151
+ end
152
+
148
153
  protected
149
154
 
150
155
  HTTP_METHODS = %w{GET HEAD POST PUT DELETE TRACE OPTIONS CONNECT PATCH}
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = "0.1.18"
2
+ VERSION = "0.1.19"
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.18
4
+ version: 0.1.19
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-11-30 00:00:00.000000000 Z
11
+ date: 2015-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler