Project

General

Profile

Feature #5638 » redmine_with_bundler_1.0.001.patch

Toshi MARUYAMA, 2011-06-13 16:03

View differences:

.gitignore
/tmp/test/*
/vendor/rails
*.rbc
/.bundle
/Gemfile.lock
.hgignore
tmp/test/*
vendor/rails
*.rbc
.svn/
.git/
.bundle
Gemfile.lock
Gemfile
source :rubyforge
source :gemcutter
gem "ruby-openid"
gem 'bundler', '~> 1.0.0'
gem 'rails', '2.3.11'
gem 'rack' , '~> 1.1.1'
......
gem 'rubytree', '0.5.2', :require => 'tree'
gem 'coderay', '~> 0.9.7'
# Please uncomment lines for your databases.
# Alternatively you may want to add these lines to specific groups below.
# gem 'sqlite3-ruby', :require => 'sqlite3' # for SQLite 3
# gem 'mysql' # MySQL
# gem 'pg' # PostgreSQL
gem 'pg'
group :development do
end
......
end
group :test do
gem 'shoulda'
gem 'shoulda', '~> 2.10.3'
gem 'mocha'
gem 'edavis10-object_daddy', :require => 'object_daddy'
end
# Use the commented pure ruby gems, if you have not the needed prerequisites on
# board to compile the native ones. Note, that their use is discouraged, since
# their integration is propbably not that well tested and their are slower in
# orders of magnitude compared to their native counterparts. You have been
# warned.
#
platforms :mri do
group :mysql do
gem "mysql"
# gem "ruby-mysql"
end
group :mysql2 do
gem "mysql2"
end
group :postgres do
gem "pg", "~> 0.9.0"
# gem "postgres-pr"
end
group :sqlite do
gem "sqlite3-ruby", "< 1.3", :require => "sqlite3"
# please tell me, if you are fond of a pure ruby sqlite3 binding
end
end
platforms :jruby do
gem "jruby-openssl"
group :mysql do
gem "activerecord-jdbcmysql-adapter"
end
group :postgres do
gem "activerecord-jdbcpostgresql-adapter"
end
group :sqlite do
gem "activerecord-jdbcsqlite3-adapter"
end
end
# Load plugins Gemfiles
Dir.glob(File.join(File.dirname(__FILE__), %w(vendor plugins * Gemfile))) do |file|
puts "Loading #{file} ..."
config/boot.rb
def run
load_initializer
# This block was added for bundler support while following setup
# instructions from http://gembundler.com/rails23.html
Rails::Initializer.class_eval do
def load_gems
@bundler_loaded ||= Bundler.require :default, Rails.env
config/environments/test.rb
# Skip protect_from_forgery in requests http://m.onkey.org/2007/9/28/csrf-protection-for-your-existing-rails-application
config.action_controller.allow_forgery_protection = false
config.gem "shoulda", :version => "~> 2.10.3"
config.gem "edavis10-object_daddy", :lib => "object_daddy"
config.gem "mocha"
.gitignore
/.bundle
/Gemfile.lock
/.rvmrc*
.hgignore
.bundle
Gemfile.lock
.rvmrc*
Gemfile
source :rubyforge
source :gemcutter
gem "ruby-openid"
gem 'bundler', '~> 1.0.0'
gem 'rails', '2.3.11'
gem 'rack' , '~> 1.1.1'
......
gem 'edavis10-object_daddy', :require => 'object_daddy'
end
group :openid do
gem "ruby-openid", '~> 2.1.4', :require => 'openid'
end
# Use the commented pure ruby gems, if you have not the needed prerequisites on
# board to compile the native ones. Note, that their use is discouraged, since
Gemfile
gem "ruby-openid", '~> 2.1.4', :require => 'openid'
end
group :rmagick do
gem "rmagick", "~> 1.15.17"
end
# Use the commented pure ruby gems, if you have not the needed prerequisites on
# board to compile the native ones. Note, that their use is discouraged, since
# their integration is propbably not that well tested and their are slower in
Gemfile
end
group :mysql2 do
gem "mysql2"
gem "mysql2", "~> 0.2.7"
end
group :postgres do
Gemfile
# Load plugins Gemfiles
Dir.glob(File.join(File.dirname(__FILE__), %w(vendor plugins * Gemfile))) do |file|
puts "Loading #{file} ..."
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
instance_eval File.read(file)
end
(4-4/12)