You have installed GPG, then tried to commit and suddenly you see this error message after it:
error: gpg failed to sign the data
fatal: failed to write commit object
Debug
# Inherit from TODO here to make sure we enforce the rules below | |
# (and TODO is ignored) | |
inherit_from: | |
- .rubocop_todo.yml | |
Lint/Debugger: # don't leave binding.pry | |
Enabled: true | |
Exclude: [] | |
RSpec/Focus: # run ALL tests on CI |
# Based on removed standard configuration: | |
# https://github.com/testdouble/standard/commit/94d133f477a5694084ac974d5ee01e8a66ce777e#diff-65478e10d5b2ef41c7293a110c0e6b7c | |
require: | |
- rubocop-rails | |
Rails/ActionFilter: | |
Enabled: true | |
EnforcedStyle: action | |
Include: |
require: | |
- rubocop-rspec | |
# Disable all cops by default, | |
# only enable those defined explcitly in this configuration file | |
RSpec: | |
Enabled: false | |
RSpec/Focus: | |
Enabled: true |
# YAML cheat sheet | |
# Reference: https://www.youtube.com/watch?v=cdLNKUoMc6c | |
# object | |
person: | |
# string value. single/double quotes | |
# anchoring | |
name: &name "daniel" # anchor name doesn't have to be the same as key name | |
occupation: 'student' |
# Instead of loading all of Rails, load the | |
# particular Rails dependencies we need | |
require 'sqlite3' | |
require 'active_record' | |
# Set up a database that resides in RAM | |
ActiveRecord::Base.establish_connection( | |
adapter: 'sqlite3', | |
database: ':memory:' | |
) |
def self.❨╯°□°❩╯︵┻━┻ | |
puts 'Calm down, yo.' | |
end |
Run rails new --help
to view all of the options you can pass to rails new
:
$ bin/rails new --help
Usage:
rails new APP_PATH [options]
Options:
-r, [--ruby=PATH] # Path to the Ruby binary of your choice
# Default: /Users/eliot/.rbenv/versions/2.2.0/bin/ruby
# Temporarily redirects STDOUT and STDERR to /dev/null | |
# but does print exceptions should there occur any. | |
# Call as: | |
# suppress_output { puts 'never printed' } | |
# | |
def suppress_output | |
original_stderr = $stderr.clone | |
original_stdout = $stdout.clone | |
$stderr.reopen(File.new('/dev/null', 'w')) | |
$stdout.reopen(File.new('/dev/null', 'w')) |