io-extra 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YWJjN2NhYmZlMzAwNWY1M2M2Zjk5YzcwYTQ2ODFhOGFjYzgxOTNiOA==
5
- data.tar.gz: !binary |-
6
- ZGM3YmIxOGE3Y2NiMGVkYTQ4ZmMyMTFmZWFlNmI4Y2JiZDQxZWI3Nw==
7
- !binary "U0hBNTEy":
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
@@ -1,3 +1,6 @@
1
+ == 1.2.8 - 29-Dec-2014
2
+ * Updated for compatibility with Ruby 2.2.x.
3
+
1
4
  == 1.2.7 - 10-Aug-2013
2
5
  * Direct IO is now supported on Darwin, and some bugs in the directio
3
6
  methods have been fixed. Thanks go to Genki Takiuchi for the patches.
data/Rakefile CHANGED
@@ -45,7 +45,7 @@ namespace :gem do
45
45
  desc "Install the io-extra library as a gem"
46
46
  task :install => [:create] do
47
47
  file = Dir["io-extra*.gem"].last
48
- sh "gem install #{file}"
48
+ sh "gem install -l #{file}"
49
49
  end
50
50
  end
51
51
 
@@ -35,12 +35,13 @@
35
35
  #include <ruby/thread.h>
36
36
  #endif
37
37
 
38
- #ifndef HAVE_RB_THREAD_BLOCKING_REGION
38
+ #if ! defined(HAVE_RB_THREAD_BLOCKING_REGION) && \
39
+ ! defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL)
39
40
  /*
40
- * partial emulation of the 1.9 rb_thread_blocking_region under 1.8,
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.7: The version of this library. This a string. */
661
- rb_define_const(rb_cIO, "EXTRA_VERSION", rb_str_new2("1.2.7"));
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
  }
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  end
9
9
 
10
10
  spec.name = 'io-extra'
11
- spec.version = '1.2.7'
11
+ spec.version = '1.2.8'
12
12
  spec.author = 'Daniel J. Berger'
13
13
  spec.license = 'Artistic 2.0'
14
14
  spec.email = 'djberg96@gmail.com'
@@ -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.7', IO::EXTRA_VERSION)
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.exists?(@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.7
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: 2013-08-10 00:00:00.000000000 Z
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: ! " Adds the IO.closefrom, IO.fdwalk, IO.pread, IO.pread_ptr, IO.pwrite,
28
- and\n IO.writev singleton methods as well as the IO#directio, IO#directio? and\n
29
- \ IO#ttyname instance methods (for those platforms that support them).\n"
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.0.3
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.