Skip to content
/ p6-river Public
forked from JJ/raku-river

An analysis of dependencies in the Perl 6 ecosystem

License

Notifications You must be signed in to change notification settings

Rho-n/p6-river

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

NAME

Perl6::Ecosystem - Obtains information from Perl6 modules in the ecosystem

SYNOPSIS

use Perl6::Ecosystem;
my $eco = Perl6::Ecosystem.new;

say $eco.modules;
say $eco.depended;
say $eco.depends-on;

DESCRIPTION

Module and scripts for obtaining information on the dependency graph among Perl 6 modules.

This module works on the Toast database. You will need to download it first and place it on the data/ directory; it comes with a (possibly outdated) version of it.

METHODS

method new( )

Creates the object, downloading and filling it with information. Error output goes to /tmp/perl6-eco-err.txt

method modules

Returns a hash with module names, dependencies and URLs.

method depended

Returns a hash with module names and the number of other modules it depends on.

method depends-on

Returns a hash with module names and its dependencies.

method river-scores --> Hash

Computes the "river-score" by looking at all dependency chains and giving a score according to the position. That is, if there's this dependenci chain

Foo → Bar → Baz

Foo will have a 0 score for appearing in the first position, up to Baz which will have score equal to 2. The total score of every module is computed by adding all scores.

SEE ALSO

Perl6 module ecosystem.

AUTHOR

Alex Daniel, JJ Merelo jjmerelo@gmail.com

COPYRIGHT AND LICENSE

Copyright 2018 Alex Daniel, JJ Merelo

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

About

An analysis of dependencies in the Perl 6 ecosystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 97.2%
  • Other 2.7%
  • R 0.1%