Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Meathook is a gem to help manage a living set of githooks. Inspired by Babar (http://github.com/jdabbs/babar), but intended to be more general in purpose.
The .hooks.yaml
file should be committed in the root of your repository -
it's a yaml file like so:
---
path: "bin/meathook"
pre-commit:
no_focus:
command: "git diff --cached spec/ | grep '^+' | grep ':focus'"
condition: "nonempty"
halt: true
message: "You are trying to commit a focused spec!"
post-merge:
remember_to_bundle:
command: "git diff --name-only HEAD^..HEAD | grep Gemfile
condition: "nonempty"
halt: false
message: "Gemfile was just updated - remember to run 'bundle install'"
Each hook type can be a toplevel key in that file, and the keys in each are arbitrary names of tasks. Each task then has the keys:
The 'path' key is special, and is used to supply a literal path to the meathook script,
so that your githooks don't have to use bundler (which can add a half-second onto each
operation). if which meathook
doesn't give you a path, then you need to specify a path
with this key.
meathook install
In order to run the githooks, meathook needs to install a self-call into each of the
.git/hooks scripts of the form meathook execute <hookname>
.
meathook uninstall
Removes the meathook call from all of the githooks.
FAQs
Unknown package
We found that meathook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.