Skip to content

Commit

Permalink
Modified Rakefile to use installed gems rather than local Ruby files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed Dec 4, 2007
1 parent 2a2baf4 commit bdb0a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -10,7 +10,7 @@ PACKAGES = {
task :default => :build

task :build => [:create_directory, :destroy] do
require File.dirname(__FILE__) + '/tools/packr'
require 'packr'
PACKAGES.each do |name, files|
code = files.inject('') { |memo, source_file| memo << File.read("#{SOURCE_DIR}/#{source_file}.js") + "\n" }
code = Packr.pack(code, :shrink_vars => true) unless ENV['d']
Expand All @@ -34,7 +34,7 @@ end

desc "Searches all project files and lists those whose contents match the regexp"
task :grape do
require File.dirname(__FILE__) + '/tools/grape'
require 'grape'
grape = Grape.new(:dir => 'src', :extensions => %w(js))
results = grape.search(ENV['q'],
:case_sensitive => !!ENV['cs'],
Expand Down

0 comments on commit bdb0a6b

Please sign in to comment.