0.0
No commit activity in last 3 years
No release in over 3 years
This autoproj plugin adds the 'stats' subcommand to autoproj, which allows to compute per-package and aggregated statistics information about authorship, for all packages within an autoproj workspace
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
>= 5.0, ~> 5.0
~> 10.0

Runtime

 Project Readme

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.