Skip to content

Commit 4c4f954

Browse files
committedNov 15, 2015
Merge branch 'jruby-1_7'
* jruby-1_7: (46 commits) make previous commit null-safe + review JRuby home verification - normalize once! normalize JRubyHome for windows. backport ruby 1.9.3 test_bigdecimal from MRI (NAN.round no longer supposed to fail) make sure BigDecimal test restores exception modes + make nan asserts 1.8 compat handle BigDecimal#round-ing for NaN (does not raise since 1.8.7 current MRI 2.2.3) update to latest jruby-openssl release: 0.9.12 update options library to latest 1.3 release re-format code - mislined line + unused variable & use indexOf(char) instead of str avoid expensive pattern compiling in arg processing loop (split() and replaceAll()) [nkf] handle 1.9.3 NKF library compatibility - returning encoding objects (see jruby#338) avoid double convertToInteger and double NKF map lookup in EncodingService define NKF version constants (based on MRI 1.8.7 ... which is how NKF is compatible) make NKF shared public static map final correct ArgumentError message format to match MRI >= 1.9.3 (fixes jruby#3346) be failsafe when trying to load META-INF/maven/org.yaml/snakeyaml/pom.properties fix generics (for master backport) to dispatch to correct CallableSelector override move CallableCache internal interface were it fits + add matching methods for arities invent a "true" null (java) callable cache for invokers + make get/put signature final refactor (internal) Java.__jcreate! impl to use same cache as RubyToJavaInvoker-s ... introducing an internal CallableCache interface to loose coupling in CallableSelector Use Cliff Click's high-scale collections instead of IntHashMap. ... Conflicts: core/pom.xml core/src/main/java/org/jruby/RubyFile.java core/src/main/java/org/jruby/RubyInstanceConfig.java core/src/main/java/org/jruby/RubyProc.java core/src/main/java/org/jruby/exceptions/RaiseException.java core/src/main/java/org/jruby/ext/bigdecimal/RubyBigDecimal.java core/src/main/java/org/jruby/ext/psych/PsychLibrary.java core/src/main/java/org/jruby/java/dispatch/CallableSelector.java core/src/main/java/org/jruby/java/invokers/RubyToJavaInvoker.java core/src/main/java/org/jruby/javasupport/Java.java core/src/main/java/org/jruby/runtime/Helpers.java core/src/main/java/org/jruby/runtime/backtrace/TraceType.java core/src/main/java/org/jruby/runtime/encoding/EncodingService.java core/src/main/java/org/jruby/util/cli/ArgumentProcessor.java default.build.properties lib/pom.rb lib/pom.xml maven/jruby-dist/pom.rb maven/jruby-dist/pom.xml maven/jruby-dist/src/main/assembly/jruby.xml maven/jruby-stdlib/pom.rb maven/jruby/src/it/runnable/spec/one_spec.rb pom.xml rakelib/test.rake spec/profiler/json_profile_printer_spec.rb spec/profiler/runtime_spec.rb test/externals/ruby1.9/bigdecimal/test_bigdecimal.rb test/pom.rb test/pom.xml test/test_big_decimal.rb test/test_file.rb test/test_pathname.rb
2 parents 9570c73 + d24a997 commit 4c4f954

File tree

36 files changed

+451
-331
lines changed

36 files changed

+451
-331
lines changed
 

Diff for: ‎antlib/extra.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ build jruby-complete.jar
6767
<arg value='test/test_ivar_table_integrity.rb'/>
6868
<arg value='test/test_io.rb'/>
6969
<arg value='test/test_load.rb'/>
70+
<arg value='test/test_load_gem_extensions.rb'/>
7071
<arg value='test/test_method.rb'/>
7172
<arg value='test/test_method_cache.rb'/>
7273
<arg value='test/test_method_override_and_caching.rb'/>
@@ -393,7 +394,6 @@ build jruby-complete.jar
393394
<arg value='test/externals/ruby1.9/psych/test_document.rb'/>
394395
<arg value='test/externals/ruby1.9/psych/test_emitter.rb'/>
395396
<arg value='test/externals/ruby1.9/psych/test_encoding.rb'/>
396-
<arg value='test/externals/ruby1.9/psych/test_engine_manager.rb'/>
397397
<arg value='test/externals/ruby1.9/psych/test_exception.rb'/>
398398
<arg value='test/externals/ruby1.9/psych/test_hash.rb'/>
399399
<arg value='test/externals/ruby1.9/psych/test_json_tree.rb'/>
@@ -514,4 +514,4 @@ build jruby-complete.jar
514514
<!--arg value='-v'/-->
515515
</exec>
516516
</target>
517-
<target description='test using jruby-complete or jruby-core/jruby-stdlib jars' name='test-jruby-jars' depends='mvn,test-jruby-jars-jruby.1.9,test-jruby-complete-slow,test-jruby-jars-objectspace,test-jruby-jars-mri.1.9,test-jruby-complete-rubicon.1.9'/></project>
517+
<target description='test using jruby-complete or jruby-core/jruby-stdlib jars' name='test-jruby-jars' depends='mvn,test-jruby-jars-jruby.1.9,test-jruby-complete-slow,test-jruby-jars-objectspace,test-jruby-jars-mri.1.9,test-jruby-complete-rubicon.1.9'/></project>

Diff for: ‎core/src/main/java/org/jruby/RubyDir.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ private static String dirFromPath(final String path, final Ruby runtime) throws
720720
String dir = path;
721721
String[] pathParts = RubyFile.splitURI(path);
722722
if (pathParts != null) {
723-
if (pathParts[0].startsWith("file:") && pathParts[1].length() > 0 && pathParts[1].indexOf("!/") == -1) {
723+
if (pathParts[0].startsWith("file:") && pathParts[1].length() > 0 && pathParts[1].indexOf(".jar!/") == -1) {
724724
dir = pathParts[1];
725725
} else {
726726
throw runtime.newErrnoENOTDIRError(dir);

0 commit comments

Comments
 (0)
Please sign in to comment.