Permalink
Browse files

Use bundler ~> 0.9.10

  • Loading branch information...
1 parent a701e87 commit 798d810a8f1774f8ba0c9c00a2e092a8b9c38d0e @jeremy jeremy committed Mar 7, 2010
Showing with 14 additions and 9 deletions.
  1. +1 −1 .gitignore
  2. +2 −2 Gemfile
  3. +2 −6 Rakefile
  4. +9 −0 spec/environment.rb
View
@@ -1,8 +1,8 @@
.DS_Store
+.bundle
coverage
rdoc
gems
-bin
pkg
spec/fixtures/emails/failed_emails/
mail.tmproj
View
@@ -1,4 +1,4 @@
-source :gemcutter
+source 'http://rubygems.org'
gem "tlsmail" if RUBY_VERSION <= '1.8.6'
gem 'activesupport', ">= 2.3.4"
@@ -7,7 +7,7 @@ gem "mime-types"
group :test do
gem "rcov"
gem "rake"
- gem "bundler"
+ gem "bundler", "~> 0.9.10"
gem "cucumber"
gem "rspec"
gem "diff-lcs"
View
@@ -1,14 +1,10 @@
-environment = File.expand_path('../vendor/gems/environment', __FILE__)
-if File.exist?("#{environment}.rb")
- require environment
-end
+require File.expand_path('../spec/environment', __FILE__)
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/testtask'
require 'spec/rake/spectask'
require 'cucumber/rake/task'
-require 'bundler'
spec = Gem::Specification.new do |s|
s.name = "mail"
@@ -31,7 +27,7 @@ spec = Gem::Specification.new do |s|
end
Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
+ pkg.gem_spec = spec
end
task :default => :spec
View
@@ -0,0 +1,9 @@
+begin
+ require File.expand_path('../../.bundle/environment', __FILE__)
+rescue LoadError
+ require 'rubygems'
+ require 'bundler'
+ Bundler.setup
+end
+
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

0 comments on commit 798d810

Please sign in to comment.