Rakefile in table-for-0.0.11 vs Rakefile in table-for-0.0.12
- old
+ new
@@ -1,58 +1,21 @@
-begin
- # Rspec 1.3.0
- require 'spec/rake/spectask'
+require 'rspec/core/rake_task'
- desc 'Default: run specs'
- task :default => :spec
- Spec::Rake::SpecTask.new do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- end
+RSpec::Core::RakeTask.new('spec')
- Spec::Rake::SpecTask.new('rcov') do |t|
- t.spec_files = FileList["spec/**/*_spec.rb"]
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- # Rspec 2.0
- require 'rspec/core/rake_task'
+# If you want to make this the default task
+task :default => :spec
- desc 'Default: run specs'
- task :default => :spec
- Rspec::Core::RakeTask.new do |t|
- t.pattern = "spec/**/*_spec.rb"
- end
-
- Rspec::Core::RakeTask.new('rcov') do |t|
- t.pattern = "spec/**/*_spec.rb"
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
- end
-
-rescue LoadError
- puts "Rspec not available. Install it with: gem install rspec"
-end
-
-namespace 'rails2.3' do
- task :spec do
- gemfile = File.join(File.dirname(__FILE__), 'lib', 'has_relationship', 'compatibility', 'Gemfile')
- ENV['BUNDLE_GEMFILE'] = gemfile
- Rake::Task['spec'].invoke
- end
-end
-
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "table-for"
gemspec.summary = ""
gemspec.description = ""
gemspec.email = "hunterae@gmail.com"
gemspec.homepage = "http://github.com/hunterae/table-for"
gemspec.authors = ["Andrew Hunter"]
- gemspec.files = FileList["[A-Z]*", "{lib,spec,app,rails}/**/*"] - FileList["**/*.log"]
+ gemspec.files = FileList["[A-Z]*", "{lib,spec,app,rails}/**/*"] - FileList["**/*.log", "Gemfile", "Gemfile.lock"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
\ No newline at end of file