Sha256: b5b08cb7eb428a4d9b12b8e07c0286c721dfe7cf436850336681a0f272b4c478

Contents?: true

Size: 1.18 KB

Versions: 102

Compression:

Stored size: 1.18 KB

Contents

Hike
====

Hike is a Ruby library for finding files in a set of paths. Use it to
implement search paths, load paths, and the like.

# Examples

Find Ruby files in this project:

    trail = Hike::Trail.new "/Users/sam/Projects/hike"
    trail.append_extension ".rb"
    trail.append_paths "lib", "test"

    trail.find "hike/trail"
    # => "/Users/sam/Projects/hike/lib/hike/trail.rb"

    trail.find "test_trail"
    # => "/Users/sam/Projects/hike/test/test_trail.rb"

Explore your Ruby load path:

    trail = Hike::Trail.new "/"
    trail.append_extensions ".rb", ".bundle"
    trail.append_paths *$:

    trail.find "net/http"
    # => "/Users/sam/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/net/http.rb"

    trail.find "strscan"
    # => "/Users/sam/.rvm/rubies/ree-1.8.7-2010.02/lib/ruby/1.8/i686-darwin10.4.0/strscan.bundle"

Explore your shell path:

    trail = Hike::Trail.new "/"
    trail.append_paths *ENV["PATH"].split(":")

    trail.find "ls"
    # => "/bin/ls"

    trail.find "gem"
    # => "/Users/sam/.rvm/rubies/ree-1.8.7-2010.02/bin/gem"

# Installation

    $ gem install hike

# License

Copyright (c) 2011 Sam Stephenson.

Released under the MIT license. See `LICENSE` for details.

Version data entries

102 entries across 80 versions & 21 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/hike-1.2.3/README.md
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/hike-1.2.3/README.md
solidus_backend-1.0.0.pre vendor/bundle/gems/hike-1.2.3/README.md
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/hike-1.2.1/README.md
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/hike-1.2.1/README.md
hike-2.1.3 README.md
hike-2.1.2 README.md
hike-2.1.1 README.md
hike-2.1.0 README.md
hike-2.0.0 README.md
challah-1.0.0 vendor/bundle/gems/hike-1.2.3/README.md
swipe-rails-0.0.5 vendor/bundle/gems/hike-1.2.3/README.md
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/hike-1.2.1/README.md
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/hike-1.2.1/README.md
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/hike-1.2.1/README.md
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/hike-1.2.1/README.md
hike-1.2.3 README.md
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/hike-1.2.1/README.md
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/hike-1.2.1/README.md
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/hike-1.2.2/README.md