iodine 0.3.0 → 0.3.1

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: ca71a751e0fec40a40f656630455dabd2c8b7fce
4
- data.tar.gz: d80446503accae4cca189bdd7526571f8fb5c5a9
3
+ metadata.gz: 7e3ddbf483aa0ab73fed51479f6c533dbb063915
4
+ data.tar.gz: 10723ec370f151f12b83e8ef852af4ecb3e47d64
5
5
  SHA512:
6
- metadata.gz: c4fa45b4c91496c28cf85136b5ca15479d4ef6f615a29a688fe279d7258fae33ab5c7c4c48cf13676ef1b337c4d4e8efb5a2c9bf43d86bf8fe7ea8c628f5ee00
7
- data.tar.gz: f3a404f09c1eb2a1cb0d18130ed06001e3831f0483c4b1d0c0a90d98dae863f896cc6ef7e4418c71b6cbf32455b341a245b5294688a86b036f7a7f9e6e3eba11
6
+ metadata.gz: 58849c50fb0e57cb9daaa627062e2ae9daba4f09967631451a032d9744f3ef7605e6c13466b0d4a6d77a121747785a3b4f55ef5dbf1272fc2cc1ee63a62eb7f8
7
+ data.tar.gz: d0cf627173088a6aa0ca3cfbef78499673978b571d9b79799a7e81cf7af6eded7e02b467b1a4be27d1105bac568a222e3303792db989747827620ebce557a87f
@@ -8,6 +8,14 @@ Please notice that this change log contains changes for upcoming releases as wel
8
8
 
9
9
  ***
10
10
 
11
+ #### Change log v.0.3.1
12
+
13
+ **Fix**: Fixed a minor issue with the logging of responses where the size of the response is unknown (streamed).
14
+
15
+ **Gem Specification update**: We updated the gem specification to allow for Rack 1.x users and to update the gem description.
16
+
17
+ ***
18
+
11
19
  #### Change log v.0.3.0
12
20
 
13
21
  **`facil.io` C Core Update**: The C library core that drives Iodine [`facil.io`](http://facil.io) was updated to version 0.4.0 and Iodine follows closely on the heels of this update. The transition was easy enough and the API remains unchanged... but because the performance gain was so big and because it's a new code base, we opted to bump the minor release version.
@@ -436,7 +436,7 @@ prints out the log to stderr.
436
436
  */
437
437
  static void http_response_log_finish(http_response_s *response) {
438
438
  http_request_s *request = response->request;
439
- uintptr_t bytes_sent = response->content_length;
439
+ intptr_t bytes_sent = response->content_length;
440
440
 
441
441
  size_t mili =
442
442
  response->logged
@@ -523,7 +523,12 @@ static void http_response_log_finish(http_response_s *response) {
523
523
  : 0);
524
524
 
525
525
  buffer[pos++] = ' ';
526
- pos += http_ul2a(buffer + pos, bytes_sent);
526
+ if (bytes_sent > 0)
527
+ pos += http_ul2a(buffer + pos, bytes_sent);
528
+ else {
529
+ buffer[pos++] = '-';
530
+ buffer[pos++] = '-';
531
+ }
527
532
  if (response->logged) {
528
533
  buffer[pos++] = ' ';
529
534
  pos += http_ul2a(buffer + pos, mili);
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
7
7
  spec.name = 'iodine'
8
8
  spec.version = Iodine::VERSION
9
9
  spec.authors = ['Boaz Segev']
10
- spec.email = ['Boaz@2be.co.il']
10
+ spec.email = ['bo@plezi.io']
11
11
 
12
- spec.summary = ' Iodine - leveraging C for Ruby servers.'
13
- spec.description = ' Iodine - leveraging C for Ruby servers.'
12
+ spec.summary = ' Iodine - HTTP / Websocket Server & EventMachine alternative for Ruby MRI - a kqueue/epoll C extension.'
13
+ spec.description = ' Iodine - HTTP / Websocket Server & EventMachine alternative for Ruby MRI - a kqueue/epoll C extension.'
14
14
  spec.homepage = 'https://github.com/boazsegev/iodine'
15
15
  spec.license = 'MIT'
16
16
 
@@ -29,19 +29,19 @@ Gem::Specification.new do |spec|
29
29
 
30
30
  spec.extensions = %w(ext/iodine/extconf.rb)
31
31
 
32
- spec.required_ruby_version = '>= 2.2.2' # for Rack
32
+ spec.required_ruby_version = '>= 2.2.2' # Because earlier versions had been discontinued
33
33
 
34
- spec.add_dependency 'rack', '>= 2'
34
+ spec.add_dependency 'rack'
35
35
  spec.add_dependency 'rake-compiler', '>= 1'
36
36
 
37
37
  spec.requirements << 'A Unix based system: Linux / macOS / BSD.'
38
38
  spec.requirements << 'An updated C compiler.'
39
- spec.requirements << 'Ruby >= 2.2.2 required for Rack.'
40
- spec.requirements << 'Ruby >= 2.3.0 recommended.'
39
+ spec.requirements << 'Ruby >= 2.2.2 required for Rack 2.'
40
+ spec.requirements << 'Ruby >= 2.4.0 recommended.'
41
41
 
42
- spec.add_development_dependency 'bundler', '~> 1.10'
42
+ spec.add_development_dependency 'bundler', '>= 1.10'
43
43
  spec.add_development_dependency 'rake', '~> 12.0'
44
- spec.add_development_dependency 'minitest', '>=1'
44
+ spec.add_development_dependency 'minitest', '>=5'
45
45
 
46
46
  # spec.post_install_message = "** WARNING!\n" \
47
47
  # "Iodine 0.2.0 is NOT an upgrade - it's a total rewrite, it's written in C specifically for Ruby MRI.\n\n" \
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iodine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2'
19
+ version: '0'
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: '2'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.10'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.10'
55
55
  - !ruby/object:Gem::Dependency
@@ -72,17 +72,18 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1'
75
+ version: '5'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1'
83
- description: " Iodine - leveraging C for Ruby servers."
82
+ version: '5'
83
+ description: " Iodine - HTTP / Websocket Server & EventMachine alternative for Ruby
84
+ MRI - a kqueue/epoll C extension."
84
85
  email:
85
- - Boaz@2be.co.il
86
+ - bo@plezi.io
86
87
  executables:
87
88
  - iodine
88
89
  extensions:
@@ -204,11 +205,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
205
  requirements:
205
206
  - 'A Unix based system: Linux / macOS / BSD.'
206
207
  - An updated C compiler.
207
- - Ruby >= 2.2.2 required for Rack.
208
- - Ruby >= 2.3.0 recommended.
208
+ - Ruby >= 2.2.2 required for Rack 2.
209
+ - Ruby >= 2.4.0 recommended.
209
210
  rubyforge_project:
210
211
  rubygems_version: 2.6.11
211
212
  signing_key:
212
213
  specification_version: 4
213
- summary: Iodine - leveraging C for Ruby servers.
214
+ summary: Iodine - HTTP / Websocket Server & EventMachine alternative for Ruby MRI
215
+ - a kqueue/epoll C extension.
214
216
  test_files: []