Skip to content

Commit

Permalink
reverting to old rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Ballantyne committed Sep 23, 2011
1 parent ebe2820 commit d1313ad
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 37 deletions.
19 changes: 1 addition & 18 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -14,4 +20,5 @@ DEPENDENCIES
crack
hashie
httparty
jeweler
oauth
54 changes: 35 additions & 19 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -29,6 +10,7 @@ begin
gem.email = "[email protected]"
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"
Expand All @@ -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.