Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 207eeecf4dd1
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1c6b39f4f54a
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 27, 2015

  1. Copy the full SHA
    6565d19 View commit details
  2. Copy the full SHA
    1c6b39f View commit details
Showing with 3 additions and 1 deletion.
  1. +2 −0 kernel/delta/io.rb
  2. +1 −1 spec/ruby/core/io/write_spec.rb
2 changes: 2 additions & 0 deletions kernel/delta/io.rb
Original file line number Diff line number Diff line change
@@ -4,8 +4,10 @@
def redefine_io(const)
descriptor = const.descriptor
mode = const.mode
sync = const.sync
new_io = IO.for_fd(descriptor, mode, Hash.new)
new_io.mode = mode
new_io.sync = sync
return new_io
end

2 changes: 1 addition & 1 deletion spec/ruby/core/io/write_spec.rb
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@

# TODO: impl detail? discuss this with matz. This spec is useless. - rdavis
# I agree. I've marked it not compliant on macruby, as we don't buffer input. -pthomson
not_compliant_on :macruby do
not_compliant_on :macruby, :rubinius do
it "writes all of the string's bytes but buffers them" do
written = @file.write("abcde")
written.should == 5