Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
gitstats-rb is a clone of gitstats written in ruby. It's written to support templates and should be easily extendable.
gem install gitstats-rb
The basic usage is quite simple. Just run gitstats
with the git directory as
parameter. If you want to generate stats of more than one repository just list
them one after another. Note that this will generate only one statistic but
consider the commits from all repositories. Additionally, you can also specify a
name and a ref for each repository via the following format:
<name>:<path to repository>:<ref>
.
For example:
gitstats gitstats-rb:.:master
For more options please read sections about caching below and run gitstats -h
.
gitstats-rb implements two types of caches but one of them is just useful when developing new statistic classes. The one useful for the end-user is the stats-cache and the other one (for the devs) is the commit-cache.
The stats-cache caches the statistic objects used internally. This drastically
improves the speed of incremental updates because only the new commits have to
be taken into account. To activate this cache pass the -c
command line flag.
By default this creates the stats-cache file in the output directory. If you
want to use another file you can specify it by using --statcache <filename>
.
Please note that this cache can only be used when working on the same repositories as used in the previous run. Identification is done using the repository name or, if not specified, using the given (not relative!) path.
As already mentioned this cache is only useful if you want to develope new
statistic classes. It works by caching the internal commit objects to a per
repository file that can be reread when running again. This is especially useful
if you experiment with big repositories where this cache is about twice as fast
as the git log
command used internally.
This cache can be activated with the -C
command line flag. By default the
commit-cache is written into the output directory (./stats
by default). If you
want to use another directory you can specify it by using
--commitcache <directory name>
.
The project is licensed under GPLv3. The details can be found in the LICENSE
file.
FAQs
Unknown package
We found that gitstats-rb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.