Browse files

reverting to old rakefile

  • Loading branch information...
1 parent ebe2820 commit d1313adfe49d27cd7159782df96fc7653f305f21 @ballantyne committed Sep 23, 2011
Showing with 43 additions and 37 deletions.
  1. +1 −18 Gemfile
  2. +7 −0 Gemfile.lock
  3. +35 −19 Rakefile
View
19 Gemfile
@@ -3,21 +3,4 @@ gem "oauth"
gem "hashie"
gem "httparty"
gem 'crack'
-
-
-group :test do
- # For Development
- # gem "rake"
- # gem "rspec", "~> 2.0"
- # gem "cucumber"
- # gem "aruba"
-
- # # For Gem release
- # gem "jeweler"
- #
- # # For Guard
- # gem "rb-fsevent"
- # gem "growl_notify"
- # gem "guard-rspec"
- # gem "guard-cucumber"
-end
+gem "jeweler"
View
7 Gemfile.lock
@@ -2,10 +2,16 @@ GEM
remote: http://rubygems.org/
specs:
crack (0.1.8)
+ git (1.2.5)
hashie (1.1.0)
httparty (0.7.8)
crack (= 0.1.8)
+ jeweler (1.6.4)
+ bundler (~> 1.0)
+ git (>= 1.2.5)
+ rake
oauth (0.4.5)
+ rake (0.9.2)
PLATFORMS
ruby
@@ -14,4 +20,5 @@ DEPENDENCIES
crack
hashie
httparty
+ jeweler
oauth
View
54 Rakefile
@@ -1,24 +1,5 @@
require 'rubygems'
-require 'bundler/setup'
require 'rake'
-require 'rspec/core/rake_task'
-require 'cucumber/rake/task'
-
-desc 'Default: Run the specs'
-task :default => ['spec:unit', 'cucumber']
-
-namespace :spec do
- desc 'Run unit specs'
- RSpec::Core::RakeTask.new('unit') do |t|
- t.pattern = 'spec/{*_spec.rb,weibo/**/*_spec.rb}'
- end
-end
-task :spec => 'spec:unit'
-
-desc 'Cucumber'
-Cucumber::Rake::Task.new(:cucumber) do |t|
- t.fork = true
-end
begin
require 'jeweler'
@@ -29,6 +10,7 @@ begin
gem.email = "ussballantyne@gmail.com"
gem.homepage = "http://github.com/ballantyne/weibo"
gem.authors = ["Scott Ballantyne"]
+ gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
gem.add_dependency "oauth", "~> 0.4.1"
gem.add_dependency "hashie"
gem.add_dependency "httparty", ">= 0.5.2"
@@ -38,3 +20,37 @@ begin
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'lib' << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+end
+
+begin
+ require 'rcov/rcovtask'
+ Rcov::RcovTask.new do |test|
+ test.libs << 'test'
+ test.pattern = 'test/**/test_*.rb'
+ test.verbose = true
+ end
+rescue LoadError
+ task :rcov do
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
+ end
+end
+
+task :test => :check_dependencies
+
+task :default => :test
+
+require 'rake/rdoctask'
+Rake::RDocTask.new do |rdoc|
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
+
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = "weibo #{version}"
+ rdoc.rdoc_files.include('README*')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end

0 comments on commit d1313ad

Please sign in to comment.