Skip to content

Commit

Permalink
Upgrade to Rails 5
Browse files Browse the repository at this point in the history
  • Loading branch information
heycarsten committed Feb 10, 2017
1 parent aee135d commit 48057a8
Show file tree
Hide file tree
Showing 71 changed files with 406 additions and 401 deletions.
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ config/database.yml
config/skylight.yml
config/secrets.yml
db/*.rdb
log/*.log
tmp/**/*

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore Byebug command history file.
.byebug_history
33 changes: 18 additions & 15 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
source 'https://rubygems.org'

gem 'rails', '4.2.7'
gem 'rails', '5.0.1'
gem 'responders'
gem 'oj'
gem 'pg'
gem 'pg_search'
gem 'bcrypt'
Expand All @@ -13,33 +12,37 @@ gem 'gcoder'
gem 'puma'
gem 'jquery-rails'
gem 'bootstrap-sass', '~> 3.3.3'
gem 'sass-rails', '~> 5.0.1'
gem 'therubyracer', platforms: :ruby
gem 'uglifier'
#gem 'skylight', '~> 0.6.0'
#gem 'honeybadger', '~> 2.0.6'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'stripe', git: 'https://github.com/stripe/stripe-ruby'

gem 'capistrano', '~> 3.3.5'
gem 'capistrano-rails'
gem 'capistrano-bundler'
gem 'capistrano-rvm'

# Crawler Junk
gem 'excon', require: false
gem 'amatch', require: false
gem 'stringex', require: false
gem 'nokogiri', require: false
gem 'unicode_utils', require: false
gem 'aws-sdk', '~> 2'
gem 'aws-sdk', '~> 2', require: false

group :development do
gem 'capistrano', '~> 3.3.5'
gem 'capistrano-rails'
gem 'capistrano-bundler'
gem 'capistrano-rvm'
gem 'quiet_assets'
gem 'pry-rails'
gem 'spring'
gem 'spring-commands-rspec'
gem 'web-console', '>= 3.3.0'
gem 'listen', '~> 3.0.5'

# Spring speeds up development by keeping your application running in the
# background. Read more: https://github.com/rails/spring
# gem 'spring'
# gem 'spring-watcher-listen', '~> 2.0.0'
# gem 'spring-commands-rspec'
end

