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: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 45862811b98c
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d01db47881fc
Choose a head ref
  • 3 commits
  • 20 files changed
  • 1 contributor

Commits on May 20, 2015

  1. Copy the full SHA
    deac8a9 View commit details
  2. [Truffle] yaml specs.

    chrisseaton committed May 20, 2015
    Copy the full SHA
    c630c64 View commit details
  3. [Truffle] openssl specs.

    chrisseaton committed May 20, 2015
    Copy the full SHA
    d01db47 View commit details
1 change: 1 addition & 0 deletions lib/ruby/truffle/truffle/rbconfig.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Always loaded
1 change: 1 addition & 0 deletions spec/truffle/tags/library/openssl/cipher_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:OpenSSL::Cipher's CipherError exists under OpenSSL::Cipher namespace
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/openssl/config/freeze_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:OpenSSL::Config#freeze needs to be reviewed for completeness
fails:OpenSSL::Config#freeze freezes
1 change: 1 addition & 0 deletions spec/truffle/tags/library/openssl/hmac/digest_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:OpenSSL::HMAC.digest returns an SHA1 digest
1 change: 1 addition & 0 deletions spec/truffle/tags/library/openssl/hmac/hexdigest_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:OpenSSL::HMAC.hexdigest returns an SHA1 hex digest
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:OpenSSL::Random#pseudo_bytes generates a random binary string of specified length
fails:OpenSSL::Random#pseudo_bytes generates different binary strings with subsequent invocations
fails:OpenSSL::Random#pseudo_bytes raises ArgumentError on negative arguments
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fails:OpenSSL::Random#random_bytes generates a random binary string of specified length
fails:OpenSSL::Random#random_bytes generates different binary strings with subsequent invocations
fails:OpenSSL::Random#random_bytes raises ArgumentError on negative arguments
4 changes: 4 additions & 0 deletions spec/truffle/tags/library/openssl/x509/name/parse_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fails:OpenSSL::X509::Name.parse parses a /-delimited string of key-value pairs into a Name
fails:OpenSSL::X509::Name.parse parses a comma-delimited string of key-value pairs into a name
fails:OpenSSL::X509::Name.parse raises TypeError if the given string contains no key/value pairs
fails:OpenSSL::X509::Name.parse raises OpenSSL::X509::NameError if the given string contains invalid keys
1 change: 1 addition & 0 deletions spec/truffle/tags/library/yaml/dump_stream_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:YAML.dump_stream returns a YAML stream containing the objects passed
6 changes: 6 additions & 0 deletions spec/truffle/tags/library/yaml/dump_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fails:YAML.dump converts an object to YAML and write result to io when io provided
fails:YAML.dump returns a string containing dumped YAML when no io provided
fails:YAML.dump returns the same string that #to_yaml on objects
fails:YAML.dump dumps strings into YAML strings
fails:YAML.dump dumps hashes into YAML key-values
fails:YAML.dump dumps Arrays into YAML collection
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/yaml/load_documents_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:YAML.load_documents calls the block on each succesive document
fails:YAML.load_documents works on files
1 change: 1 addition & 0 deletions spec/truffle/tags/library/yaml/load_file_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:YAML.load_file returns a hash
12 changes: 12 additions & 0 deletions spec/truffle/tags/library/yaml/load_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
fails:YAML.load returns a document from current io stream when io provided
fails:YAML.load loads strings
fails:YAML.load fails on invalid keys
fails:YAML.load accepts symbols
fails:YAML.load accepts numbers
fails:YAML.load accepts collections
fails:YAML.load parses start markers
fails:YAML.load works with block sequence shortcuts
fails:YAML.load works on complex keys
fails:YAML.load loads a symbol key that contains spaces
fails:YAML.load with iso8601 timestamp computes the microseconds
fails:YAML.load with iso8601 timestamp rounds values smaller than 1 usec to 0
1 change: 1 addition & 0 deletions spec/truffle/tags/library/yaml/parse_file_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:YAML#parse_file returns a YAML::Syck::Map object after parsing a YAML file
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/yaml/parse_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:YAML#parse with an empty string returns false
fails:YAML#parse returns the value from the object
1 change: 1 addition & 0 deletions spec/truffle/tags/library/yaml/tagurize_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:YAML.tagurize converts a type_id to a taguri
18 changes: 18 additions & 0 deletions spec/truffle/tags/library/yaml/to_yaml_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
fails:Object#to_yaml returns the YAML representation of an Array object
fails:Object#to_yaml returns the YAML representation of a Hash object
fails:Object#to_yaml returns the YAML representation of a Class object
fails:Object#to_yaml returns the YAML representation of a Date object
fails:Object#to_yaml returns the YAML representation of a FalseClass
fails:Object#to_yaml returns the YAML representation of a Float object
fails:Object#to_yaml returns the YAML representation of an Integer object
fails:Object#to_yaml returns the YAML representation of a NilClass object
fails:Object#to_yaml returns the YAML represenation of a RegExp object
fails:Object#to_yaml returns the YAML representation of a String object
fails:Object#to_yaml returns the YAML representation of a Struct object
fails:Object#to_yaml returns the YAML representation of a Symbol object
fails:Object#to_yaml returns the YAML representation of a Time object
fails:Object#to_yaml returns the YAML representation of a TrueClass
fails:Object#to_yaml returns the YAML representation of a Error object
fails:Object#to_yaml returns the YAML representation for Range objects
fails:Object#to_yaml returns the YAML representation of numeric constants
fails:Object#to_yaml returns the YAML representation of an array of hashes
2 changes: 0 additions & 2 deletions spec/truffle/truffle.mspec
Original file line number Diff line number Diff line change
@@ -101,9 +101,7 @@ class MSpecScript
"^spec/ruby/library/weakref",

# Doesn't exist as Ruby code - basically need to write from scratch
"^spec/ruby/library/openssl",
"^spec/ruby/library/win32ole",
"^spec/ruby/library/yaml",

# Uses the Rubinius FFI generator
"^spec/ruby/library/etc",
Original file line number Diff line number Diff line change
@@ -1327,6 +1327,7 @@ public boolean require(RubyString feature) {

if (feature.toString().equals("openssl") && Truffle.getRuntime().getCallerFrame().getCallNode()
.getEncapsulatingSourceSection().getSource().getName().endsWith("securerandom.rb")) {
getContext().getCoreLibrary().getObjectClass().getConstants().remove("OpenSSL");
throw new RaiseException(getContext().getCoreLibrary().loadErrorCannotLoad(feature.toString(), this));
}

Original file line number Diff line number Diff line change
@@ -48,15 +48,7 @@ public boolean require(String feature, Node currentNode) throws IOException {
if (requireInPath(null, feature, currentNode)) {
return true;
}

} else {
// Some features are handled specially

if (feature.equals("rbconfig")) {
// Kernel#rbconfig is always there
return true;
}

// Try each load path in turn

for (Object pathObject : context.getCoreLibrary().getLoadPath().slowToArray()) {