-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
- 9.0.5.0
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative '../../stdlib/ipaddr' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative '../../stdlib/resolv' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require_relative '../../../stdlib/win32/resolv' |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
fails:IO#bytes returns an enumerator of the next bytes from the stream | ||
fails:IO#bytes raises an IOError on closed stream | ||
fails:IO#bytes raises an IOError on an enumerator for a stream that has been closed |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
fails:IO#chars yields each character | ||
fails:IO#chars returns itself | ||
fails:IO#chars raises an IOError when an enumerator created on a closed stream is accessed | ||
fails:IO#chars raises IOError on closed stream |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
fails:IO#codepoints yields each codepoint | ||
fails:IO#codepoints raises an error if reading invalid sequence | ||
fails:IO#codepoints does not change $_ | ||
fails:IO#codepoints raises an IOError when self is not readable | ||
fails:IO#codepoints calls the given block |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
fails:IO#each_char yields each character | ||
fails:IO#each_char returns itself | ||
fails:IO#each_char raises an IOError when an enumerator created on a closed stream is accessed | ||
fails:IO#each_char raises IOError on closed stream |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
fails:IO#each_codepoint yields each codepoint | ||
fails:IO#each_codepoint raises an error if reading invalid sequence | ||
fails:IO#each_codepoint does not change $_ | ||
fails:IO#each_codepoint raises an IOError when self is not readable | ||
fails:IO#each_codepoint calls the given block | ||
fails:IO#each_codepoint returns self |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:IO#getbyte returns the next byte from the stream | ||
fails:IO#getbyte raises an IOError on closed stream |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:IO#getc returns the next character from the stream | ||
fails:IO#getc raises IOError on closed stream |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:IO#ioctl raises IOError on closed stream | ||
fails(linux):IO#ioctl raises an Errno error when ioctl fails |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
fails:IO.open raises an Errno::EBADF if the file descriptor is not valid | ||
fails:IO.open raises an IOError if passed a closed stream | ||
fails:IO.open does not propagate a StandardError raised by #close | ||
fails:IO.open does not set last error when a StandardError raised by #close | ||
fails:IO.open propagates an exception raised by #close that is a StandardError |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
fails:IO#pos raises IOError on closed stream | ||
fails:IO#pos resets #eof? | ||
fails:IO#pos= does not accept Bignums that don't fit in a C long | ||
fails:IO#pos= raises IOError on closed stream |
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:IO#readline raises IOError on closed stream | ||
fails:IO#readline assigns the returned line to $_ |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
fails:IO#seek does not accept Bignums that don't fit in a C long | ||
fails:IO#seek raises IOError on closed stream | ||
fails:IO#seek moves the read position relative to the current position with SEEK_CUR |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
fails:IO#sysseek does not accept Bignums that don't fit in a C long | ||
fails:IO#sysseek raises IOError on closed stream | ||
fails:IO#sysseek moves the read position relative to the end with SEEK_END |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
fails:IO#tell raises IOError on closed stream | ||
fails:IO#tell resets #eof? |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
fails:IO#ungetbyte puts back each byte in a String argument | ||
fails:IO#ungetbyte calls #to_str to convert the argument | ||
fails:IO#ungetbyte puts back one byte for an Integer argument | ||
fails:IO#ungetbyte raises an IOError if the IO is closed |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
fails:IO#write on a file writes all of the string's bytes but buffers them | ||
fails(windows):IO#write on Windows normalizes line endings in text mode | ||
fails(windows):IO#write on Windows does not normalize line endings in binary mode | ||
fails:IO.write on a FIFO writes correctly |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
fails:Module#define_method method body is an UnboundMethod allows methods defined on a different object | ||
fails:Method#define_method when passed a Method object defines a method with the same #parameters as the original | ||
fails:Method#define_method when passed an UnboundMethod object defines a method with the same #parameters as the original |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
fails:IPAddr#ipv4_compat should ipv4_compat? | ||
fails:IPAddr#ipv4_mapped should ipv4_mapped |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fails:IPAddr#new initializes IPAddr ipv4 mapped address with subnet mask |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fails:IPAddr Operator bitwises or |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fails:IPAddr#reverse generates the reverse DNS lookup entry |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. This | ||
# code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
# redistribute it and/or modify it under the terms of the: | ||
# | ||
# Eclipse Public License version 1.0 | ||
# GNU General Public License version 2 | ||
# GNU Lesser General Public License version 2.1 | ||
|
||
puts " // Generated from tool/truffle/translate_rubinius_config.rb < ../rubinius/runtime/platform.conf" | ||
|
||
ARGF.each do |line| | ||
match = line.match(/(?'var'rbx(\.\w+)*) = (?'value'.+)/) | ||
next unless match | ||
var = match[:var] | ||
value = match[:value] | ||
if /.*\.(offset|size|sizeof)$/ =~ var | ||
code = value.to_s | ||
else | ||
code = "context.makeString(\"#{value}\")" | ||
end | ||
puts " configuration.config(\"#{var}\", #{code});" | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. This | ||
* code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
* redistribute it and/or modify it under the terms of the: | ||
* | ||
* Eclipse Public License version 1.0 | ||
* GNU General Public License version 2 | ||
* GNU Lesser General Public License version 2.1 | ||
*/ | ||
package org.jruby.truffle.nodes.core; | ||
|
||
import java.util.Collection; | ||
|
||
import com.oracle.truffle.api.frame.VirtualFrame; | ||
import com.oracle.truffle.api.source.SourceSection; | ||
|
||
import org.jruby.truffle.nodes.RubyNode; | ||
import org.jruby.truffle.nodes.dispatch.CallDispatchHeadNode; | ||
import org.jruby.truffle.nodes.dispatch.DispatchHeadNodeFactory; | ||
import org.jruby.truffle.runtime.RubyArguments; | ||
import org.jruby.truffle.runtime.RubyContext; | ||
|
||
/** Load libraries required from the command line (-r LIBRARY) */ | ||
public class LoadRequiredLibrariesNode extends RubyNode { | ||
|
||
@Child CallDispatchHeadNode requireNode; | ||
|
||
public LoadRequiredLibrariesNode(RubyContext context, SourceSection sourceSection) { | ||
super(context, sourceSection); | ||
requireNode = DispatchHeadNodeFactory.createMethodCallOnSelf(context); | ||
} | ||
|
||
@Override | ||
public Object execute(VirtualFrame frame) { | ||
Object self = RubyArguments.getSelf(frame.getArguments()); | ||
Collection<String> requiredLibraries = getContext().getRuntime().getInstanceConfig().getRequiredLibraries(); | ||
|
||
for (String requiredLibrary : requiredLibraries) { | ||
requireNode.call(frame, self, "require", null, getContext().makeString(requiredLibrary)); | ||
} | ||
|
||
return nil(); | ||
} | ||
|
||
} |
This file was deleted.