ruby-ole 1.2.11.5 → 1.2.11.6

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.2.11.6 / 2012-12-10
2
+
3
+ - Fix breakage of writable IO stream detection on Windows (github #11).
4
+
1
5
  == 1.2.11.5 / 2012-11-06
2
6
 
3
7
  - Fix breakage of IO.parse_mode on Rubinius (issue #10).
@@ -58,8 +58,13 @@ module Ole # :nodoc:
58
58
  else
59
59
  # works on mri 1.8 & jruby
60
60
  @io.flush
61
- # works on mri 1.9 & rubinius
62
- @io.write_nonblock('') if @io.respond_to?(:write_nonblock)
61
+ begin
62
+ # works on mri 1.9 & rubinius, throws EBADF on windows
63
+ @io.write_nonblock('') if @io.respond_to?(:write_nonblock)
64
+ rescue Errno::EBADF
65
+ # for windows
66
+ @io.syswrite('');
67
+ end
63
68
  true
64
69
  end
65
70
  rescue IOError
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Ole # :nodoc:
4
4
  class Storage
5
- VERSION = '1.2.11.5'
5
+ VERSION = '1.2.11.6'
6
6
  end
7
7
  end
8
8
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-ole
3
3
  version: !ruby/object:Gem::Version
4
- hash: 105
4
+ hash: 111
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 11
10
- - 5
11
- version: 1.2.11.5
10
+ - 6
11
+ version: 1.2.11.6
12
12
  platform: ruby
13
13
  authors:
14
14
  - Charles Lowe
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-11-06 00:00:00 +11:00
19
+ date: 2012-12-10 00:00:00 +11:00
20
20
  default_executable:
21
21
  dependencies: []
22
22