updates bundler and adds needed symlinks to make features run w/bundler

This commit is contained in:
Ben Mabey 2010-05-30 22:37:23 -06:00
parent bdad66c825
commit 0bcd3efcd0
6 changed files with 79 additions and 56 deletions

View file

@ -1,6 +1,7 @@
source "http://rubygems.org" source "http://rubygems.org"
group :development do group :development do
gem "mysql" gem "mysql"
gem 'sqlite3-ruby'
gem "rspec", "1.3.0" gem "rspec", "1.3.0"
gem "cucumber" gem "cucumber"
gem "jeweler" gem "jeweler"
@ -9,6 +10,8 @@ group :development do
gem "bson_ext" gem "bson_ext"
gem "mongo_mapper" gem "mongo_mapper"
gem "datamapper" gem "datamapper"
gem "data_objects"
gem "do_sqlite3"
gem "couch_potato" gem "couch_potato"
gem "activerecord" gem "activerecord"
gem "rake" gem "rake"

View file

@ -1,4 +1,69 @@
--- ---
dependencies:
ruby-debug:
group:
- :development
version: ">= 0"
datamapper:
group:
- :development
version: ">= 0"
bson_ext:
group:
- :development
version: ">= 0"
mongo:
group:
- :development
version: ">= 0"
activerecord:
group:
- :development
version: ">= 0"
mongo_mapper:
group:
- :development
version: ">= 0"
sqlite3-ruby:
group:
- :development
version: ">= 0"
mysql:
group:
- :development
version: ">= 0"
mongo_ext:
group:
- :development
version: ">= 0"
data_objects:
group:
- :development
version: ">= 0"
rake:
group:
- :development
version: ">= 0"
rspec:
group:
- :development
version: = 1.3.0
couch_potato:
group:
- :development
version: ">= 0"
jeweler:
group:
- :development
version: ">= 0"
cucumber:
group:
- :development
version: ">= 0"
do_sqlite3:
group:
- :development
version: ">= 0"
specs: specs:
- rake: - rake:
version: 0.8.7 version: 0.8.7
@ -38,6 +103,8 @@ specs:
version: 1.0.5 version: 1.0.5
- cucumber: - cucumber:
version: 0.7.3 version: 0.7.3
- data_objects:
version: 0.10.2
- extlib: - extlib:
version: 0.9.15 version: 0.9.15
- dm-core: - dm-core:
@ -58,6 +125,8 @@ specs:
version: 0.10.1 version: 0.10.1
- datamapper: - datamapper:
version: 0.10.1 version: 0.10.1
- do_sqlite3:
version: 0.10.2
- gemcutter: - gemcutter:
version: 0.5.0 version: 0.5.0
- git: - git:
@ -86,60 +155,9 @@ specs:
version: 0.10.3 version: 0.10.3
- ruby-debug: - ruby-debug:
version: 0.10.3 version: 0.10.3
hash: f2c77e94ff3c3ceb3ffc6a4c42f63e9eff224246 - sqlite3-ruby:
version: 1.2.5
hash: c37ee43fed255276a87c138cb08b2024ac62ae38
sources: sources:
- Rubygems: - Rubygems:
uri: http://rubygems.org uri: http://rubygems.org
dependencies:
ruby-debug:
version: ">= 0"
group:
- :development
datamapper:
version: ">= 0"
group:
- :development
bson_ext:
version: ">= 0"
group:
- :development
mongo_ext:
version: ">= 0"
group:
- :development
activerecord:
version: ">= 0"
group:
- :development
mongo_mapper:
version: ">= 0"
group:
- :development
mysql:
version: ">= 0"
group:
- :development
rspec:
version: = 1.3.0
group:
- :development
couch_potato:
version: ">= 0"
group:
- :development
rake:
version: ">= 0"
group:
- :development
mongo:
version: ">= 0"
group:
- :development
jeweler:
version: ">= 0"
group:
- :development
cucumber:
version: ">= 0"
group:
- :development

1
examples/Gemfile Symbolic link
View file

@ -0,0 +1 @@
../Gemfile

1
examples/Gemfile.lock Symbolic link
View file

@ -0,0 +1 @@
../Gemfile.lock

View file

@ -1,4 +1,5 @@
require 'rubygems' require 'rubygems'
require 'bundler'
Bundler.setup Bundler.setup
require 'spec/expectations' require 'spec/expectations'
require 'ruby-debug' require 'ruby-debug'
@ -11,7 +12,6 @@ strategy = ENV['STRATEGY']
multiple_db = ENV['MULTIPLE_DBS'] multiple_db = ENV['MULTIPLE_DBS']
if orm && strategy if orm && strategy
$:.unshift(File.dirname(__FILE__) + '/../../../lib') $:.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'database_cleaner' require 'database_cleaner'

View file

@ -10,7 +10,7 @@ class FeatureRunner
@strategy || 'truncation' @strategy || 'truncation'
end end
def go feature def go(feature)
full_dir ||= File.expand_path(File.dirname(__FILE__) + "/../../examples/") full_dir ||= File.expand_path(File.dirname(__FILE__) + "/../../examples/")
Dir.chdir(full_dir) do Dir.chdir(full_dir) do