Skip to content

Commit

Permalink
Use bundler ~> 0.9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Mar 7, 2010
1 parent a701e87 commit 798d810
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,8 +1,8 @@
.DS_Store
.bundle
coverage
rdoc
gems
bin
pkg
spec/fixtures/emails/failed_emails/
mail.tmproj
4 changes: 2 additions & 2 deletions Gemfile
@@ -1,4 +1,4 @@
source :gemcutter
source 'http://rubygems.org'

gem "tlsmail" if RUBY_VERSION <= '1.8.6'
gem 'activesupport', ">= 2.3.4"
Expand All @@ -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"
Expand Down
8 changes: 2 additions & 6 deletions Rakefile
@@ -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"
Expand All @@ -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
Expand Down
9 changes: 9 additions & 0 deletions spec/environment.rb
@@ -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.