Skip to content
Browse files

clean up rake tasks a little, put my email in the gemspec for now

  • Loading branch information...
1 parent 5395849 commit cc241209ec7eee61fdc78ccdadcb365e60ec46af @greatseth committed Mar 4, 2009
Showing with 12 additions and 12 deletions.
  1. +2 −10 Rakefile
  2. +10 −2 tasks/testing.rake
View
12 Rakefile
@@ -2,14 +2,6 @@ require "rubygems"
require "fileutils"
require "echoe"
-begin
- require "spec/rake/spectask"
-rescue LoadError
- puts "To use rspec for testing you must install rspec gem:"
- puts "$ sudo gem install rspec"
- exit
-end
-
__HERE__ = File.dirname(__FILE__)
require File.join(__HERE__, 'lib', 'rvideo', 'version')
require File.join(__HERE__, 'lib', 'rvideo')
@@ -20,7 +12,7 @@ AUTHOR = [
"Jonathan Dahl (Slantwise Design)",
"Seth Thomas Rasmussen"
]
-EMAIL = "jon@slantwisedesign.com"
+EMAIL = "sethrasmussen@gmail.com"
DESCRIPTION = "Inspect and transcode video and audio files."
NAME = "rvideo"
@@ -53,6 +45,6 @@ Echoe.new NAME do |p|
end
# Load supporting Rake files
-Dir[File.dirname(__FILE__) + "/tasks/*.rake"].each { |t| load t }
+Dir[File.join(__HERE__, "tasks", "*.rake")].each { |t| load t }
puts "#{NAME} #{VERS}"
View
12 tasks/testing.rake
@@ -1,12 +1,20 @@
+begin
+ require "spec/rake/spectask"
+rescue LoadError
+ puts "To use rspec for testing you must install rspec gem:"
+ puts "$ sudo gem install rspec"
+ exit
+end
+
namespace :spec do
desc "Run Unit Specs"
- Spec::Rake::SpecTask.new("units") do |t|
+ Spec::Rake::SpecTask.new("units") do |t|
t.spec_files = FileList['spec/units/**/*.rb']
t.spec_opts = %w( --color )
end
desc "Run Integration Specs"
- Spec::Rake::SpecTask.new("integrations") do |t|
+ Spec::Rake::SpecTask.new("integrations") do |t|
t.spec_files = FileList['spec/integrations/**/*.rb']
t.spec_opts = %w( --color )
end

0 comments on commit cc24120

Please sign in to comment.
Something went wrong with that request. Please try again.