Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .aiignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# An .aiignore file follows the same syntax as a .gitignore file.
# .gitignore documentation: https://git-scm.com/docs/gitignore

# you can ignore files
.DS_Store
*.log
*.tmp

# or folders
.devcontainer/
.qlty/
.yardoc/
dist/
build/
out/
coverage/
docs/
pkg/
results/
10 changes: 5 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
"postCreateCommand": "bundle update --bundler",

// Configure tool-specific properties.
"customizations" : {
"jetbrains" : {
"backend" : "RubyMine"
}
},
"customizations" : {
"jetbrains" : {
"backend" : "RubyMine"
}
},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
Expand Down
27 changes: 27 additions & 0 deletions .env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# DO NOT EDIT THIS FILE
#
# COPT THIS FILE TO .env.local
#
# That file is ignored by .gitignore. This file is not.
#
export DEBUG=false # do not allow byebug statements (override in .env.local)
export FLOSS_FUNDING_DEBUG=false # extra logging to help diagnose issues (override in .env.local)
export AUTOGEN_FIXTURE_CLEANUP=false # autogenerated gem fixture cleanup after every RSpec run
export GIT_HOOK_FOOTER_APPEND=false
export GIT_HOOK_FOOTER_APPEND_DEBUG=false
export GIT_HOOK_FOOTER_SENTINEL="⚡️ A message from a fellow meat-based-AI"

# Tokens used by ci:act and CI helpers for reading workflow/pipeline status via APIs
# GitHub (either GITHUB_TOKEN or GH_TOKEN will be used; fine-grained recommended)
# - Scope/permissions: For fine-grained tokens, grant repository access (Read) and Actions: Read
# - For classic tokens, public repos need no scopes; private repos typically require repo
export GITHUB_TOKEN=<your GH token for GHA status; NEVER COMMIT>
# Alternatively:
# export GH_TOKEN=<your GH token>

# GitLab (either GITLAB_TOKEN or GL_TOKEN will be used)
# - Scope: read_api is sufficient to read pipelines
export GITLAB_TOKEN=<your GitLab token for pipeline status; NEVER COMMIT>
# Alternatively:
# export GL_TOKEN=<your GitLab token>
17 changes: 13 additions & 4 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Run any command in this library's bin/ without the bin/ prefix!
# Prefer exe version over binstub
PATH_add exe
PATH_add bin

# Only add things to this file that should be shared with the team.
Expand All @@ -16,17 +18,24 @@ PATH_add bin

### External Testing Controls
export K_SOUP_COV_DO=true # Means you want code coverage
# Available formats are html, xml, rcov, lcov, json, tty
export K_SOUP_COV_COMMAND_NAME="Test Coverage"
export K_SOUP_COV_FORMATTERS="html,tty"
export K_SOUP_COV_MIN_BRANCH=79 # Means you want to enforce X% branch coverage
export K_SOUP_COV_MIN_LINE=78 # Means you want to enforce X% line coverage
# Available formats are html, xml, rcov, lcov, json, tty
export K_SOUP_COV_FORMATTERS="html,xml,rcov,lcov,json,tty"
export K_SOUP_COV_MIN_BRANCH=80 # Means you want to enforce X% branch coverage
export K_SOUP_COV_MIN_LINE=96 # Means you want to enforce X% line coverage
export K_SOUP_COV_MIN_HARD=true # Means you want the build to fail if the coverage thresholds are not met
export K_SOUP_COV_MULTI_FORMATTERS=true
export K_SOUP_COV_OPEN_BIN= # Means don't try to open coverage results in browser
export MAX_ROWS=1 # Setting for simplecov-console gem for tty output, limits to the worst N rows of bad coverage
export KETTLE_TEST_SILENT=true

# Internal Debugging Controls
export DEBUG=false # do not allow byebug statements (override in .env.local)
export FLOSS_CFG_FUND_DEBUG=false # extra logging to help diagnose issues (override in .env.local)
export FLOSS_CFG_FUND_LOGFILE=tmp/log/debug.log

# Concurrently developing the rubocop-lts suite?
export RUBOCOP_LTS_LOCAL=false

# .env would override anything in this file, if `dotenv` is uncommented below.
# .env is a DOCKER standard, and if we use it, it would be in deployed, or DOCKER, environments,
Expand Down
48 changes: 48 additions & 0 deletions .git-hooks/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/env ruby
# vim: set syntax=ruby

# Do not rely on Bundler; allow running outside a Bundler context
begin
require "rubygems"
rescue LoadError
# continue
end

begin
# External gems
require "gitmoji/regex"

full_text = File.read(ARGV[0])
# Is the first character a GitMoji?
gitmoji_index = full_text =~ Gitmoji::Regex::REGEX
if gitmoji_index == 0
exit 0
else
denied = <<EOM
Oh snap, think again...

______ _______ ___ _______ _______ _______ _______ ______ __
| _ | | | | || || || || || | | |
| | || | ___| | || ___|| ||_ _|| ___|| _ || |
| |_||_ | |___ | || |___ | | | | | |___ | | | || |
| __ || ___| ___| || ___|| _| | | | ___|| |_| ||__|
| | | || |___ | || |___ | |_ | | | |___ | | __
|___| |_||_______||_______||_______||_______| |___| |_______||______| |__|


