Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autoproj-stats

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoproj-stats

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Autoproj::Stats

An Autoproj plugin to generate authorship/copyright statistics

Installation

Add this line to your application's Gemfile:

gem 'autoproj-stats'

And then execute:

$ bundle

Or install it yourself as:

$ gem install autoproj-stats

Usage

The plugin can be accessed from the autoproj command line with

autoproj help stats

In its simplest form, it's going to compute authorship information for all supported VCS types in the autoproj installation, and display summary information at the end.

autoproj stats

The statistics can be saved in a text file with --save

autoproj stats --save=stats.txt

The first thing you may want to improve is sanitizing author name(s). This is done by providing a YAML config file with an 'aliases' section. The method is usually to comb through the list of names in the summary generated by autoproj stats and replace dummy names by actual ones.

aliases:
    Name As Reported By Autoproj Stats: Actual Name

This config file (let's call it stats.yml) can then be passed to autoproj stats with the --config option

autoproj stats --config=stats.yml

Then, you probably want to add affiliation information (a.k.a. copyright assignation). The simplest is to provide an institution/copyright holder name per author name:

affiliations:
    Author Name: Company Name

However, some authors change affiliations over time, in which case you provide a list of company and start dates:

affiliations:
    Author Name:
    - [Company1, 2008-02-01]
    - [Company2, 2012-03-01]

Finally, you can provide per-package license information. No way to give fine-grained stuff there.

licenses:
    package_name: License Name

Development

After checking out the repo, run bundle install to install dependencies. Then, run rake test to run the tests.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/doudou/autoproj-stats.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 03 Sep 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc