Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use bundler for deps

  • Loading branch information...
commit 35b845270f074541480938c12c804197f9afc495 1 parent 3e19cd4
@freels freels authored
Showing with 31 additions and 35 deletions.
  1. +8 −0 Gemfile
  2. +23 −35 Rakefile
View
8 Gemfile
@@ -0,0 +1,8 @@
+source 'http://gems.local.twitter.com'
+source :rubygems
+
+gem 'jeweler'
+gem 'mysql'
+gem 'rspec', '~>1.3.2'
+gem 'rr'
+gem 'diff-lcs'
View
58 Rakefile
@@ -1,48 +1,36 @@
ROOT_DIR = File.expand_path(File.dirname(__FILE__))
-require 'rubygems'
-require 'rake'
-
begin
- require 'jeweler'
- Jeweler::Tasks.new do |gem|
- gem.name = "gizzmo"
- gem.summary = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
- gem.description = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
- gem.email = "kmaxwell@twitter.com"
- gem.homepage = "http://github.com/twitter/gizzmo"
- gem.authors = ["Kyle Maxwell"]
- end
- Jeweler::GemcutterTasks.new
+ require 'rubygems'
+ require 'bundler/setup'
rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
+ $stderr.puts "bundler not found. run `gem install bundler`"
end
+require 'rake'
+require 'jeweler'
+require 'spec/rake/spectask'
+require 'rdoc/task'
-begin
- require 'spec/rake/spectask'
- Spec::Rake::SpecTask.new(:spec) do |t|
- spec_opts = File.expand_path('test/spec.opts', ROOT_DIR)
- if File.exist? spec_opts
- t.spec_opts = ['--options', "\"#{spec_opts}\""]
- end
- t.spec_files = FileList['test/**/*_spec.rb']
- end
-rescue LoadError
- $stderr.puts "RSpec required to run tests."
-end
+task :default => :spec
-task :test do
- puts
- puts "=" * 79
- puts "You might want to read the README before running tests."
- puts "=" * 79
- sleep 2
- exec File.join(File.dirname(__FILE__), "test", "test.sh")
+Jeweler::Tasks.new do |gem|
+ gem.name = "gizzmo"
+ gem.summary = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
+ gem.description = %Q{Gizzmo is a command-line client for managing gizzard clusters.}
+ gem.email = "kmaxwell@twitter.com"
+ gem.homepage = "http://github.com/twitter/gizzmo"
+ gem.authors = ["Kyle Maxwell"]
end
+Jeweler::GemcutterTasks.new
-task :default => :spec
+Spec::Rake::SpecTask.new(:spec) do |t|
+ spec_opts = File.expand_path('test/spec.opts', ROOT_DIR)
+ if File.exist? spec_opts
+ t.spec_opts = ['--options', "\"#{spec_opts}\""]
+ end
+ t.spec_files = FileList['test/**/*_spec.rb']
+end
-require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
Please sign in to comment.
Something went wrong with that request. Please try again.