View jruby_bash_entropy_fix.patch
diff --git a/bin/jruby.bash b/bin/jruby.bash
index 0fc2f03a65..08bd19150f 100755
--- a/bin/jruby.bash
+++ b/bin/jruby.bash
@@ -180,6 +180,14 @@ fi
# ----- Execute The Requested Command -----------------------------------------
JAVA_ENCODING=""
+if [ -r "/dev/urandom" ]; then
+ # OpenJDK tries really hard to prevent you from using urandom.
View gist:509a1e6c4a0ef9589aa96b9279f5be62
1) Failure:
TransactionTest#test_rollback_when_thread_killed [/Users/headius/projects/rails/activerecord/test/cases/transactions_test.rb:546]:
First shouldn't have been approved
2) Failure:
ReflectionTest#test_read_attribute_names [/Users/headius/projects/rails/activerecord/test/cases/reflection_test.rb:44]:
--- expected
+++ actual
@@ -1 +1 @@
View patch.diff
diff --git a/lib/ruby/stdlib/date.rb b/lib/ruby/stdlib/date.rb
index ad36703759..d40bf7073a 100644
--- a/lib/ruby/stdlib/date.rb
+++ b/lib/ruby/stdlib/date.rb
@@ -712,7 +712,7 @@ class Date
end
chrono = if sg == ITALY
- JODA.chrono::GJChronology
+ JODA.chrono::ISOChronology
View patch.diff
diff --git a/core/src/main/java/org/jruby/RubyTime.java b/core/src/main/java/org/jruby/RubyTime.java
index 395e948aca..e1cded5648 100644
--- a/core/src/main/java/org/jruby/RubyTime.java
+++ b/core/src/main/java/org/jruby/RubyTime.java
@@ -43,6 +43,7 @@ import org.jcodings.specific.USASCIIEncoding;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.IllegalFieldValueException;
+import org.joda.time.chrono.GJChronology;
import org.joda.time.format.DateTimeFormat;
View .travis.yml.diff
diff --git a/.travis.yml b/.travis.yml
index c4da8f5..bf222bb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,12 +2,8 @@ language: java
matrix:
include:
- os: linux
- jdk: oraclejdk8
+ jdk: oraclejdk9
View crash.txt
~/projects/tensorflow.rb $ LD_LIBRARY_PATH=~/tensorflow/lib ruby -Ilib image/classify_image.rb image/mysore_palace.jpg
Trying to classify image file: image/mysore_palace.jpg
/Users/headius/projects/tensorflow.rb/lib/tensorflow/graph.rb:197: [BUG] Segmentation fault at 0x00000000000000
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
View tf.rb
# Generated by ffi_gen. Please do not change this file by hand.
require 'ffi'
module TensorFlow
extend FFI::Library
ffi_lib "tensorflow"
def self.attach_function(name, *_)
begin; super; rescue FFI::NotFoundError => e
View gist:05e5ae524b16a5fd0b01665d9486e1b8
~/projects/jruby $ echo $JRUBY_GRAAL
-Xfixnum.cache=false -J-XX:+UnlockExperimentalVMOptions -J-XX:+EnableJVMCI -J-XX:+UseJVMCICompiler -J-Djvmci.Compiler=jruby-graal -J-Xbootclasspath/a:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-api.jar:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-hotspot.jar:/usr/lib/jvm/graalvm/lib/graal/graal.jar -Xcompile.invokedynamic
~/projects/jruby $ jruby mandelbrot.rb
1.568706
1.263336
1.2612649999999999
1.185973
1.188513
1.196141
View gist:cb5f527866dfed360f5b6c7289a8394a
$ jruby -J-XX:+UnlockExperimentalVMOptions -J-XX:+EnableJVMCI -J-XX:+UseJVMCICompiler -J-Djvmci.Compiler=jruby-graal -J-Xbootclasspath/a:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-api.jar:/usr/lib/jvm/jdk8-jvmci/jre/lib/jvmci/jvmci-hotspot.jar -e 1
requested compile for: HotSpotMethod<String.hashCode()>
requested compile for: HotSpotMethod<String.charAt(int)>
requested compile for: HotSpotMethod<String.indexOf(int, int)>
requested compile for: HotSpotMethod<ByteVector.putUTF8(String)>
requested compile for: HotSpotMethod<String.equals(Object)>
requested compile for: HotSpotMethod<BufferedInputStream.read()>
requested compile for: HotSpotMethod<CharacterData.of(int)>
requested compile for: HotSpotMethod<ConcurrentHashMap.setTabAt(ConcurrentHashMap$Node[], int, ConcurrentHashMap$Node)>
requested compile for: HotSpotMethod<ConcurrentHashMap.tabAt(ConcurrentHashMap$Node[], int)>
View maven_ioexception_providerexception.md

I started getting the following error when trying to deploy maven artifacts:

...
[INFO] Building jar: /home/headius/projects/jnr-posix/target/jnr-posix-3.0.37-SNAPSHOT-javadoc.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ jnr-posix ---
[INFO] Installing /home/headius/projects/jnr-posix/target/jnr-posix-3.0.37-SNAPSHOT.jar to /home/headius/.m2/repository/com/github/jnr/jnr-posix/3.0.37-SNAPSHOT/jnr-posix-3.0.37-SNAPSHOT.jar
[INFO] Installing /home/headius/projects/jnr-posix/pom.xml to /home/headius/.m2/repository/com/github/jnr/jnr-posix/3.0.37-SNAPSHOT/jnr-posix-3.0.37-SNAPSHOT.pom
[INFO] Installing /home/headius/projects/jnr-posix/target/jnr-posix-3.0.37-SNAPSHOT-sources.jar to /home/headius/.m2/repository/com/github/jnr/jnr-posix/3.0.37-SNAPSHOT/jnr-posix-3.0.37-SNAPSHOT-sources.jar