cool.io 1.6.0 → 1.6.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
  SHA256:
3
- metadata.gz: 94ede54e6c533f2797e82ae7b41ff37698d19ee77495bbbca264018182243503
4
- data.tar.gz: a4499e09bebe538928c234db948165bd12783c1655e433927c7e44d1a1cb30a5
3
+ metadata.gz: 84dafb950284e75743bcba4114350a7f8cc44804b3ee25c430082d9d0031c559
4
+ data.tar.gz: 1e5e68e4fa0f37b2de36050e40b7904f85c9c44d8ac2dffc4e086a8d1784cf9a
5
5
  SHA512:
6
- metadata.gz: 5d5f64cd406a79a9918a0558b77959792f5bfa67c538108044449ccf37fe87a6fc80421403f6180804a72a6b07ff2366934a5ddc416a99431780bdc24572179c
7
- data.tar.gz: be2a14fb1b3aba5b1624bb65337894bd1ef854f915a04fd4d313889ba0f3af7e8302f7d5ed8df8514bebac25f733f88be0a577aac4d40c3fb29407d6ea55d204
6
+ metadata.gz: 4d82eef066ebb74147283ce08d54f34946c37b64b52c2f2fdcae36ad393f38b61701b622cdc39cbb9dec9a981d870b722bfcedec8de082d2b2fa36d9a7dbfeaf
7
+ data.tar.gz: fc20a2949c133b2801ce2fd2928eaadea71840062079bafec7b19d5ba11d8db9bab57b162f0ea5c82b40828c93b753e02ccbc7964c805bcd6bdf81f948b0f78b
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 1.6.1
2
+ -----
3
+
4
+ * Fix warning for recent compilers
5
+
1
6
  1.6.0
2
7
  -----
3
8
 
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.summary = "A cool framework for doing high performance I/O in Ruby"
12
12
  s.description = "Cool.io provides a high performance event framework for Ruby which uses the libev C library"
13
13
  s.extensions = ["ext/cool.io/extconf.rb", "ext/iobuffer/extconf.rb"]
14
+ s.licenses = ["MIT"]
14
15
 
15
16
  s.files = `git ls-files`.split("\n")
16
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -18,7 +19,7 @@ Gem::Specification.new do |s|
18
19
  s.require_paths = ["lib"]
19
20
 
20
21
  s.add_development_dependency "rake-compiler", "~> 1.0"
21
- s.add_development_dependency "rake-compiler-dock", "~> 0.6.0"
22
+ s.add_development_dependency "rake-compiler-dock", "~> 1.0"
22
23
  s.add_development_dependency "rspec", ">= 2.13.0"
23
24
  s.add_development_dependency "rdoc", ">= 3.6.0"
24
25
  end
@@ -8,7 +8,11 @@
8
8
  #define COOLIO_H
9
9
 
10
10
  #include "ruby.h"
11
+ #if defined(HAVE_RUBY_IO_H)
12
+ #include "ruby/io.h"
13
+ #else
11
14
  #include "rubyio.h"
15
+ #endif
12
16
 
13
17
  #ifdef GetReadFile
14
18
  #define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr)))
@@ -56,4 +60,11 @@ struct Coolio_Watcher
56
60
 
57
61
  void Coolio_Loop_process_event(VALUE watcher, int revents);
58
62
 
63
+ void Init_coolio_loop();
64
+ void Init_coolio_watcher();
65
+ void Init_coolio_iowatcher();
66
+ void Init_coolio_timer_watcher();
67
+ void Init_coolio_stat_watcher();
68
+ void Init_coolio_utils();
69
+
59
70
  #endif
@@ -10,6 +10,14 @@ have_func('rb_thread_alone')
10
10
  have_func('rb_str_set_len')
11
11
  have_library('rt', 'clock_gettime')
12
12
 
13
+ if have_header('ruby/io.h')
14
+ $defs << '-DHAVE_RUBY_IO_H'
15
+ end
16
+
17
+ if have_header('ruby/thread.h')
18
+ $defs << '-DHAVE_RUBY_THREAD_H'
19
+ end
20
+
13
21
  if have_header('sys/select.h')
14
22
  $defs << '-DEV_USE_SELECT'
15
23
  end
@@ -5,7 +5,11 @@
5
5
  */
6
6
 
7
7
  #include "ruby.h"
8
+ #if defined(HAVE_RUBY_IO_H)
9
+ #include "ruby/io.h"
10
+ #else
8
11
  #include "rubyio.h"
12
+ #endif
9
13
 
10
14
  #include "ev_wrap.h"
11
15
 
@@ -15,6 +15,11 @@
15
15
  #include <sys/sysctl.h>
16
16
  #endif
17
17
 
18
+ #ifdef HAVE_SYSCTLBYNAME
19
+ #include <sys/sysctl.h>
20
+ #include <sys/types.h>
21
+ #endif
22
+
18
23
  static VALUE mCoolio = Qnil;
19
24
  static VALUE cCoolio_Utils = Qnil;
20
25
 
@@ -39,6 +39,9 @@
39
39
 
40
40
  /* ########## COOLIO PATCHERY HO! ########## */
41
41
  #include "ruby.h"
42
+ #if defined(HAVE_RUBY_THREAD_H)
43
+ #include "ruby/thread.h"
44
+ #endif
42
45
  /* ######################################## */
43
46
 
44
47
  /* this big block deduces configuration from config.h */
@@ -1,5 +1,5 @@
1
1
  module Coolio
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cool.io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-01-24 00:00:00.000000000 Z
12
+ date: 2020-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.6.0
34
+ version: '1.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.6.0
41
+ version: '1.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rspec
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,8 @@ files:
154
154
  - spec/unix_listener_spec.rb
155
155
  - spec/unix_server_spec.rb
156
156
  homepage: http://coolio.github.com
157
- licenses: []
157
+ licenses:
158
+ - MIT
158
159
  metadata: {}
159
160
  post_install_message:
160
161
  rdoc_options: []