Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
convert to Rails 5.1, handle CORS requests, add Rubocop, convert to A…
Browse files Browse the repository at this point in the history
…PI-only app
  • Loading branch information
ahcarpenter committed May 3, 2017
1 parent 9ac51b3 commit 6c882de
Show file tree
Hide file tree
Showing 87 changed files with 649 additions and 354 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
/log/*
!/log/.keep
/tmp

# Ignore encrypted secrets key file.
config/secrets.yml.key
12 changes: 12 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Rails:
Enabled: true
AllCops:
AutoCorrect: true
TargetRubyVersion: 2.4.0
Include:
- '**/Gemfile'
- '**/Rakefile'
Exclude:
- 'bin/*'
- 'db/seeds.rb'
- 'db/schema.rb'
31 changes: 11 additions & 20 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
source 'https://rubygems.org'
# frozen_string_literal: true

source 'https://rubygems.org'
ruby '2.4.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.6'
gem 'rails', '5.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

gem 'acts-as-taggable-on', '~> 3.5.0'
gem 'acts_as_follower', '~> 0.2.1'
gem 'devise', '~> 4.2.0'
gem 'acts-as-taggable-on', git: 'https://github.com/mbleigh/acts-as-taggable-on'
gem 'acts_as_follower'
gem 'devise', git: 'https://github.com/gogovan/devise.git', branch: 'rails-5.1'
gem 'jwt', '~> 1.5.4'
gem 'rack-cors', '~> 0.4.0'
gem 'puma'
gem 'rack-cors', '~> 0.4.0'

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
Expand All @@ -42,13 +34,12 @@ gem 'puma'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
gem 'listen'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'pry'
gem 'rubocop', require: false
gem 'spring'
end

Loading

0 comments on commit 6c882de

Please sign in to comment.