Skip to content

robertpanzer/jruby-pathname-reproducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

This repository reproduces an issue where Pathname::glob seems to behave differently between JRuby 9.4.8.0 and 10.0.2.0.

Follow these steps to reproduce:

  1. Download the rouge gem:

    curl -LO https://rubygems.org/downloads/rouge-3.30.0.gem
  2. Install the rouge gem in the target directory by running this command:

    GEM_HOME=$(pwd)/target/classes GEM_PATH=$(pwd)/target/classes java -jar ~/.m2/repository/org/jruby/jruby-complete/10.0.2.0/jruby-complete-10.0.2.0.jar -S jgem install rouge-3.30.0.gem
  3. Run the reproducer with JRuby 9.4.12.0:

    ➜  jrubygemtest git:(main) ✗ mvn exec:java
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ----------------------< org.example:jrubygemtest >----------------------
    [INFO] Building jrubygemtest 1.0-SNAPSHOT
    [INFO]   from pom.xml
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO]
    [INFO] --- exec:3.3.0:java (default-cli) @ jrubygemtest ---
    LEXER DIR: uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/abap.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/actionscript.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/ada.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apache.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apex.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apiblueprint.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/apple_script.rb
    ...
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/xquery.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/yaml.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/yang.rb
    found uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/zig.rb
    DONE
  4. Run the reproducer with the latest version 10.0.2.0

    jrubygemtest git:(main) ✗ mvn exec:java -Dversion.jruby=10.0.2.0
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ----------------------< org.example:jrubygemtest >----------------------
    [INFO] Building jrubygemtest 1.0-SNAPSHOT
    [INFO]   from pom.xml
    [INFO] --------------------------------[ jar ]---------------------------------
    [INFO]
    [INFO] --- exec:3.3.0:java (default-cli) @ jrubygemtest ---
    LEXER DIR: uri:classloader:/gems/rouge-3.30.0/lib/rouge/lexers/
    DONE

About

Reproducer for behavior changes of Pathname::glob between different versions of JRuby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages