forked from SF-WDI-LABS/publify-debugging-lab
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathGemfile
86 lines (70 loc) · 2.4 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
source 'https://rubygems.org'
if ENV['HEROKU']
ruby '2.1.5'
gem 'pg'
gem 'thin' # Change this to another web server if you want (ie. unicorn, passenger, puma...)
gem 'rails_12factor'
else
require 'yaml'
env = ENV['RAILS_ENV'] || 'development'
dbfile = File.expand_path('../config/database.yml', __FILE__)
conf = YAML.load(File.read(dbfile))
environment = conf[env]
adapter = environment['adapter'] if environment
raise 'You need define an adapter in your database.yml or set your RAILS_ENV variable' if adapter == '' || adapter.nil?
case adapter
when 'sqlite3'
gem 'sqlite3'
when 'postgresql'
gem 'pg'
when 'mysql2'
gem 'mysql2', '~> 0.4.4'
else
raise "Don't know what gem to use for adapter #{adapter}"
end
end
gem 'rails', '~> 4.2.5'
gem 'publify_core', path: 'publify_core'
gem 'publify_amazon_sidebar', path: 'publify_amazon_sidebar'
gem 'publify_textfilter_code', path: 'publify_textfilter_code'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Needed for the lightbox and flickr text filters
gem 'flickraw-cached', '20120701'
gem 'flickraw', '~> 0.9.8'
gem 'non-stupid-digest-assets', '~> 1.0'
gem 'rake', '~> 11.1'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', '~> 9.0'
gem 'factory_girl', '~> 4.5'
gem 'capybara', '~> 2.7'
gem 'rspec-rails', '~> 3.4'
gem 'simplecov', '~> 0.12.0', require: false
gem 'pry-rails', '~> 0.3.4'
gem 'pry', '~> 0.10.3'
gem 'rubocop', '~> 0.41.0', require: false
gem 'i18n-tasks', '~> 0.9.1', require: false
gem 'ffaker'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 3.0' if RUBY_VERSION >= '2.2.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring', '~> 1.7'
gem 'spring-commands-rspec', '~> 1.0'
gem 'spring-commands-cucumber', '~> 1.0'
gem 'thin', '~> 1.6'
gem 'better_errors', '~> 2.1.1'
gem 'binding_of_caller', '~> 0.7.2'
gem 'quiet_assets', '~> 1.1'
gem 'guard-rspec'
end
group :test do
gem 'codeclimate-test-reporter', '~> 0.6.0', require: nil
gem 'sqlite3'
end
# Install gems from each theme
Dir.glob(File.join(File.dirname(__FILE__), 'themes', '**', 'Gemfile')) do |gemfile|
eval(IO.read(gemfile), binding)
end