sleepy_penguin 3.5.1 → 3.5.2

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: 6412db053027f4ab0d6c29a0053051608ae2a49d8e181198ffbf883a6bb31b19
4
- data.tar.gz: 77e2b0dc6cc44e4f9f8f9fbd0b3c8739ccb0727882d27416404ad597f4029827
3
+ metadata.gz: 4872ec6b37073cc05c185ef860ab5b68c00b9cc3ec22f9fbb3db25e7175237aa
4
+ data.tar.gz: 6b6c606de834fade8650a831a791de2a85119cee038d571efdc1b5da77f0248f
5
5
  SHA512:
6
- metadata.gz: 24fbb2975efd8e9ad6ab515775510ecd3337ad8652aabc744a9ea99564e27a78f11985d0d4458c6a945d8365dbb5e81679204918ca5e61db71acac387d1e4188
7
- data.tar.gz: 8f136eadb671aa24916eed1fd8daa553a9ab077462fe0361f9a29413f713066453ad853b470da5c2b3b5b15d35b2468cec3de1413507e59592c35aac0a217c28
6
+ metadata.gz: 9e4dcbada097851753a76b75609dd9c4e3a996092d763b4d5b419ff9d240fd2b3cf620035c07afd220b5f2abdc87072b2c485096a94a99dd1934aae388e31b43
7
+ data.tar.gz: 742cb40f0f7ec2d08457a9a729b8d08e006e36c239e38cfdd3574982a185dace9d4853f055cbaa1353dd837194e924499c785a4d24d8ccbc1e31d4d756c47c09
@@ -1,6 +1,6 @@
1
1
  ---
2
- cgit_url: https://bogomips.org/sleepy_penguin.git
3
- git_url: https://bogomips.org/sleepy_penguin.git
4
- rdoc_url: https://bogomips.org/sleepy_penguin/
5
- ml_url: https://bogomips.org/sleepy-penguin/
6
- public_email: sleepy-penguin@bogomips.org
2
+ cgit_url: https://yhbt.net/sleepy_penguin.git
3
+ git_url: https://yhbt.net/sleepy_penguin.git
4
+ rdoc_url: https://yhbt.net/sleepy_penguin/
5
+ ml_url: https://yhbt.net/sleepy-penguin/
6
+ public_email: sleepy-penguin@yhbt.net
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
 
3
3
  GVF=GIT-VERSION-FILE
4
- DEF_VER=v3.5.1
4
+ DEF_VER=v3.5.2
5
5
  GVH=ext/sleepy_penguin/git_version.h
6
6
 
7
7
  LF='
@@ -1,5 +1,5 @@
1
1
  all::
2
- RSYNC_DEST := bogomips.org:/srv/bogomips/sleepy_penguin
2
+ RSYNC_DEST := yhbt.net:/srv/yhbt/sleepy_penguin
3
3
  rfpackage := sleepy_penguin
4
4
  include pkg.mk
5
5
  pkg_extra += ext/sleepy_penguin/git_version.h
data/README CHANGED
@@ -31,7 +31,7 @@ If you use RubyGems:
31
31
 
32
32
  Otherwise grab the latest tarball from:
33
33
 
34
- https://bogomips.org/sleepy_penguin/files/
34
+ https://yhbt.net/sleepy_penguin/files/
35
35
 
36
36
  Unpack it, and run "ruby setup.rb"
37
37
 
@@ -39,13 +39,13 @@ Unpack it, and run "ruby setup.rb"
39
39
 
40
40
  You can get the latest source via git from the following locations:
41
41
 
42
- https://bogomips.org/sleepy_penguin.git
42
+ https://yhbt.net/sleepy_penguin.git
43
43
  https://repo.or.cz/sleepy_penguin.git (mirror)
44
44
 
45
45
  You may browse the code from the web and download the latest snapshot
46
46
  tarballs here:
47
47
 
48
- * https://bogomips.org/sleepy_penguin.git
48
+ * https://yhbt.net/sleepy_penguin.git
49
49
  * https://repo.or.cz/w/sleepy_penguin.git (gitweb)
50
50
 
51
51
  Inline patches (from "git format-patch") to the mailing list are
@@ -60,9 +60,9 @@ don't email the git mailing list or maintainer with sleepy_penguin patches.
60
60
  == Contact
61
61
 
62
62
  All feedback (bug reports, user/development discussion, patches, pull
63
- requests) go to the mailing list: mailto:sleepy-penguin@bogomips.org
63
+ requests) go to the mailing list: mailto:sleepy-penguin@yhbt.net
64
64
 
65
- * Mailing list archives: https://bogomips.org/sleepy-penguin/
65
+ * Mailing list archives: https://yhbt.net/sleepy-penguin/
66
66
 
