Skip to content

Commit

Permalink
Remove cringy stock background, remove duplicate jquery, remove direc…
Browse files Browse the repository at this point in the history
…t github dependencies
  • Loading branch information
gamalielhere committed Jan 30, 2018
1 parent 622cbb0 commit b43f1bf
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 21 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ gem 'pry-rails', :group => :development

gem 'acts_as_votable', '~> 0.10.0'
gem 'closure_tree'
gem 'best_in_place', github: 'bernat/best_in_place'
gem 'best_in_place', '~> 3.0.1'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
Expand All @@ -45,4 +45,3 @@ group :development do
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end

15 changes: 5 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
GIT
remote: git://github.com/bernat/best_in_place.git
revision: 57b525e487cd6ba10467b47d8bf8907c645f6917
specs:
best_in_place (3.1.0)
actionpack (>= 3.2)
railties (>= 3.2)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -47,6 +39,9 @@ GEM
acts_as_votable (0.10.0)
arel (6.0.3)
bcrypt (3.1.10)
best_in_place (3.0.3)
actionpack (>= 3.2)
railties (>= 3.2)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.2.0.2)
Expand Down Expand Up @@ -175,7 +170,7 @@ PLATFORMS
DEPENDENCIES
acts_as_votable (~> 0.10.0)
bcrypt (~> 3.1.7)
best_in_place!
best_in_place (~> 3.0.1)
bootstrap-sass (~> 3.2.0)
bootstrap_form
byebug
Expand All @@ -194,4 +189,4 @@ DEPENDENCIES
web-console (~> 2.0)

BUNDLED WITH
1.11.2
1.16.0
6 changes: 3 additions & 3 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
//= require best_in_place
//= require_tree .

$(function() {
$(document).ready(function() {
$(".best_in_place").best_in_place();
$(".stop-propagate").on("click", function(evt) {
evt.stopPropagation();
console.log("HALT!");
});
});
})
2 changes: 0 additions & 2 deletions app/assets/javascripts/users.js.coffee

This file was deleted.

1 change: 0 additions & 1 deletion app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ body {

.center-content {
text-align: center;
background-image: url('../../../bg1.jpg');
height: 720px;
max-height: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div style="background-image: url('https://newevolutiondesigns.com/images/freebies/black-white-background-8.jpg'); height: 710px;">
<div>
<% @articles.each do |article| %>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<%= stylesheet_link_tag 'application', 'https://fonts.googleapis.com/css?family=Finger+Paint' %>
<%= javascript_include_tag 'application' %>
<%= csrf_meta_tags %>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-static-top">
Expand Down
2 changes: 1 addition & 1 deletion bin/spring
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ unless defined?(Spring)
require 'bundler'

if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq }
Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(File::PATH_SEPARATOR) }
gem 'spring', match[1]
require 'spring/binstub'
end
Expand Down
Binary file removed public/bg1.jpg
Binary file not shown.

0 comments on commit b43f1bf

Please sign in to comment.