Skip to content

Commit

Permalink
Cleanup Repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ambethia committed Sep 27, 2018
1 parent 866a3d0 commit 46c0ae1
Show file tree
Hide file tree
Showing 56 changed files with 52 additions and 616 deletions.
17 changes: 0 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

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

# Ignore uploaded files in development
/storage/*
!/storage/.keep

/node_modules
/yarn-error.log

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key
21 changes: 4 additions & 17 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,14 @@ gem 'puma', '~> 3.11'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
gem 'bootsnap', '>= 1.1.0', require: false

gem 'aws-sdk-s3'
gem 'mini_magick'
gem 'omniauth'
gem 'omniauth-github'
gem 'aws-sdk-s3'
gem 'rack-cors'

group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
gem 'capybara', '>= 2.15'
gem 'selenium-webdriver'
gem 'chromedriver-helper'
gem 'byebug'
gem 'listen'
end
53 changes: 3 additions & 50 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ GEM
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
archive-zip (0.11.0)
io-like (~> 0.3.0)
arel (9.0.0)
aws-eventstream (1.0.1)
aws-partitions (1.105.0)
Expand All @@ -62,23 +58,8 @@ GEM
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.0)
aws-sigv4 (1.0.3)
bindex (0.5.0)
bootsnap (1.3.2)
msgpack (~> 1.0)
builder (3.2.3)
byebug (10.0.2)
capybara (3.8.1)
addressable
mini_mime (>= 0.1.3)
nokogiri (~> 1.8)
rack (>= 1.6.0)
rack-test (>= 0.6.3)
xpath (~> 3.1)
childprocess (0.9.0)
ffi (~> 1.0, >= 1.0.11)
chromedriver-helper (2.1.0)
archive-zip (~> 0.10)
nokogiri (~> 1.8)
concurrent-ruby (1.0.5)
crass (1.0.4)
erubi (1.7.1)
Expand All @@ -91,10 +72,6 @@ GEM
hashie (3.5.7)
i18n (1.1.0)
concurrent-ruby (~> 1.0)
io-like (0.3.0)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
jmespath (1.4.0)
jwt (1.5.6)
listen (3.1.5)
Expand All @@ -114,7 +91,6 @@ GEM
mini_mime (1.0.1)
mini_portile2 (2.3.0)
minitest (5.11.3)
msgpack (1.2.4)
multi_json (1.13.1)
multi_xml (0.6.0)
multipart-post (2.0.0)
Expand All @@ -137,9 +113,9 @@ GEM
oauth2 (~> 1.1)
omniauth (~> 1.2)
pg (1.1.3)
public_suffix (3.0.3)
puma (3.12.0)
rack (2.0.5)
rack-cors (1.0.2)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.1)
Expand Down Expand Up @@ -171,7 +147,6 @@ GEM
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
ruby_dep (1.5.0)
rubyzip (1.2.2)
sass (3.6.0)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
Expand All @@ -183,14 +158,6 @@ GEM
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.14.0)
childprocess (~> 0.5)
rubyzip (~> 1.2)
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand All @@ -208,41 +175,27 @@ GEM
thread_safe (~> 0.1)
uglifier (4.1.19)
execjs (>= 0.3.0, < 3)
web-console (3.7.0)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket-driver (0.7.0)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
xpath (3.1.0)
nokogiri (~> 1.8)

PLATFORMS
ruby

DEPENDENCIES
aws-sdk-s3
bootsnap (>= 1.1.0)
byebug
capybara (>= 2.15)
chromedriver-helper
jbuilder (~> 2.5)
listen (>= 3.0.5, < 3.2)
listen
mini_magick
omniauth
omniauth-github
pg (>= 0.18, < 2.0)
puma (~> 3.11)
rack-cors
rails (~> 5.2.1)
sass-rails (~> 5.0)
selenium-webdriver
spring
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
uglifier (>= 1.3.0)
web-console (>= 3.3.0)

RUBY VERSION
ruby 2.5.1p57
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Gif Grades

## TODO

- [ ] Tests!
2 changes: 0 additions & 2 deletions app/assets/javascripts/home.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/assets/javascripts/sessions.js

This file was deleted.

2 changes: 0 additions & 2 deletions app/assets/javascripts/venerations.js

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/stylesheets/home.scss

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/stylesheets/sessions.scss

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/stylesheets/venerations.scss

This file was deleted.

34 changes: 8 additions & 26 deletions app/controllers/venerations_controller.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
class VenerationsController < ApplicationController
before_action :set_own_veneration, only: [:edit, :update, :destroy]
before_action :set_own_veneration, only: [:show, :edit, :update, :destroy]
before_action :authenticate!, except: [:index, :show]

# GET /venerations
# GET /venerations.json
def index
@current_user = current_user
@venerations = Veneration.all
end

# GET /venerations/1
# GET /venerations/1.json
def show
@veneration = Veneration.find(params[:id])
end

# GET /venerations/new
Expand All @@ -25,43 +22,28 @@ def edit
end

# POST /venerations
# POST /venerations.json
def create
@veneration = current_user.venerations.new(veneration_params)

respond_to do |format|
if @veneration.save
format.html { redirect_to @veneration, notice: "Veneration was successfully created." }
format.json { render :show, status: :created, location: @veneration }
else
format.html { render :new }
format.json { render json: @veneration.errors, status: :unprocessable_entity }
end
if @veneration.save
redirect_to @veneration, notice: "Veneration was successfully created."
else
render :new
end
end

# PATCH/PUT /venerations/1
# PATCH/PUT /venerations/1.json
def update
respond_to do |format|
if @veneration.update(veneration_params)
format.html { redirect_to @veneration, notice: "Veneration was successfully updated." }
format.json { render :show, status: :ok, location: @veneration }
redirect_to @veneration, notice: "Veneration was successfully updated."
else
format.html { render :edit }
format.json { render json: @veneration.errors, status: :unprocessable_entity }
render :edit
end
end
end

# DELETE /venerations/1
# DELETE /venerations/1.json
def destroy
@veneration.destroy
respond_to do |format|
format.html { redirect_to venerations_url, notice: "Veneration was successfully destroyed." }
format.json { head :no_content }
end
redirect_to venerations_url, notice: "Veneration was successfully destroyed."
end

private
Expand Down
2 changes: 0 additions & 2 deletions app/helpers/home_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/sessions_helper.rb

This file was deleted.

2 changes: 0 additions & 2 deletions app/helpers/venerations_helper.rb

This file was deleted.

Empty file removed app/models/concerns/.keep
Empty file.
2 changes: 0 additions & 2 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
<h1>Home#index</h1>
<p>Find me in app/views/home/index.html.erb</p>
2 changes: 0 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
<title>Gif Grades</title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>

<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>

<body>
<header>
<h1>Gif Grades</h1>
Expand Down
2 changes: 0 additions & 2 deletions app/views/venerations/_veneration.json.jbuilder

This file was deleted.

1 change: 0 additions & 1 deletion app/views/venerations/index.json.jbuilder

This file was deleted.

1 change: 0 additions & 1 deletion app/views/venerations/show.json.jbuilder

This file was deleted.

11 changes: 0 additions & 11 deletions bin/yarn

This file was deleted.

2 changes: 0 additions & 2 deletions config.ru
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file is used by Rack-based servers to start the application.

require_relative 'config/environment'

run Rails.application
12 changes: 0 additions & 12 deletions config/application.rb
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
require_relative 'boot'

require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
require "active_record/railtie"
require "active_storage/engine"
require "action_controller/railtie"
# require "action_mailer/railtie"
require "action_view/railtie"
# require "action_cable/engine"
require "sprockets/railtie"
require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module GifGrades
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 5.2

# Settings in config/environments/* take precedence over those specified here.
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
end
end
3 changes: 1 addition & 2 deletions config/boot.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)

require 'bundler/setup' # Set up gems listed in the Gemfile.
require 'bootsnap/setup' # Speed up boot time by caching expensive operations.
require 'bundler/setup'
Loading

0 comments on commit 46c0ae1

Please sign in to comment.