Skip to content

Commit

Permalink
reduce dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-burns committed Oct 20, 2008
1 parent 42cf9d2 commit 7f1e7f5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 28 deletions.
18 changes: 5 additions & 13 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
@@ -1,17 +1,17 @@
require 'rake' require 'rake'
require 'rake/testtask' require 'rake/testtask'
require 'date' require 'date'

test_files_pattern = 'test/rails_root/test/{unit,functional,other}/**/*_test.rb' test_files_pattern = 'test/rails_root/test/{unit,functional,other}/**/*_test.rb'
Rake::TestTask.new do |t| Rake::TestTask.new do |t|
t.libs << 'lib' t.libs << 'lib'
t.pattern = test_files_pattern t.pattern = test_files_pattern
t.verbose = false t.verbose = false
end end

desc "Run the test suite" desc "Run the test suite"
task :default => :test task :default => :test

spec = Gem::Specification.new do |s| spec = Gem::Specification.new do |s|
s.name = "clearance" s.name = "clearance"
s.summary = "Simple, complete Rails authentication." s.summary = "Simple, complete Rails authentication."
Expand All @@ -21,15 +21,7 @@ spec = Gem::Specification.new do |s|
s.authors = ["thoughtbot, inc.", "Dan Croak", "Josh Nichols", "Jason Morrison", "Mike Burns", "Mike Breen"] s.authors = ["thoughtbot, inc.", "Dan Croak", "Josh Nichols", "Jason Morrison", "Mike Burns", "Mike Breen"]
s.files = FileList["[A-Z]*", "{generators,lib,test}/**/*"] s.files = FileList["[A-Z]*", "{generators,lib,test}/**/*"]
end end


begin
require 'rubygems'
require 'jeweler'
Jeweler.gemspec = spec
rescue LoadError
puts "Jeweler not available. sudo gem install technicalpickles-jeweler --source=http://gems.github.com"
end

namespace :generator do namespace :generator do
task :templates do task :templates do
app_files = FileList["test/rails_root/app/{controllers,models,views}/**/*"] app_files = FileList["test/rails_root/app/{controllers,models,views}/**/*"]
Expand All @@ -55,4 +47,4 @@ namespace :generator do
end end
end end
end end
end end
Loading

0 comments on commit 7f1e7f5

Please sign in to comment.