Rakefile in twog-0.3.1 vs Rakefile in twog-0.3.2
- old
+ new
@@ -1,41 +1,41 @@
require 'rubygems'
-require 'spec/rake/spectask'
-require 'rake/gempackagetask'
+require 'rspec/core/rake_task'
+require 'rubygems/package_task'
+task :default => ['spec:coverage']
namespace :twog do
desc "Clean out the coverage and the pkg"
task :clean do
rm_rf 'coverage'
rm_rf 'pkg'
end
end
desc "Run all specs in spec directory"
-Spec::Rake::SpecTask.new(:spec) do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--color']
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
+ spec.rspec_opts = ['--color']
end
namespace :spec do
- desc "Run rcov on the spec files"
- Spec::Rake::SpecTask.new(:coverage) do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--color']
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec']
+ desc "Run coverage on the spec files"
+ RSpec::Core::RakeTask.new(:coverage) do |spec|
+ spec.pattern = FileList['spec/**/*_spec.rb']
+ spec.rspec_opts = ['--color']
+ ENV['COVERAGE'] = "true"
end
end
begin
gem 'jeweler', '>= 0.11.0'
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "twog"
s.summary = %Q{Tool to tweet blog posts}
s.email = ["jmeridth@gmail.com"]
- s.homepage = "http://github.com/armmer/twog"
+ s.homepage = "http://github.com/jmeridth/twog"
s.description = "Tool to tweet blog posts"
s.authors = ["Jason Meridth"]
s.rubyforge_project = "twog"
s.add_dependency('twitter_oauth', '>= 0.3.3')
s.add_dependency('bitly', '>= 0.4.0')