This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #999 from mssola/more-rubocop
Add more directories under rubocop's control
- Loading branch information
Showing
15 changed files
with
81 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
load Gem.bin_path('bundler', 'bundle') | ||
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__) | ||
load Gem.bin_path("bundler", "bundle") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# rubocop:disable Lint/HandleExceptions | ||
begin | ||
load File.expand_path('../spring', __FILE__) | ||
load File.expand_path("../spring", __FILE__) | ||
rescue LoadError | ||
end | ||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require_relative '../config/boot' | ||
require 'rails/commands' | ||
# rubocop:enable Lint/HandleExceptions | ||
|
||
APP_PATH = File.expand_path("../../config/application", __FILE__) | ||
require_relative "../config/boot" | ||
require "rails/commands" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# rubocop:disable Lint/HandleExceptions | ||
begin | ||
load File.expand_path('../spring', __FILE__) | ||
load File.expand_path("../spring", __FILE__) | ||
rescue LoadError | ||
end | ||
require_relative '../config/boot' | ||
require 'rake' | ||
# rubocop:enable Lint/HandleExceptions | ||
|
||
require_relative "../config/boot" | ||
require "rake" | ||
Rake.application.run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
#!/usr/bin/env ruby | ||
require 'pathname' | ||
require "pathname" | ||
|
||
# path to your application root. | ||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) | ||
APP_ROOT = Pathname.new File.expand_path("../../", __FILE__) | ||
|
||
Dir.chdir APP_ROOT do | ||
# This script is a starting point to setup your application. | ||
# Add necessary setup steps to this file: | ||
|
||
puts '== Installing dependencies ==' | ||
system 'gem install bundler --conservative' | ||
system 'bundle check || bundle install' | ||
puts "== Installing dependencies ==" | ||
system "gem install bundler --conservative" | ||
system "bundle check || bundle install" | ||
|
||
# puts "\n== Copying sample files ==" | ||
# unless File.exist?("config/database.yml") | ||
# system "cp config/database.yml.sample config/database.yml" | ||
# end | ||
|
||
puts "\n== Preparing database ==" | ||
system 'bin/rake db:setup' | ||
system "bin/rake db:setup" | ||
|
||
puts "\n== Removing old logs and tempfiles ==" | ||
system 'rm -f log/*' | ||
system 'rm -rf tmp/cache' | ||
system "rm -f log/*" | ||
system "rm -rf tmp/cache" | ||
|
||
puts "\n== Restarting application server ==" | ||
system 'touch tmp/restart.txt' | ||
system "touch tmp/restart.txt" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Rails.application.config.assets.version = "1.0" | ||
Rails.application.config.assets.precompile += %w( auth/cover.js *.woff2 ) | ||
Rails.application.config.assets.precompile += %w(auth/cover.js *.woff2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. | ||
# You can add backtrace silencers for libraries that you're using but don't wish | ||
# to see in your backtraces. | ||
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } | ||
|
||
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. | ||
# You can also remove all the silencers if you're trying to debug a problem that | ||
# might stem from framework code. | ||
# Rails.backtrace_cleaner.remove_silencers! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters