Sha256: f0a7e7774c4d82196d89fa76ef018a7d02630bca0ab0891866ebb77848272d08
Contents?: true
Size: 505 Bytes
Versions: 2
Compression:
Stored size: 505 Bytes
Contents
# frozen_string_literal: true File.singleton_class.prepend (Module.new do # NOTE: see https://github.com/jruby/jruby/issues/7750 def absolute_path path, dir = nil return super unless dir && !(absolute_path? path) super File.join dir, path end # NOTE: JRuby < 9.4 doesn't implement this method; JRuby 9.4 implements it incorrectly def absolute_path? path (::Pathname.new path).absolute? && !(%r/\A[[:alpha:]][[:alnum:]\-+]*:\/\/\S/.match? path) end end) if RUBY_ENGINE == 'jruby'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-pdf-2.3.8 | lib/asciidoctor/pdf/ext/core/file.rb |
asciidoctor-pdf-2.3.7 | lib/asciidoctor/pdf/ext/core/file.rb |