Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
File.size? should work on uri:classloader: resources #4105
In JRuby 1.7 performing File.size? would work on uri:classloader resources. For example,
jar = File.expand_path("test/jruby/dir with spaces/test_jar.jar") load jar expect(File.size?("uri:classloader:/inside_jar.rb")).to eq(108)
jrubyfx regresses on this removal of behavior (see jruby/jrubyfx#101). I added it back (which means reading the resource fully).