Skip to content

Commit

Permalink
Move tasks out of lib/ to avoid namespace pollution Issue #566
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Jun 27, 2013
1 parent 1d09b6b commit 91205d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ RSpec::Core::RakeTask.new(:spec) do |t|
end

# load custom rake tasks
Dir["#{File.dirname(__FILE__)}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
Dir["#{File.dirname(__FILE__)}/tasks/**/*.rake"].sort.each { |ext| load ext }
2 changes: 1 addition & 1 deletion lib/tasks/corpus.rake → tasks/corpus.rake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace :corpus do

task :load_mail do
require File.expand_path('../../../spec/environment')
require File.expand_path('../../spec/environment', __FILE__)
require 'mail'
end

Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/ragel.rake → tasks/ragel.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'erb'

MAIL_ROOT = File.expand_path("../../..", __FILE__)
MAIL_ROOT = File.expand_path("../..", __FILE__)
require "#{MAIL_ROOT}/lib/mail/parsers/ragel/parser_info"

namespace :ragel do
Expand Down

0 comments on commit 91205d6

Please sign in to comment.