Skip to content

Commit

Permalink
using bundler for managing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Patryk Peszko authored and XING Engineering Dudes committed Feb 27, 2010
1 parent d1276f9 commit 7d353fc
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .bundle/environment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
require 'digest/sha1'

# DO NOT MODIFY THIS FILE
module Bundler
FINGERPRINT = "9f655d7d490ccc8451007dcb28bd7f880a2aa04a"
LOAD_PATHS = ["/Library/Ruby/Gems/1.8/gems/josevalim-rails-footnotes-3.6.2/lib", "/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.1/lib", "/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.1/ext", "/Library/Ruby/Gems/1.8/gems/thoughtbot-factory_girl-1.2.2/lib", "/Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib", "/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib", "/Library/Ruby/Gems/1.8/gems/json_pure-1.2.0/lib", "/Library/Ruby/Gems/1.8/gems/redgreen-1.2.2/lib", "/Library/Ruby/Gems/1.8/gems/cucumber-rails-0.2.3/lib", "/Library/Ruby/Gems/1.8/gems/rack-1.1.0/lib", "/Library/Ruby/Gems/1.8/gems/webrat-0.6.0/lib", "/Library/Ruby/Gems/1.8/gems/database_cleaner-0.4.1/lib", "/Library/Ruby/Gems/1.8/gems/mislav-will_paginate-2.3.11/lib", "/Library/Ruby/Gems/1.8/gems/authlogic-2.1.3/lib", "/Library/Ruby/Gems/1.8/gems/diff-lcs-1.1.2/lib", "/Library/Ruby/Gems/1.8/gems/rspec-1.2.9/lib", "/Library/Ruby/Gems/1.8/gems/rspec-rails-1.2.9/lib", "/Library/Ruby/Gems/1.8/gems/polyglot-0.2.9/lib", "/Library/Ruby/Gems/1.8/gems/treetop-1.4.3/lib", "/Library/Ruby/Gems/1.8/gems/lukeredpath-simpleconfig-1.0.2/lib", "/Library/Ruby/Gems/1.8/gems/ruby-net-ldap-0.0.4/lib", "/Library/Ruby/Gems/1.8/gems/term-ansicolor-1.0.4/lib", "/Library/Ruby/Gems/1.8/gems/cucumber-0.6.1/lib"]
AUTOREQUIRES = {:test=>["redgreen", "thoughtbot-factory_girl", "webrat", "cucumber", "rspec", "rspec-rails"], :default=>["authlogic", "mislav-will_paginate", "lukeredpath-simpleconfig", "ruby-net-ldap"], :development=>["josevalim-rails-footnotes"], :cucumber=>["cucumber-rails", "database_cleaner", "webrat", "rspec", "rspec-rails", "thoughtbot-factory_girl"]}

def self.match_fingerprint
print = Digest::SHA1.hexdigest(File.read(File.expand_path('../../Gemfile', __FILE__)))
unless print == FINGERPRINT
abort 'Gemfile changed since you last locked. Please `bundle lock` to relock.'
end
end

def self.setup(*groups)
match_fingerprint
LOAD_PATHS.each { |path| $LOAD_PATH.unshift path }
end

def self.require(*groups)
groups = [:default] if groups.empty?
groups.each do |group|
(AUTOREQUIRES[group] || []).each { |file| Kernel.require file }
end
end

# Setup bundle when it's required.
setup
end
31 changes: 31 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# A sample Gemfile
source :gemcutter
#
# gem "rails"

gem "authlogic", "2.1.3"
gem "mislav-will_paginate", "2.3.11", :lib => "will_paginate"
gem "lukeredpath-simpleconfig", "1.0.2", :lib => "simpleconfig"
gem "ruby-net-ldap", "0.0.4", :lib => "net/ldap"

group :development do
gem "josevalim-rails-footnotes", :lib => "rails-footnotes"
end

group :test do
gem "redgreen"
gem "thoughtbot-factory_girl", "1.2.2", :lib => "factory_girl"
gem "webrat", "0.6.0", :lib => false
gem "cucumber", "0.6.1", :lib => false
gem "rspec", "1.2.9", :lib => false
gem "rspec-rails", "1.2.9", :lib => false
end

group :cucumber do
gem 'cucumber-rails', '>=0.2.3'
gem 'database_cleaner', '>=0.2.3'
gem 'webrat', '>=0.6.0'
gem 'rspec', '>=1.2.9'
gem 'rspec-rails', '>=1.2.9'
gem "thoughtbot-factory_girl", "1.2.2", :lib => "factory_girl"
end
68 changes: 68 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
dependencies:
- authlogic: = 2.1.3
- mislav-will_paginate: = 2.3.11
- lukeredpath-simpleconfig: = 1.0.2
- ruby-net-ldap: = 0.0.4
- josevalim-rails-footnotes: ">= 0"
- redgreen: ">= 0"
- thoughtbot-factory_girl: = 1.2.2
- webrat: = 0.6.0
- cucumber: = 0.6.1
- rspec: = 1.2.9
- rspec-rails: = 1.2.9
- cucumber-rails: ">= 0.2.3"
- database_cleaner: ">= 0.2.3"
- webrat: ">= 0.6.0"
- rspec: ">= 1.2.9"
- rspec-rails: ">= 1.2.9"
- thoughtbot-factory_girl: = 1.2.2
specs:
- josevalim-rails-footnotes:
version: 3.6.2
- nokogiri:
version: 1.4.1
- thoughtbot-factory_girl:
version: 1.2.2
- builder:
version: 2.1.2
- activesupport:
version: 2.3.5
- json_pure:
version: 1.2.0
- redgreen:
version: 1.2.2
- cucumber-rails:
version: 0.2.3
- rack:
version: 1.1.0
- webrat:
version: 0.6.0
- database_cleaner:
version: 0.4.1
- mislav-will_paginate:
version: 2.3.11
- authlogic:
version: 2.1.3
- diff-lcs:
version: 1.1.2
- rspec:
version: 1.2.9
- rspec-rails:
version: 1.2.9
- polyglot:
version: 0.2.9
- treetop:
version: 1.4.3
- lukeredpath-simpleconfig:
version: 1.0.2
- ruby-net-ldap:
version: 0.0.4
- term-ansicolor:
version: 1.0.4
- cucumber:
version: 0.6.1
hash: 9f655d7d490ccc8451007dcb28bd7f880a2aa04a
sources:
- Rubygems:
uri: http://gemcutter.org

0 comments on commit 7d353fc

Please sign in to comment.