67
67
  * Also available over NNTP:
68
68
  nntp://news.public-inbox.org/inbox.comp.lang.ruby.sleepy-penguin
@@ -170,9 +170,10 @@ static VALUE nogvl_wait(void *args)
170
170
  return (VALUE)n;
171
171
  }
172
172
 
173
- static VALUE real_epwait(struct ep_per_thread *ept)
173
+ static VALUE real_epwait(VALUE p)
174
174
  {
175
175
  long n;
176
+ struct ep_per_thread *ept = (struct ep_per_thread *)p;
176
177
  uint64_t expire_at = ept->timeout > 0 ? now_ms() + ept->timeout : 0;
177
178
 
178
179
  ept->fd = rb_sp_fileno(ept->io);
@@ -130,7 +130,6 @@ void sleepy_penguin_init_splice(void)
130
130
  * out of them.
131
131
  *
132
132
  * It is highly recommended this flag be set
133
- * (or SleepyPenguin.trysplice used)
134
133
  * whenever splicing from a socket into a pipe unless there is
135
134
  * another (native) thread or process doing a blocking read on that
136
135
  * pipe. Otherwise it is possible to block a single-threaded process
data/pkg.mk CHANGED
@@ -60,7 +60,7 @@ doc:: .document .olddoc.yml $(pkg_extra) $(PLACEHOLDERS)
60
60
  -find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
61
61
  -find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
62
62
  $(RM) -r doc
63
- $(RDOC) -f oldweb
63
+ $(RDOC) -f dark216
64
64
  $(OLDDOC) merge
65
65
  install -m644 COPYING doc/COPYING
66
66
  install -m644 NEWS doc/NEWS
@@ -3,11 +3,11 @@ manifest = File.exist?('.manifest') ?
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = %q{sleepy_penguin}
6
- s.version = (ENV['VERSION'] || '3.5.1').dup
7
- s.homepage = 'https://bogomips.org/sleepy_penguin/'
6
+ s.version = (ENV['VERSION'] || '3.5.2').dup
7
+ s.homepage = 'https://yhbt.net/sleepy_penguin/'
8
8
  s.authors = ['sleepy_penguin hackers']
9
9
  s.description = File.read('README').split("\n\n")[1]
10
- s.email = %q{sleepy-penguin@bogomips.org}
10
+ s.email = %q{sleepy-penguin@yhbt.net}
11
11
  s.files = manifest
12
12
  s.summary = 'Linux I/O events for Ruby'
13
13
  s.test_files = Dir['test/test_*.rb']
@@ -521,8 +521,10 @@ class TestEpoll < Test::Unit::TestCase
521
521
  def test_epoll_as_queue
522
522
  fl = Epoll::OUT | Epoll::ET
523
523
  first = nil
524
+ to_close = []
524
525
  500.times do
525
- r, w = IO.pipe
526
+ r, w = ary = IO.pipe
527
+ to_close.concat(ary)
526
528
  @ep.add(w, fl)
527
529
  first ||= begin
528
530
  @ep.add(r, Epoll::IN | Epoll::ET)
@@ -533,6 +535,7 @@ class TestEpoll < Test::Unit::TestCase
533
535
  @ep.wait(1) { |flags, io| first[1].write('.') if i == 0 }
534
536
  end
535
537
  @ep.wait(1) { |flags, io| assert_equal(first[0], io) }
538
+ to_close.each(&:close)
536
539
  end
537
540
 
538
541
  def test_epoll_nest
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sleepy_penguin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sleepy_penguin hackers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-15 00:00:00.000000000 Z
11
+ date: 2020-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -43,7 +43,7 @@ description: |-
43
43
  on events from traditionally non-I/O sources. Bindings to the eventfd,
44
44
  timerfd, inotify, and epoll interfaces are provided. Experimental support
45
45
  for kqueue on FreeBSD (and likely OpenBSD/NetBSD) is also provided.
46
- email: sleepy-penguin@bogomips.org
46
+ email: sleepy-penguin@yhbt.net
47
47
  executables: []
48
48
  extensions:
49
49
  - ext/sleepy_penguin/extconf.rb
@@ -120,7 +120,7 @@ files:
120
120
  - test/test_splice.rb
121
121
  - test/test_splice_eintr.rb
122
122
  - test/test_timerfd.rb
123
- homepage: https://bogomips.org/sleepy_penguin/
123
+ homepage: https://yhbt.net/sleepy_penguin/
124
124
  licenses:
125
125
  - LGPL-2.1+
126
126
  metadata: {}
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubyforge_project:
143
- rubygems_version: 2.7.7
142
+ rubygems_version: 3.0.2
144
143
  signing_key:
145
144
  specification_version: 4
146
145
  summary: Linux I/O events for Ruby