Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 107 lines (91 sloc) 2.988 kb
b5fd07d @nicolasblanco Improves deployment on Heroku, removes Gemfile.heroku file, update RE…
nicolasblanco authored
1 source 'https://rubygems.org'
d002689 @fdv Adds a way to use various database engines
fdv authored
2
596b61d @mvz Autocorrect offenses
mvz authored
3 if ENV['HEROKU']
3fe272d @ook heroku use ruby 2.1.5, as tested in travis
ook authored
4 ruby '2.1.5'
688dcbf @fdv Updates Gemfile to ensure adapter is loaded on Travis. Trying to avoi…
fdv authored
5
596b61d @mvz Autocorrect offenses
mvz authored
6 gem 'pg'
7 gem 'thin' # Change this to another web server if you want (ie. unicorn, passenger, puma...)
8 gem 'rails_12factor'
d002689 @fdv Adds a way to use various database engines
fdv authored
9 else
10
b5fd07d @nicolasblanco Improves deployment on Heroku, removes Gemfile.heroku file, update RE…
nicolasblanco authored
11 require 'yaml'
596b61d @mvz Autocorrect offenses
mvz authored
12 env = ENV['RAILS_ENV'] || 'development'
13 dbfile = File.expand_path('../config/database.yml', __FILE__)
b5fd07d @nicolasblanco Improves deployment on Heroku, removes Gemfile.heroku file, update RE…
nicolasblanco authored
14
596b61d @mvz Autocorrect offenses
mvz authored
15 unless File.exist?(dbfile)
b5fd07d @nicolasblanco Improves deployment on Heroku, removes Gemfile.heroku file, update RE…
nicolasblanco authored
16 if ENV['DB']
17 FileUtils.cp "config/database.yml.#{ENV['DB'] || 'postgres'}", 'config/database.yml'
18 else
596b61d @mvz Autocorrect offenses
mvz authored
19 raise 'You need to configure config/database.yml first'
b5fd07d @nicolasblanco Improves deployment on Heroku, removes Gemfile.heroku file, update RE…
nicolasblanco authored
20 end
21 end
22
23 conf = YAML.load(File.read(dbfile))
24 environment = conf[env]
25 adapter = environment['adapter'] if environment
596b61d @mvz Autocorrect offenses
mvz authored
26 raise 'You need define an adapter in your database.yml or set your RAILS_ENV variable' if adapter == '' || adapter.nil?
b5fd07d @nicolasblanco Improves deployment on Heroku, removes Gemfile.heroku file, update RE…
nicolasblanco authored
27 case adapter
28 when 'sqlite3'
29 gem 'sqlite3'
30 when 'postgresql'
31 gem 'pg'
32 when 'mysql2'
33 gem 'mysql2'
34 else
35 raise "Don't know what gem to use for adapter #{adapter}"
36 end
37 end
25664cb @mvz Add back source line to Gemfile.
mvz authored
38
0679644 @mvz Upgrade to Rails 4.2
mvz authored
39 gem 'rails', '~> 4.2.0'
3656e8a @mvz Update and sort other dependencies
mvz authored
40
41 # Use SCSS for stylesheets
42 gem 'sass-rails', '~> 5.0'
43 # Use Uglifier as compressor for JavaScript assets
44 gem 'uglifier', '>= 1.3.0'
2644cfe @mvz Make sure a JavaScript runtime is available
mvz authored
45 # See https://github.com/sstephenson/execjs#readme for more supported runtimes
46 gem 'therubyracer', platforms: :ruby
3656e8a @mvz Update and sort other dependencies
mvz authored
47
48 # Use jquery as the JavaScript library
c9b8e29 @ook Upgrade dependencies
ook authored
49 gem 'jquery-rails', '~> 4.0.3'
3656e8a @mvz Update and sort other dependencies
mvz authored
50
51 gem 'jquery-ui-rails', '~> 5.0.2'
52 gem 'RedCloth', '~> 4.2.8'
53 gem 'actionpack-page_caching', '~> 1.0.2' # removed from Rails-core as Rails 4.0
596b61d @mvz Autocorrect offenses
mvz authored
54 gem 'addressable', '~> 2.1', require: 'addressable/uri'
3656e8a @mvz Update and sort other dependencies
mvz authored
55 gem 'akismet', '~> 1.0'
e9c893f @mvz Use approximate versions for most dependencies.
mvz authored
56 gem 'bluecloth', '~> 2.1'
3656e8a @mvz Update and sort other dependencies
mvz authored
57 gem 'carrierwave', '~> 0.10.0'
22f57d2 @mvz Update dependencies
mvz authored
58 gem 'coderay', '~> 1.1.0'
3656e8a @mvz Update and sort other dependencies
mvz authored
59 gem 'dynamic_form', '~> 1.1.4'
60 gem 'flickraw-cached'
61 gem 'fog'
62 gem 'htmlentities'
e389f50 @fdv Replacing old will_paginate with scope based Kaminari.
fdv authored
63 gem 'kaminari'
596b61d @mvz Autocorrect offenses
mvz authored
64 gem 'mini_magick', '~> 4.0.2', require: 'mini_magick'
3656e8a @mvz Update and sort other dependencies
mvz authored
65 gem 'non-stupid-digest-assets'
66 gem 'rails-observers', '~> 0.1.2'
67 gem 'rails-timeago', '~> 2.0'
68 gem 'rails_autolink', '~> 1.1.0'
6588f1f @ook upgrade rake
ook authored
69 gem 'rake', '~> 10.4.2'
596b61d @mvz Autocorrect offenses
mvz authored
70 gem 'recaptcha', require: 'recaptcha/rails', branch: 'rails3'
3656e8a @mvz Update and sort other dependencies
mvz authored
71 gem 'rubypants', '~> 0.2.0'
c9b8e29 @ook Upgrade dependencies
ook authored
72 gem 'twitter', '~> 5.13.0'
3656e8a @mvz Update and sort other dependencies
mvz authored
73 gem 'uuidtools', '~> 2.1.1'
f4a277b @mvz Replace prototype_legacy_helper plugin with gem
mvz authored
74
3656e8a @mvz Update and sort other dependencies
mvz authored
75 group :development, :test do
76 # Call 'byebug' anywhere in the code to stop execution and get a debugger console
77 gem 'byebug'
7ce658f @mvz Make user NonStupidDigestAssets is always defined
mvz authored
78
3656e8a @mvz Update and sort other dependencies
mvz authored
79 # Access an IRB console on exception pages or by using <%= console %> in views
80 gem 'web-console', '~> 2.0'
94c1005 @ook Page caching removed from Rails4.0, return it as a Gem
ook authored
81
3656e8a @mvz Update and sort other dependencies
mvz authored
82 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
83 gem 'spring'
6c15699 @ook Use Rails asset-pipeline. Ok for front
ook authored
84
05baa38 @nicolasblanco Migration to CarrierWave
nicolasblanco authored
85 gem 'thin'
c8bdc9d @ook Upgrade dependencies. Rspec to go.
ook authored
86 gem 'factory_girl', '~> 4.5.0'
b20df8e @mvz Replace webrat with capybara
mvz authored
87 gem 'capybara'
b5ae803 @mvz Upgrad to rspec-rails 3.1.0
mvz authored
88 gem 'rspec-rails', '~> 3.1.0'
596b61d @mvz Autocorrect offenses
mvz authored
89 gem 'simplecov', require: false
05baa38 @nicolasblanco Migration to CarrierWave
nicolasblanco authored
90 gem 'pry-rails'
3b3620a @mvz Do not require rubocop automatically
mvz authored
91 gem 'rubocop', require: false
14f03d4 @ook Add my beloved better_errors gem for development group. Close #367
ook authored
92 gem 'better_errors', '~> 2.0.0'
93 gem 'binding_of_caller'
2426b52 @ook Update rails to 4.1.7 security patches that can affect our users
ook authored
94 gem 'guard-rspec'
b7994c8 @ook Shut the f*ck off, damn assets…
ook authored
95 gem 'quiet_assets'
908d6ac @mvz Set gemcutter as the gem source.
mvz authored
96 end
373cfb8 @fdv Adds a hack to allow theme creators to bundle gems with their theme w…
fdv authored
97
ecfaf93 @mvz Use Feedjira to check feeds
mvz authored
98 group :test do
99 gem 'feedjira'
596b61d @mvz Autocorrect offenses
mvz authored
100 gem 'codeclimate-test-reporter', require: nil
ecfaf93 @mvz Use Feedjira to check feeds
mvz authored
101 end
102
373cfb8 @fdv Adds a hack to allow theme creators to bundle gems with their theme w…
fdv authored
103 # Install gems from each theme
596b61d @mvz Autocorrect offenses
mvz authored
104 Dir.glob(File.join(File.dirname(__FILE__), 'themes', '**', 'Gemfile')) do |gemfile|
373cfb8 @fdv Adds a hack to allow theme creators to bundle gems with their theme w…
fdv authored
105 eval(IO.read(gemfile), binding)
d527d4d @mvz Update dependency on rspec-rails
mvz authored
106 end
Something went wrong with that request. Please try again.