/
Gemfile~
executable file
·61 lines (52 loc) · 2.6 KB
/
Gemfile~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
source 'http://rubygems.org'
gem 'rails', '3.0.7'
gem 'rake', '0.8.7'
# Loads the database adapter gem based on config/database.yml (Default: mysql2)
# -----------------------------------------------------------------------------
db_gems = {
"mysql2" => [ "mysql2", "0.2.7" ], # The latest 0.3.2 doesn't ship with ActiveRecord adapter as it's now part of Rails 3.1.
"mysql" => [ "mysql" ], # With Rails 3.0.x we're supposed to use mysql2 0.2.x release.
"postgresql" => [ "pg", ">= 0.9.0" ],
"sqlite3" => [ "sqlite3" ]
}
adapter = if File.exists?(db_config = File.join(File.dirname(__FILE__),"config","database.yml"))
# Fetch any configured adapters from config/database.yml
db = YAML.load_file(db_config); (db["development"] || db["test"] || db["production"])["adapter"]
else
"mysql2"
end
if db_gems[adapter]
gem *db_gems[adapter]
else
raise "Sorry, the db adapter in database.yml is unknown. Please add it to 'db_gems' in your Gemfile."
end
# -----------------------------------------------------------------------------
gem 'acts_as_commentable', '>= 3.0.1'
gem 'haml', '>= 3.1.1'
gem 'sass', '>= 3.1.1'
gem 'paperclip', '>= 2.3.3'
gem 'will_paginate', '>= 3.0.pre2'
group :development, :test do
gem 'ruby-debug', :platform => :mri_18
gem 'ruby-debug19', :platform => :mri_19, :require => 'ruby-debug'
gem 'annotate', '>= 2.4.0'
gem 'awesome_print', '>= 0.3.1'
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
gem "rspec-rails", '>= 2.5.0'
gem 'ffaker', '>= 1.5.0'
gem 'factory_girl', '>= 1.3.3'
end
# Gem watch list:
#---------------------------------------------------------------------
# gem 'authlogic', :git => 'git://github.com/crossroads/authlogic.git', :branch => 'rails3'
# gem 'gravatar-ultimate', :git => 'git://github.com/crossroads/gravatar.git'
# gem 'paperclip', :git => 'http://github.com/thoughtbot/paperclip.git'
# Rails3 plugins that we use and their source repositories:
#---------------------------------------------------------------------
# gravatar_image_tag, git://github.com/mdeering/gravatar_image_tag.git
# calendar_date_select, git://github.com/timcharper/calendar_date_select.git
# country_select, git://github.com/rails/country_select.git
# dynamic_form, git://github.com/rails/dynamic_form.git
# is_paranoid, git://github.com/theshortcut/is_paranoid.git
# prototype_legacy_helper, git://github.com/rails/prototype_legacy_helper.git
# responds_to_parent, git://github.com/markcatley/responds_to_parent.git