Sha256: f81db57b149806048778c3c1b03f6322ccaec4fff756c2aaaead5a13517e602e

Contents?: true

Size: 372 Bytes

Versions: 39

Compression:

Stored size: 372 Bytes

Contents

require 'hike'
require 'pathname'

module Opal
  class HikePathFinder < Hike::Trail
    def initialize(paths = Opal.paths)
      super()
      append_paths(*paths)
      append_extensions '.js', '.js.rb', '.rb', '.opalerb'
    end

    def find path
      pathname = Pathname(path)
      return path if pathname.absolute? and pathname.exist?
      super
    end
  end
end

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
opal-0.10.6 lib/opal/hike_path_finder.rb
opal-0.10.6.beta lib/opal/hike_path_finder.rb
opal-0.10.5 lib/opal/hike_path_finder.rb
opal-0.10.4 lib/opal/hike_path_finder.rb
opal-0.10.3 lib/opal/hike_path_finder.rb
opal-0.10.2 lib/opal/hike_path_finder.rb
opal-0.10.1 lib/opal/hike_path_finder.rb
opal-0.10.0 lib/opal/hike_path_finder.rb
opal-0.10.0.rc2 lib/opal/hike_path_finder.rb
opal-0.9.4 lib/opal/hike_path_finder.rb
opal-0.9.3 lib/opal/hike_path_finder.rb
opal-0.10.0.rc1 lib/opal/hike_path_finder.rb
opal-0.10.0.beta5 lib/opal/hike_path_finder.rb
opal-0.10.0.beta4 lib/opal/hike_path_finder.rb
opal-0.10.0.beta3 lib/opal/hike_path_finder.rb
opal-0.10.0.beta2 lib/opal/hike_path_finder.rb
opal-0.10.0.beta1 lib/opal/hike_path_finder.rb
opal-0.9.2 lib/opal/hike_path_finder.rb
opal-0.9.0 lib/opal/hike_path_finder.rb
opal-0.9.0.rc1 lib/opal/hike_path_finder.rb