Skip to content
Browse files

add bundler tasks

  • Loading branch information...
1 parent a1c01d6 commit a4a5d1d8bc8d34baea8c26ef0205d0dca630c50d @jsmestad committed Feb 16, 2012
Showing with 12 additions and 5 deletions.
  1. +8 −5 Rakefile
  2. +4 −0 stale_fish.gemspec
View
13 Rakefile
@@ -1,11 +1,13 @@
-require 'rake'
-require 'bundler'
+#!/usr/bin/env rake
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
+end
require 'rspec/core'
require 'rspec/core/rake_task'
-RSpec::Core::RakeTask.new(:spec) do |spec|
- spec.pattern = FileList['spec/**/*_spec.rb']
-end
+RSpec::Core::RakeTask.new(:spec)
task :default => :spec
@@ -24,3 +26,4 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
+Bundler::GemHelper.install_tasks
View
4 stale_fish.gemspec
@@ -1,10 +1,14 @@
+$:.push File.expand_path("../lib", __FILE__)
+
Gem::Specification.new do |s|
s.name = %q{stale_fish}
s.version = "1.3.1"
s.authors = ["Justin Smestad"]
s.date = %q{2012-02-16}
s.email = %q{justin.smestad@gmail.com}
s.homepage = %q{https://github.com/jsmestad/stale_fish}
+ s.summary = "Stub HTTP responses"
+ s.description = "Stub HTTP responses"
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]

0 comments on commit a4a5d1d

Please sign in to comment.
Something went wrong with that request. Please try again.