Skip to content

Commit

Permalink
Add lib/ to load path.
Browse files Browse the repository at this point in the history
Allows you to run script directly in shell instead of via gem.
  • Loading branch information
airblade committed Nov 15, 2012
1 parent a0e1a8c commit cb50e67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/magic_encoding
100644 → 100755
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


# A simple tool to prepend magic comments for encoding to multiple ".rb" files # A simple tool to prepend magic comments for encoding to multiple ".rb" files


$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require 'magic_encoding' require 'magic_encoding'


AddMagicComment.process(ARGV) AddMagicComment.process(ARGV)

0 comments on commit cb50e67

Please sign in to comment.