Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

start of bundler work

  • Loading branch information...
commit 63766b527656dc239612fbf2236df66ca1094c2b 1 parent 2f70a8e
Luke Baker lukebaker authored
69 Gemfile
View
@@ -0,0 +1,69 @@
+source :rubygems
+
+gem "rails", "2.3.5"
+gem "hoptoad_notifier", "2.4.9"
+gem "libxml-ruby", "0.9.7", :require => "libxml"
+gem "ambethia-smtp-tls", "1.1.2", :require => "smtp-tls"
+gem "paperclip", "2.3.1.1"
+gem "aws-s3", "0.6.2", :require => "aws/s3"
+gem "mime-types", "1.16", :require => "mime/types"
+gem "xml-simple", "1.0.12", :require => "xmlsimple"
+gem "yfactorial-utility_scopes", "0.2.2", :require => "utility_scopes"
+gem "justinfrench-formtastic", "0.2.2", :require => "formtastic"
+gem "josevalim-inherited_resources", "0.9.1", :require => "inherited_resources"
+gem "thoughtbot-clearance", "0.8.2", :require => "clearance"
+gem "fastercsv", "1.5.1"
+gem "redis-store", "0.3.9"
+gem "redis", "1.0.7"
+gem "will_paginate", "2.3.14"
+gem "geoip_city", "0.2.0"
+gem "geokit", "1.5.0"
+gem "crack", "0.1.4"
+gem "friendly_id", "2.2.5"
+gem "sax-machine", "0.0.14"
+gem "i18n", "0.3.7"
+gem "delayed_job", "2.0.6"
+gem "haml", "3.0.9"
+gem "newrelic_rpm", "3.3.0"
+
+group :production do
+ gem "rubaidh-google_analytics", "1.1.4", :require => "rubaidh/google_analytics"
+ gem 'sendgrid', '0.1.4'
+end
+
+group :staging do
+ gem "rubaidh-google_analytics", "1.1.4", :require => "rubaidh/google_analytics"
+ gem 'sendgrid', '0.1.4'
+end
+
+group :cucumber do
+ gem 'cucumber-rails', '0.3.2'
+ gem 'database_cleaner', '0.5.0'
+ gem 'capybara', '0.3.7'
+ gem 'rspec', '1.3.2'
+ gem 'rspec-rails', '1.3.4'
+ gem 'email_spec', "0.4.0", :require => 'email_spec'
+ gem 'timecop', '0.3.5'
+ gem 'sendgrid', '0.1.4'
+ gem 'thoughtbot-factory_girl', "~>1.2.1", :require => 'factory_girl'
+ gem 'thoughtbot-shoulda', "~> 2.10.1", :require => 'shoulda'
+end
+
+group :test do
+ gem 'cucumber', '1.1.0'
+ gem 'cucumber-rails', '0.3.2'
+ gem 'sqlite3', '>=1.3.3'
+ gem 'database_cleaner', '0.5.0'
+ gem 'capybara', '0.3.7'
+ gem 'thoughtbot-factory_girl', "~>1.2.1", :require => 'factory_girl'
+ gem 'thoughtbot-shoulda', "~> 2.10.1", :require => 'shoulda'
+ gem 'timecop', '0.3.5'
+ gem 'mysql'
+ gem 'rspec', '1.3.2'
+ gem 'rspec-rails', '1.3.4'
+ gem 'email_spec', '0.4.0'
+ gem 'sendgrid', '0.1.4'
+ gem 'pickle', '0.4.7'
+ gem 'fakeweb', '~>1.2.5'
+ gem 'jferris-mocha', '0.9.5.0.1241126838', :require => 'mocha'
+end
160 Gemfile.lock
View
@@ -0,0 +1,160 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (2.3.5)
+ actionpack (= 2.3.5)
+ actionpack (2.3.5)
+ activesupport (= 2.3.5)
+ rack (~> 1.0.0)
+ activerecord (2.3.5)
+ activesupport (= 2.3.5)
+ activeresource (2.3.5)
+ activesupport (= 2.3.5)
+ activesupport (2.3.5)
+ ambethia-smtp-tls (1.1.2)
+ aws-s3 (0.6.2)
+ builder
+ mime-types
+ xml-simple
+ builder (3.0.0)
+ capybara (0.3.7)
+ culerity (>= 0.2.4)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.2)
+ selenium-webdriver (>= 0.0.3)
+ childprocess (0.3.0)
+ ffi (~> 1.0.6)
+ crack (0.1.4)
+ cucumber (1.1.0)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.5.0)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.6)
+ cucumber-rails (0.3.2)
+ cucumber (>= 0.8.0)
+ culerity (0.2.15)
+ daemons (1.1.6)
+ database_cleaner (0.5.0)
+ delayed_job (2.0.6)
+ daemons
+ diff-lcs (1.1.3)
+ email_spec (0.4.0)
+ fakeweb (1.2.8)
+ fastercsv (1.5.1)
+ ffi (1.0.11)
+ friendly_id (2.2.5)
+ activerecord (>= 2.2.3)
+ activesupport (>= 2.2.3)
+ geoip_city (0.2.0)
+ geokit (1.5.0)
+ gherkin (2.5.4)
+ json (>= 1.4.6)
+ haml (3.0.9)
+ hoptoad_notifier (2.4.9)
+ activesupport
+ builder
+ i18n (0.3.7)
+ jferris-mocha (0.9.5.0.1241126838)
+ rake
+ josevalim-inherited_resources (0.9.1)
+ json (1.6.5)
+ justinfrench-formtastic (0.2.2)
+ libxml-ruby (0.9.7)
+ mime-types (1.16)
+ multi_json (1.0.4)
+ mysql (2.8.1)
+ newrelic_rpm (3.3.0)
+ nokogiri (1.5.0)
+ paperclip (2.3.1.1)
+ pickle (0.4.7)
+ cucumber (>= 0.8)
+ rake
+ rack (1.0.1)
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (2.3.5)
+ actionmailer (= 2.3.5)
+ actionpack (= 2.3.5)
+ activerecord (= 2.3.5)
+ activeresource (= 2.3.5)
+ activesupport (= 2.3.5)
+ rake (>= 0.8.3)
+ rake (0.9.2.2)
+ redis (1.0.7)
+ redis-store (0.3.9)
+ rspec (1.3.2)
+ rspec-rails (1.3.4)
+ rack (>= 1.0.0)
+ rspec (~> 1.3.1)
+ rubaidh-google_analytics (1.1.4)
+ actionpack
+ activesupport
+ rubyzip (0.9.5)
+ sax-machine (0.0.14)
+ nokogiri (> 0.0.0)
+ selenium-webdriver (2.17.0)
+ childprocess (>= 0.2.5)
+ ffi (~> 1.0.9)
+ multi_json (~> 1.0.4)
+ rubyzip
+ sendgrid (0.1.4)
+ sqlite3 (1.3.5)
+ term-ansicolor (1.0.7)
+ thoughtbot-clearance (0.8.2)
+ thoughtbot-factory_girl (1.2.2)
+ thoughtbot-shoulda (2.10.2)
+ timecop (0.3.5)
+ will_paginate (2.3.14)
+ xml-simple (1.0.12)
+ yfactorial-utility_scopes (0.2.2)
+ activerecord (>= 2.1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ ambethia-smtp-tls (= 1.1.2)
+ aws-s3 (= 0.6.2)
+ capybara (= 0.3.7)
+ crack (= 0.1.4)
+ cucumber (= 1.1.0)
+ cucumber-rails (= 0.3.2)
+ database_cleaner (= 0.5.0)
+ delayed_job (= 2.0.6)
+ email_spec (= 0.4.0)
+ fakeweb (~> 1.2.5)
+ fastercsv (= 1.5.1)
+ friendly_id (= 2.2.5)
+ geoip_city (= 0.2.0)
+ geokit (= 1.5.0)
+ haml (= 3.0.9)
+ hoptoad_notifier (= 2.4.9)
+ i18n (= 0.3.7)
+ jferris-mocha (= 0.9.5.0.1241126838)
+ josevalim-inherited_resources (= 0.9.1)
+ justinfrench-formtastic (= 0.2.2)
+ libxml-ruby (= 0.9.7)
+ mime-types (= 1.16)
+ mysql
+ newrelic_rpm (= 3.3.0)
+ paperclip (= 2.3.1.1)
+ pickle (= 0.4.7)
+ rails (= 2.3.5)
+ redis (= 1.0.7)
+ redis-store (= 0.3.9)
+ rspec (= 1.3.2)
+ rspec-rails (= 1.3.4)
+ rubaidh-google_analytics (= 1.1.4)
+ sax-machine (= 0.0.14)
+ sendgrid (= 0.1.4)
+ sqlite3 (>= 1.3.3)
+ thoughtbot-clearance (= 0.8.2)
+ thoughtbot-factory_girl (~> 1.2.1)
+ thoughtbot-shoulda (~> 2.10.1)
+ timecop (= 0.3.5)
+ will_paginate (= 2.3.14)
+ xml-simple (= 1.0.12)
+ yfactorial-utility_scopes (= 0.2.2)
13 config/boot.rb
View
@@ -106,5 +106,18 @@ def read_environment_rb
end
end
+class Rails::Boot
+ def run
+ load_initializer
+
+ Rails::Initializer.class_eval do
+ def load_gems
+ @bundler_loaded ||= Bundler.require :default, Rails.env
+ end
+ end
+
+ Rails::Initializer.run(:set_load_path)
+ end
+end
# All that for this:
Rails.boot!
15 config/environments/cucumber.rb
View
@@ -22,21 +22,6 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
-config.gem 'cucumber-rails', :lib => false, :version => '0.3.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/cucumber-rails'))
-config.gem 'database_cleaner', :lib => false, :version => '0.5.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/database_cleaner'))
-#config.gem 'webrat', :lib => false, :version => '>=0.7.0' unless File.directory?(File.join(Rails.root, 'vendor/plugins/webrat'))
-config.gem 'capybara', :lib => false, :version => '0.3.7' unless File.directory?(File.join(Rails.root, 'vendor/plugins/capybara'))
-config.gem 'rspec', :lib => false, :version => '1.3.2' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec'))
-config.gem 'rspec-rails', :lib => false, :version => '1.3.4' unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
-config.gem 'email_spec', :lib => 'email_spec', :version => '0.4.0'
-config.gem 'timecop', :version => '0.3.5'
-
-config.gem 'sendgrid',
- :version => '0.1.4'
-
-require 'factory_girl'
-require 'shoulda'
-
HOST = "localhost"
# Use a different test database / server for test purposes
API_HOST = "http://localhost:4000"
45 config/environments/test.rb
View
@@ -23,51 +23,6 @@
# rake gems:install RAILS_ENV=test
-config.gem 'cucumber',
- :version => '=0.8.5'
-config.gem 'cucumber-rails',
- :lib => false,
- :version => '0.3.0'
-config.gem 'sqlite3',
- :version => '>=1.3.3'
-config.gem 'database_cleaner',
- :version => '=0.5.0'
-config.gem 'capybara',
- :version => '=1.0.1'
-config.gem 'thoughtbot-factory_girl',
- :lib => 'factory_girl',
- :source => 'http://gems.github.com',
- :version => '>= 1.2.1'
-config.gem 'thoughtbot-shoulda',
- :lib => 'shoulda',
- :source => 'http://gems.github.com',
- :version => '>= 2.10.1'
-config.gem 'jtrupiano-timecop',
- :lib => 'timecop',
- :source => 'http://gems.github.com',
- :version => '0.2.1'
-config.gem 'timecop',
- :version => '=0.3.5'
-config.gem 'mysql'
-config.gem 'rspec',
- :lib => false,
- :version => '=1.3.2'
-config.gem 'rspec-rails',
- :lib => false,
- :version => '=1.3.4'
-config.gem 'email_spec',
- :version => '=0.4.0'
-config.gem 'sendgrid',
- :version => '0.1.4'
-config.gem 'pickle',
- :version => '0.4.7'
-config.gem 'fakeweb',
- :version => '>= 1.2.5'
-config.gem 'jferris-mocha',
- :version => '0.9.5.0.1241126838',
- :source => 'http://gems.github.com',
- :lib => 'mocha'
-
HOST = 'localhost'
API_HOST = "http://localhost:4000"
5 config/initializers/google_analytics.rb
View
@@ -1,6 +1,5 @@
# Google Analytics is only available in production by default
# http://github.com/rubaidh/google_analytics
-if (RAILS_ENV == 'production') || (RAILS_ENV == 'staging') #ENV['GOOGLE_ANALYTICS_TRACKER_ID']
- Rubaidh::GoogleAnalytics.tracker_id = ENV['GOOGLE_ANALYTICS_TRACKER_ID']
-end
+Rubaidh::GoogleAnalytics.environments = ['production', 'staging']
+Rubaidh::GoogleAnalytics.tracker_id = ENV['GOOGLE_ANALYTICS_TRACKER_ID'] || "UA-11703548-1"
20 config/preinitializer.rb
View
@@ -0,0 +1,20 @@
+begin
+ require "rubygems"
+ require "bundler"
+rescue LoadError
+ raise "Could not load the bundler gem. Install it with `gem install bundler`."
+end
+
+if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
+ raise RuntimeError, "Your bundler version is too old for Rails 2.3." +
+ "Run `gem install bundler` to upgrade."
+end
+
+begin
+ # Set up load paths for all bundled gems
+ ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
+ Bundler.setup
+rescue Bundler::GemNotFound
+ raise RuntimeError, "Bundler couldn't find some gems." +
+ "Did you run `bundle install`?"
+end
1  script/cucumber
View
@@ -5,6 +5,7 @@ if vendored_cucumber_bin
load File.expand_path(vendored_cucumber_bin)
else
require 'rubygems' unless ENV['NO_RUBYGEMS']
+ require "bundler/setup"
require 'cucumber'
load Cucumber::BINARY
end
Please sign in to comment.
Something went wrong with that request. Please try again.