Skip to content

Commit

Permalink
Use Bundler in Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
James Herdman committed Jun 13, 2011
1 parent 29d9eb1 commit c0379ec
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions Rakefile
@@ -1,9 +1,14 @@
require "rspec"
require "rspec/core/rake_task"
require File.dirname(__FILE__) + "/lib/feedzirra.rb"
require 'bundler'
Bundler.setup

require 'rake'
require 'rdoc/task'
require 'rspec'
require 'rspec/core/rake_task'

$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'feedzirra/version'

# Grab recently touched specs
def recent_specs(touched_since)
recent_specs = FileList['app/**/*'].map do |path|

Expand All @@ -20,10 +25,6 @@ def recent_specs(touched_since)
recent_specs.uniq
end

desc "Run all the tests"
task :default => :spec

# Tasks
RSpec::Core::RakeTask.new do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end
Expand All @@ -46,8 +47,5 @@ RDoc::Task.new do |rd|
rd.options = ["--quiet", "--opname", "index.html", "--line-numbers", "--inline-source", '--main', 'README.rdoc']
end

task :install do
rm_rf "*.gem"
puts `gem build feedzirra.gemspec`
puts `sudo gem install feedzirra-#{Feedzirra::VERSION}.gem`
end
desc "Run all the tests"
task :default => :spec

0 comments on commit c0379ec

Please sign in to comment.