group :test, :development do
gem 'byebug', platform: :mri
gem 'rspec-rails'
gem 'fabrication', require: false
gem 'awesome_print', require: 'ap'
Expand Down
152 changes: 78 additions & 74 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,60 +16,63 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.7)
actionpack (= 4.2.7)
actionview (= 4.2.7)
activejob (= 4.2.7)
actioncable (5.0.1)
actionpack (= 5.0.1)
nio4r (~> 1.2)
websocket-driver (~> 0.6.1)
actionmailer (5.0.1)
actionpack (= 5.0.1)
actionview (= 5.0.1)
activejob (= 5.0.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.7)
actionview (= 4.2.7)
activesupport (= 4.2.7)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-dom-testing (~> 2.0)
actionpack (5.0.1)
actionview (= 5.0.1)
activesupport (= 5.0.1)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.7)
activesupport (= 4.2.7)
actionview (5.0.1)
activesupport (= 5.0.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.7)
activesupport (= 4.2.7)
globalid (>= 0.3.0)
activemodel (4.2.7)
activesupport (= 4.2.7)
builder (~> 3.1)
activerecord (4.2.7)
activemodel (= 4.2.7)
activesupport (= 4.2.7)
arel (~> 6.0)
activesupport (4.2.7)
activejob (5.0.1)
activesupport (= 5.0.1)
globalid (>= 0.3.6)
activemodel (5.0.1)
activesupport (= 5.0.1)
activerecord (5.0.1)
activemodel (= 5.0.1)
activesupport (= 5.0.1)
arel (~> 7.0)
activesupport (5.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
amatch (0.3.0)
tins (~> 1.0)
arel (6.0.4)
arel (7.1.4)
autoprefixer-rails (6.7.2)
execjs
awesome_print (1.7.0)
aws-sdk (2.7.3)
aws-sdk-resources (= 2.7.3)
aws-sdk-core (2.7.3)
aws-sdk (2.7.5)
aws-sdk-resources (= 2.7.5)
aws-sdk-core (2.7.5)
aws-sigv4 (~> 1.0)
jmespath (~> 1.0)
aws-sdk-resources (2.7.3)
aws-sdk-core (= 2.7.3)
aws-sdk-resources (2.7.5)
aws-sdk-core (= 2.7.5)
aws-sigv4 (1.0.0)
bcrypt (3.1.11)
bootstrap-sass (3.3.7)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.3)
byebug (9.0.6)
capistrano (3.3.5)
capistrano-stats (~> 1.1.0)
i18n
Expand All @@ -87,13 +90,15 @@ GEM
capistrano-stats (1.1.1)
coderay (1.1.1)
concurrent-ruby (1.0.4)
debug_inspector (0.0.2)
diff-lcs (1.3)
domain_name (0.5.20161129)
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
excon (0.54.0)
excon (0.55.0)
execjs (2.7.0)
fabrication (2.16.0)
ffi (1.9.17)
gcoder (1.2.0)
hashie
multi_json
Expand All @@ -109,7 +114,6 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.6)
kaminari (1.0.1)
activesupport (>= 4.1.0)
kaminari-actionview (= 1.0.1)
Expand All @@ -122,7 +126,9 @@ GEM
activerecord
kaminari-core (= 1.0.1)
kaminari-core (1.0.1)
libv8 (3.16.14.17)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
Expand All @@ -138,9 +144,9 @@ GEM
net-ssh (>= 2.6.5)
net-ssh (4.0.1)
netrc (0.11.0)
nio4r (1.2.1)
nokogiri (1.7.0.1)
mini_portile2 (~> 2.1.0)
oj (2.18.1)
pg (0.19.0)
pg_search (2.0.1)
activerecord (>= 4.2)
Expand All @@ -153,38 +159,37 @@ GEM
pry-rails (0.3.4)
pry (>= 0.9.10)
puma (3.7.0)
quiet_assets (1.1.0)
railties (>= 3.1, < 5.0)
rack (1.6.5)
rack (2.0.1)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.7)
actionmailer (= 4.2.7)
actionpack (= 4.2.7)
actionview (= 4.2.7)
activejob (= 4.2.7)
activemodel (= 4.2.7)
activerecord (= 4.2.7)
activesupport (= 4.2.7)
rails (5.0.1)
actioncable (= 5.0.1)
actionmailer (= 5.0.1)
actionpack (= 5.0.1)
actionview (= 5.0.1)
activejob (= 5.0.1)
activemodel (= 5.0.1)
activerecord (= 5.0.1)
activesupport (= 5.0.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.7)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.8)
activesupport (>= 4.2.0.beta, < 5.0)
railties (= 5.0.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.2)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.7)
actionpack (= 4.2.7)
activesupport (= 4.2.7)
railties (5.0.1)
actionpack (= 5.0.1)
activesupport (= 5.0.1)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
redis (3.3.3)
ref (2.0.0)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
rest-client (2.0.0)
Expand Down Expand Up @@ -217,10 +222,6 @@ GEM
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
slop (3.6.0)
spring (2.0.1)
activesupport (>= 4.2)
spring-commands-rspec (1.0.4)
spring (>= 0.9.1)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -232,9 +233,6 @@ GEM
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
stringex (2.7.0)
therubyracer (0.12.3)
libv8 (~> 3.16.14.15)
ref
thor (0.19.4)
thread_safe (0.3.5)
tilt (2.0.6)
Expand All @@ -247,6 +245,14 @@ GEM
unf_ext
unf_ext (0.0.7.2)
unicode_utils (1.4.0)
web-console (3.4.0)
actionview (>= 5.0)
activemodel (>= 5.0)
debug_inspector
railties (>= 5.0)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)

PLATFORMS
ruby
Expand All @@ -258,6 +264,7 @@ DEPENDENCIES
aws-sdk (~> 2)
bcrypt
bootstrap-sass (~> 3.3.3)
byebug
capistrano (~> 3.3.5)
capistrano-bundler
capistrano-rails
Expand All @@ -267,25 +274,22 @@ DEPENDENCIES
gcoder
jquery-rails
kaminari
listen (~> 3.0.5)
nokogiri
oj
pg
pg_search
pry-rails
puma
quiet_assets
rails (= 4.2.7)
rails (= 5.0.1)
redis
responders
rspec-rails
sass-rails (~> 5.0.1)
spring
spring-commands-rspec
sass-rails (~> 5.0)
stringex
stripe!
therubyracer
uglifier
uglifier (>= 1.3.0)
unicode_utils
web-console (>= 3.3.0)

BUNDLED WITH
1.14.3
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)
require_relative 'config/application'

Rails.application.load_tasks
3 changes: 3 additions & 0 deletions app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
12 changes: 12 additions & 0 deletions app/assets/javascripts/cable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the
// rails generate channel command.
//
//= require action_cable
//= require_self
//= require_tree ./channels

(function() {
this.App || (this.App = {});
App.cable = ActionCable.createConsumer();
}).call(this);
Empty file.
4 changes: 4 additions & 0 deletions app/channels/application_cable/channel.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
4 changes: 4 additions & 0 deletions app/channels/application_cable/connection.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module ApplicationCable
class Connection < ActionCable::Connection::Base
end
end
Loading

0 comments on commit 48057a8

Please sign in to comment.