Andrew Tomaka
d3dd0ff848
Notes on closing subcreddit: This doesn't seem great. Would be slightly better if closed could be referenced as true or false instead of '0' or '1' in the model. Testing this is a bit messy, but Tiemcop makes it a bit better. Notes on subcreddit validations: This is still not ideal. For starters, from http://guides.rubyonrails.org/active_record_validations.html: "Note that some databases are configured to perform case-insensitive searches anyway." It also seems difficult to validate fields that are set in before_save since validations occur before callbacks. Revisit this (perhaps friendly_id wll save us).
54 lines
981 B
Ruby
54 lines
981 B
Ruby
source 'https://rubygems.org'
|
|
|
|
def darwin_only(require_as)
|
|
RbConfig::CONFIG['host_os'] =~ /darwin/ && require_as
|
|
end
|
|
|
|
def linux_only(require_as)
|
|
RbConfig::CONFIG['host_os'] =~ /linux/ && require_as
|
|
end
|
|
|
|
gem 'rails', '4.2.3'
|
|
gem 'sqlite3'
|
|
|
|
gem 'sass-rails', '~> 5.0'
|
|
gem 'uglifier', '>= 1.3.0'
|
|
gem 'coffee-rails', '~> 4.1.0'
|
|
gem 'jquery-rails'
|
|
gem 'jbuilder', '~> 2.0'
|
|
gem 'slim-rails'
|
|
gem 'bootstrap-sass'
|
|
gem 'simple_form'
|
|
|
|
gem 'bcrypt'
|
|
|
|
gem 'sdoc', '~> 0.4.0', group: :doc
|
|
|
|
group :development do
|
|
gem 'bullet'
|
|
gem 'better_errors'
|
|
gem 'quiet_assets'
|
|
gem 'metric_fu'
|
|
gem 'binding_of_caller'
|
|
end
|
|
|
|
group :development, :test do
|
|
gem 'pry'
|
|
gem 'spring'
|
|
gem 'dotenv-rails'
|
|
gem 'rspec-rails'
|
|
gem 'spring-commands-rspec'
|
|
gem 'guard-rspec'
|
|
end
|
|
|
|
group :test do
|
|
gem 'capybara'
|
|
gem 'factory_girl_rails'
|
|
gem 'database_cleaner', '~> 1.4.1'
|
|
gem 'launchy'
|
|
gem 'faker'
|
|
gem 'capybara-webkit'
|
|
gem 'shoulda'
|
|
gem 'simplecov', require: false
|
|
gem 'timecop'
|
|
end
|