Permalink
Browse files

using Bundler for development

  • Loading branch information...
goncalossilva committed Sep 17, 2010
1 parent 513b01b commit 9c23c6015b2c9d21dd57e898d488942e7d4cb7b5
Showing with 20 additions and 4 deletions.
  1. +2 −1 .gitignore
  2. +7 −0 Gemfile
  3. +11 −3 Rakefile
View
@@ -1 +1,2 @@
-rails3_acts_as_paranoid-*.gem
+pkg
+.bundle
View
@@ -0,0 +1,7 @@
+source "http://rubygems.org"
+
+gem "rails3_acts_as_paranoid", :path => File.expand_path("..", __FILE__)
+
+# Development dependencies
+gem "rake"
+gem "activesupport"
View
@@ -1,6 +1,14 @@
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
+begin
+ require "bundler"
+ Bundler.setup
+rescue LoadError
+ $stderr.puts "You need to have Bundler installed to be able build this gem."
+end
+require "rake/testtask"
+require "rake/rdoctask"
+
+gemspec = eval(File.read(Dir["*.gemspec"].first))
+
desc 'Default: run unit tests.'
task :default => :test

0 comments on commit 9c23c60

Please sign in to comment.