io-extra 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -14
- data/CHANGES +3 -0
- data/Rakefile +1 -1
- data/ext/io/extra.c +6 -5
- data/io-extra.gemspec +1 -1
- data/test/test_io_extra.rb +2 -2
- metadata +15 -14
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
ODZhNDczYjAwYTJkNzY0MWJjN2Q3NmY3NmJkMDI5OTc1OThkODI5ZjMzZDQy
|
10
|
-
Y2RkNDlkNGRlMWE4ZTY1OTRiNTA4OTkyODI4ZmNlYjRjMzIyNWU5NGE0NjE1
|
11
|
-
ZjliOTM3YjJkZDY1MDVjNjhjYzAwODQwNTViMjRjY2EzOTNiOTI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZDEyNDY4ZjVmMzc3ZGUwNWEzMmIxZWUyYWNhNzM0ZjljZTNiNDExZTIxNzNh
|
14
|
-
OTFhNzJiZTM5NTBlZDUyMTNmOTQwZTg0MDAxY2YzNmU5MDI3NWU0YjZkMTU0
|
15
|
-
NTY4MTZkN2E0NmRhNDU3OTdhNTQ0ZjkzZmIzZDJlNTRlMzZkMzc=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 418b72ff17a0099e8172b269e8fdef1641e59351
|
4
|
+
data.tar.gz: 6f228294bde48cace55a4885833a38f4f212144e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 82a2590fc4e9b84f3a785fd5939782b97b0110c19d8950c689526a95aee9297e99dd6bcaf456f90d1b0cab056de692cb065f5bcb00bd9aa1584100c1e8094a52
|
7
|
+
data.tar.gz: eb0bf873f28143449957af7c383e7e3cc2b12750eebf232d4c3a87d2f593707aaf26297a0ceed3f323920c30aadf871e695427452fa6128669691d245c355018
|
data/CHANGES
CHANGED
data/Rakefile
CHANGED
data/ext/io/extra.c
CHANGED
@@ -35,12 +35,13 @@
|
|
35
35
|
#include <ruby/thread.h>
|
36
36
|
#endif
|
37
37
|
|
38
|
-
#
|
38
|
+
#if ! defined(HAVE_RB_THREAD_BLOCKING_REGION) && \
|
39
|
+
! defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
|
39
40
|
/*
|
40
|
-
*
|
41
|
+
* Partial emulation of the 1.9 rb_thread_blocking_region under 1.8,
|
41
42
|
* this is enough to ensure signals are processed safely when doing I/O
|
42
43
|
* to a slow device, but doesn't actually ensure threads can be
|
43
|
-
* scheduled fairly in 1.8
|
44
|
+
* scheduled fairly in 1.8.
|
44
45
|
*/
|
45
46
|
#include <rubysig.h>
|
46
47
|
#define RUBY_UBF_IO ((rb_unblock_function_t *)-1)
|
@@ -657,6 +658,6 @@ void Init_extra(){
|
|
657
658
|
rb_define_method(rb_cIO, "ttyname", io_get_ttyname, 0);
|
658
659
|
#endif
|
659
660
|
|
660
|
-
/* 1.2.
|
661
|
-
rb_define_const(rb_cIO, "EXTRA_VERSION", rb_str_new2("1.2.
|
661
|
+
/* 1.2.8: The version of this library. This a string. */
|
662
|
+
rb_define_const(rb_cIO, "EXTRA_VERSION", rb_str_new2("1.2.8"));
|
662
663
|
}
|
data/io-extra.gemspec
CHANGED
data/test/test_io_extra.rb
CHANGED
@@ -17,7 +17,7 @@ class TC_IO_Extra < Test::Unit::TestCase
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def test_version
|
20
|
-
assert_equal('1.2.
|
20
|
+
assert_equal('1.2.8', IO::EXTRA_VERSION)
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_direct_constant
|
@@ -157,6 +157,6 @@ class TC_IO_Extra < Test::Unit::TestCase
|
|
157
157
|
def teardown
|
158
158
|
@fh.close rescue nil
|
159
159
|
@fh = nil
|
160
|
-
File.delete(@file) if File.
|
160
|
+
File.delete(@file) if File.exist?(@file)
|
161
161
|
end
|
162
162
|
end
|
metadata
CHANGED
@@ -1,32 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: io-extra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.5.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.5.0
|
27
|
-
description:
|
28
|
-
|
29
|
-
|
27
|
+
description: |2
|
28
|
+
Adds the IO.closefrom, IO.fdwalk, IO.pread, IO.pread_ptr, IO.pwrite, and
|
29
|
+
IO.writev singleton methods as well as the IO#directio, IO#directio? and
|
30
|
+
IO#ttyname instance methods (for those platforms that support them).
|
30
31
|
email: djberg96@gmail.com
|
31
32
|
executables: []
|
32
33
|
extensions:
|
@@ -37,18 +38,18 @@ extra_rdoc_files:
|
|
37
38
|
- MANIFEST
|
38
39
|
- ext/io/extra.c
|
39
40
|
files:
|
41
|
+
- ".gemtest"
|
40
42
|
- CHANGES
|
43
|
+
- MANIFEST
|
44
|
+
- README
|
45
|
+
- Rakefile
|
41
46
|
- doc/io_extra.txt
|
42
47
|
- examples/example_io_extra.rb
|
43
48
|
- examples/example_pread.rb
|
44
49
|
- ext/extconf.rb
|
45
50
|
- ext/io/extra.c
|
46
51
|
- io-extra.gemspec
|
47
|
-
- MANIFEST
|
48
|
-
- Rakefile
|
49
|
-
- README
|
50
52
|
- test/test_io_extra.rb
|
51
|
-
- .gemtest
|
52
53
|
homepage: http://www.rubyforge.org/projects/shards
|
53
54
|
licenses:
|
54
55
|
- Artistic 2.0
|
@@ -59,17 +60,17 @@ require_paths:
|
|
59
60
|
- lib
|
60
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
61
62
|
requirements:
|
62
|
-
- -
|
63
|
+
- - ">="
|
63
64
|
- !ruby/object:Gem::Version
|
64
65
|
version: 1.8.6
|
65
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
67
|
requirements:
|
67
|
-
- -
|
68
|
+
- - ">="
|
68
69
|
- !ruby/object:Gem::Version
|
69
70
|
version: '0'
|
70
71
|
requirements: []
|
71
72
|
rubyforge_project: shards
|
72
|
-
rubygems_version: 2.
|
73
|
+
rubygems_version: 2.4.5
|
73
74
|
signing_key:
|
74
75
|
specification_version: 4
|
75
76
|
summary: Adds extra methods to the IO class.
|