Did you forget to add a relevant gitmoji? (see https://gitmoji.dev/ for tools)
In this project, a Gitmoji must be the first grapheme of the commit message.
What's a grapheme?
A symbol rendered to be visually identifiable as a single character, but which may be composed of multiple Unicode code points)
Must match: #{Gitmoji::Regex::REGEX.to_s}
#{gitmoji_index ? "Found a gitmoji at character index #{gitmoji_index}... not good enough.\n" : ""}
Example: git commit -m "✨ My excellent new feature"

EOM
puts denied
exit 1
end
rescue LoadError => e
warn("gitmoji-regex gem not found: #{e.class}: #{e.message}.\n\tSkipping gitmoji check and allowing commit to proceed.\n\tRecommendation: add 'gitmoji-regex' to your development dependencies to enable this check.")
exit 0
end
8 changes: 8 additions & 0 deletions .git-hooks/commit-subjects-goalie.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
🔖 Prepare release v
🔒️ Checksums for v

# Lines beginning with # are ignored.
# This file is read by .git-hooks/prepare-commit-msg in each project.
# Each line of this file will be matched against the commit subject using `starts_with?`.
# If any `starts_with?` match the project script bin/prepare-commit-msg will run.
# 🔒️ Checksums for v is the standard commit message by stone_checksums.
16 changes: 16 additions & 0 deletions .git-hooks/footer-template.erb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
⚡️ A message from a fellow meat-based-AI ⚡️
- [❤️] Finely-crafted open-source tools like <%= @gem_name %> (& many more) are a full-time endeavor.
- [❤️] Though I adore my work, it lacks financial sustainability.
- [❤️] Please, help me continue enhancing your tools by becoming a sponsor:
- [💲] https://liberapay.com/pboling/donate
- [💲] https://github.com/sponsors/pboling

<% if ENV["GIT_HOOK_FOOTER_APPEND_DEBUG"] == "true" %>
@pwd = <%= @pwd %>
@gemspecs = <%= @gemspecs %>
@spec = <%= @spec %>
@gemspec_path = <%= @gemspec_path %>
@gem_name <%= @gem_name %>
@spec_name <%= @spec_name %>
@content <%= @content %>
<% end %>
19 changes: 19 additions & 0 deletions .git-hooks/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Fail on error and unset variables
set -eu

# Determine project root as the parent directory of this hook script
PROJECT_ROOT="$(CDPATH= cd -- "$(dirname -- "$0")"/.. && pwd)"

# Run the Ruby hook within the direnv context (if available),
# so ENV from .envrc/.env.local at project root is loaded.
# One of the things .envrc needs to do is add $PROJECT_ROOT/bin/ to the path.
# You should have this line at the top of .envrc
# PATH_add bin
# NOTE: If this project ships exe scripts it should also add that.
if command -v direnv >/dev/null 2>&1; then
exec direnv exec "$PROJECT_ROOT" "kettle-commit-msg" "$@"
else
raise "direnv not found. Local development of this project ($PROJECT_ROOT) with tools from the kettle-dev gem may not work properly. Please run 'brew install direnv'."
fi
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ open_collective: # Replace with a single Open Collective username
patreon: galtzo # Replace with a single Patreon username
polar: pboling
thanks_dev: u/gh/pboling
tidelift: rubygems/omniauth-identity # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
tidelift: rubygems/omniauth-identity
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
interval: "weekly"
open-pull-requests-limit: 5
ignore:
- dependency-name: "rubocop-lts"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
97 changes: 0 additions & 97 deletions .github/disabled/truffle.yml

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/ancient-svc-adapters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ concurrency:

jobs:
test:
name: Specs ${{ matrix.ruby }} ${{ matrix.appraisal_name }}${{ matrix.name_extra || '' }}
name: Specs ${{ matrix.ruby }} ${{ matrix.appraisal }}${{ matrix.name_extra || '' }}
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
Expand All @@ -39,29 +39,29 @@ jobs:
include:
# Ruby 2.4
- ruby: "2.4"
appraisal_name: "couch-1.17-r2.4"
appraisal: "couch-1.17-r2.4"
exec_cmd: "rake spec:orm:couch_potato"
gemfile: "Appraisal.root"
rubygems: "3.3.27"
bundler: "2.3.27"

- ruby: "2.4"
appraisal_name: "mongoid-7.3-b4.12"
appraisal: "mongoid-7.3-b4.12"
exec_cmd: "rake spec:orm:mongoid"
gemfile: "Appraisal.root"
rubygems: "3.3.27"
bundler: "2.3.27"

# Ruby 2.5
- ruby: "2.5"
appraisal_name: "couch-1.17-r2.5"
appraisal: "couch-1.17-r2.5"
exec_cmd: "rake spec:orm:couch_potato"
gemfile: "Appraisal.root"
rubygems: "3.3.27"
bundler: "2.3.27"

- ruby: "2.5"
appraisal_name: "mongoid-7.4-b4.15"
appraisal: "mongoid-7.4-b4.15"
exec_cmd: "rake spec:orm:mongoid"
gemfile: "Appraisal.root"
rubygems: "3.3.27"
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
# NOTE: This does not use the main Gemfile at all.
- name: Install Root Appraisal
run: bundle
- name: Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle
- name: Run ${{ matrix.exec_cmd }} on ${{ matrix.ruby }}@${{ matrix.appraisal_name }}
run: bundle exec appraisal ${{ matrix.appraisal_name }} bundle exec ${{ matrix.exec_cmd }}
- name: Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal }}
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
- name: Run ${{ matrix.exec_cmd }} on ${{ matrix.ruby }}@${{ matrix.appraisal }}
run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}
Loading
Loading