You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
| require "bundler/inline" | |
| gemfile do | |
| gem "rspec" | |
| end | |
| require "rspec/autorun" | |
| RSpec.describe "inline Bundler and autorun RSpec" do | |
| it "is convenient for self-contained examples & bug repros" do |
There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket
You may use the same computer for work and personal development and need to separate your work.
When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.
You may have different projects you're working on where you would like to segregate your access.
| # 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' |
| require: | |
| - rubocop-rspec | |
| # Disable all cops by default, | |
| # only enable those defined explcitly in this configuration file | |
| RSpec: | |
| Enabled: false | |
| RSpec/Focus: | |
| Enabled: true |
| # Based on removed standard configuration: | |
| # https://github.com/testdouble/standard/commit/94d133f477a5694084ac974d5ee01e8a66ce777e#diff-65478e10d5b2ef41c7293a110c0e6b7c | |
| require: | |
| - rubocop-rails | |
| Rails/ActionFilter: | |
| Enabled: true | |
| EnforcedStyle: action | |
| Include: |
| # 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 |
| # frozen_string_literal: true | |
| require "json" | |
| require "tempfile" | |
| require "set" | |
| require "benchmark/ips" | |
| # Welcome to the benchmarks for "Achieving Fast Method Metaprogramming: Lessons | |
| # from MemoWise" by Jacob Evelyn and Jemma Issroff, presented at RubyConf 2021. |
| source "https://rubygems.org" | |
| gemspec |