Skip to content

Commit

Permalink
move to gem bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorturk committed Jan 3, 2010
1 parent 5f476b9 commit fefbda2
Show file tree
Hide file tree
Showing 233 changed files with 32 additions and 27,856 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
/public/avatars/*
/public/files/*
/public/headers/*
/public/themes/*
/public/themes/*
bin/*
vendor/bundler_gems/*
!vendor/bundler_gems/cache/
19 changes: 19 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
clear_sources
source "http://gems.rubyforge.org"
source "http://gems.github.com" # for ambethia-smtp-tls

bundle_path "vendor/bundler_gems"

gem "rails", "2.3.5"
gem "paperclip", "2.3.0"
gem "right_aws", "1.9.0"
gem "right_http_connection", "1.2.4"
gem "searchlogic", "2.3.9"
gem "will_paginate", "2.3.11"
gem "ambethia-smtp-tls", "1.1.2"

only :test do
gem "faker", "0.3.1"
gem "mocha", "0.9.8"
gem "machinist", "1.0.6"
end
12 changes: 2 additions & 10 deletions config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
RAILS_GEM_VERSION = '2.3.5' unless defined? RAILS_GEM_VERSION
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
require 'open-uri'
Rails::Initializer.run do |config|
require 'yaml'

config.time_zone = 'UTC'
config.i18n.default_locale = :en
config.active_record.partial_updates = true
config.frameworks -= [ :active_resource ]

config.gem 'mislav-will_paginate', :version => '2.3.11', :lib => 'will_paginate', :source => 'http://gems.github.com'
config.gem 'ambethia-smtp-tls', :version => '1.1.2', :lib => "smtp-tls", :source => 'http://gems.github.com'
config.gem 'searchlogic', :version => '2.3.5'
config.gem 'thoughtbot-paperclip', :version => '2.2.9.2', :lib => 'paperclip', :source => 'http://gems.github.com'
config.gem 'right_aws', :version => '1.9.0' # TODO change to aws-s3 when paperclip does; right_aws 1.10.0 acts funny
config.gem 'right_http_connection', :version => '1.2.4'


# support yaml and heroku config
CONFIG = (YAML.load_file('config/config.yml')[RAILS_ENV] rescue {}).merge(ENV)

Expand Down
3 changes: 2 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Bundler.require_env RAILS_ENV
config.cache_classes = false
config.whiny_nils = true
config.action_controller.consider_all_requests_local = true
config.action_view.debug_rjs = true
config.action_controller.perform_caching = false
config.action_mailer.raise_delivery_errors = false
config.logger = Logger.new(config.log_path, 2, 20.megabytes)
config.logger = Logger.new(config.log_path, 2, 20.megabytes)
3 changes: 2 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Bundler.require_env RAILS_ENV
config.cache_classes = true
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
Expand All @@ -15,4 +16,4 @@
:authentication => CONFIG['smtp_authentication'].to_sym,
:enable_starttls_auto => CONFIG['smtp_enable_starttls_auto']
}
end
end
5 changes: 2 additions & 3 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
Bundler.require_env RAILS_ENV
config.cache_classes = true
config.whiny_nils = true
config.action_controller.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.action_view.cache_template_loading = true
config.action_controller.allow_forgery_protection = false
config.action_mailer.delivery_method = :test
config.logger = Logger.new(config.log_path, 2, 20.megabytes)
config.gem 'faker', :version => '0.3.1'
config.gem 'notahat-machinist', :version => '1.0.3', :lib => 'machinist', :source => 'http://gems.github.com'
config.logger = Logger.new(config.log_path, 2, 20.megabytes)
1 change: 1 addition & 0 deletions config/preinitializer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require "#{File.dirname(__FILE__)}/../vendor/bundler_gems/environment"
2 changes: 0 additions & 2 deletions lib/paperclip_support.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module PaperclipSupport
def self.included(klass)
klass.class_eval do

require 'open-uri'

attr_accessible :attachment, :attachment_url
Expand Down Expand Up @@ -38,7 +37,6 @@ def io.original_filename; base_uri.path.split('/').last; end
io.original_filename.blank? ? nil : io
rescue # catch url errors with validations instead of exceptions (Errno::ENOENT, OpenURI::HTTPError, etc...)
end

end
end
end
Binary file added vendor/bundler_gems/cache/actionmailer-2.3.5.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/actionpack-2.3.5.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/activerecord-2.3.5.gem
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added vendor/bundler_gems/cache/faker-0.3.1.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/machinist-1.0.6.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/mocha-0.9.8.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/paperclip-2.3.0.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/rack-1.0.1.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/rails-2.3.5.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/rake-0.8.7.gem
Binary file not shown.
Binary file added vendor/bundler_gems/cache/right_aws-1.9.0.gem
Binary file not shown.
Binary file not shown.
Binary file added vendor/bundler_gems/cache/searchlogic-2.3.9.gem
Binary file not shown.
Binary file not shown.
60 changes: 0 additions & 60 deletions vendor/gems/ambethia-smtp-tls-1.1.2/.specification

This file was deleted.

18 changes: 0 additions & 18 deletions vendor/gems/ambethia-smtp-tls-1.1.2/README.rdoc

This file was deleted.

4 changes: 0 additions & 4 deletions vendor/gems/ambethia-smtp-tls-1.1.2/VERSION.yml

This file was deleted.

70 changes: 0 additions & 70 deletions vendor/gems/ambethia-smtp-tls-1.1.2/lib/smtp-tls.rb

This file was deleted.

90 changes: 0 additions & 90 deletions vendor/gems/faker-0.3.1/.specification

This file was deleted.

23 changes: 0 additions & 23 deletions vendor/gems/faker-0.3.1/History.txt

This file was deleted.

Loading

0 comments on commit fefbda2

Please sign in to comment.