Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/metacpan/metacpan-api

A free, open API for everything you want to know about CPAN
https://github.com/metacpan/metacpan-api

Extract reading the modules from meta provides.

ecb4d4afef2b12e850552a007e1d69163ca99802 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Change MC::Model::Release to return an arrayref of files.

More efficient when it's called multiple times, and it's going to be
as import_archive is split ...

06b4727ef2056cb453f28a5d3bc94cc58f7eb847 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Move building the release document into the release model.

I'm not happy that building it also indexes it, but I don't know how to
instanciate a document w...

40b6f88be9cf93ab8b2a887a5ca1e5e4391c73d5 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Give MC::Model::Release the whole CPAN::DistnameInfo object.

This lets it derive its own attributes, easier to instantiate.

It also gives it everything nece...

62788f8e870965aaed60bbfb8032a01ccaf06dac authored almost 10 years ago by Michael G. Schwern <[email protected]>
Store archive paths as absolute.

This protects against chdir'ing. As more lazy initialization is used,
this becomes more of a co...

69d2016f28301e2320742013c410b8bb2a2d6704 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Provide absolute file and dir types.

This will be used by MC::Model::Archive and the like to coerce
relative paths into absolute to p...

49d0891edddfeb0761d8df671aac8a34404b0707 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Refactor $release_model -> $model

In the context of the release script, $release_model is redundant.

946ef4eac2035a33c5dcae6bed9b9a8e0b47b2f0 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Refactor $release -> $document

"document" is more descriptive of what it is than "release" in the
context of the release script.

3794ec9a18cc527844538913c12fdb80d870ac33 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Fix perlcritic's whinging about trailng comma and double quotes.

b68f12982c97121f1b67d84c742ac9f1173711f9 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Extract building the dependency list from MC::Script::Release

Needed to allow the model to make the MC::Document::Release.

f7a3fcc67506f4cf814be8042e074911aaa93abf authored almost 10 years ago by Michael G. Schwern <[email protected]>
Replace direct use of Archive::Any with MC::Model::Archive.

Then if we change how archives are extracted in the future it only has
to be done in one place.
...

d86d44bd69cb5590e41f6a65625f3b120bac7cd6 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Using subdir() to make a file is a no-no.

d11a4141d55c322a8c6307581665d10c3b39fc6d authored almost 10 years ago by Michael G. Schwern <[email protected]>
Fix who loads what modules.

With all the code moving around, it can get lost.

e8f28fdb55c094400e05cdd34906ffbf5e7209e1 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Move loading metadata into MC::Model::Release.

Moving more functionality about indexing a release out of the Script
and into the Model.

8907ccdb0b76a2cfddfebf115183f13ae2aa621b authored almost 10 years ago by Michael G. Schwern <[email protected]>
Terminology fix! Tarball -> Archive.

CPAN releases are tarballs AND zipfiles (and some other weird things).
It's wrong to refer to th...

90d336aaff3b6a4b129f00596d50318cda5e4195 authored almost 10 years ago by Michael G. Schwern <[email protected]>
MetaCPAN::Model::Tarball -> MetaCPAN::Model::Release

MC::M::Archive handles the actual file now (and we have more than
tarballs). This model is abou...

a1211ec44b0b4c9dac983aebd6f6dbb85fba0de6 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Extract archive file handling into MetaCPAN::Model::Archive

This makes managing the extraction directory easier, and it's an
easier unit to test and improve...

30e1f842b6d60c6457034136fdd02709eb21ca44 authored almost 10 years ago by Michael G. Schwern <[email protected]>
use qq{}

8cfd13e852c46e7bd5c2074578984e78606cf89b authored almost 10 years ago by Andreea Pirvulescu <[email protected]>
remove unused dependency + tidy

3abaacb9501480186789cb895aecf394b72df5da authored almost 10 years ago by Andreea Pirvulescu <[email protected]>
Make the tarball test work.

This is mostly about being able to instanciate a Tarball object at
all. It reveals a bunch of p...

76a050f50f75673bd77bffbd2cd6cd6e37590f0e authored almost 10 years ago by Michael G. Schwern <[email protected]>
Merge branch 'refactor/Role-Common' into indexing

MetaCPAN::Role::Logger is needed to test MetaCPAN::Model::Tarball alone.

2ab33ac3d745bd3ff51828d99d6c55331445d6c7 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Move setting the defaut logger into its own method.

So non-scripts can use it.

bd8ed9bf0d025048ee842e01907451e014b5a50c authored almost 10 years ago by Michael G. Schwern <[email protected]>
Extract MetaCPAN::Role::Logger from MetaCPAN::Role::Script.

Things that aren't scripts need to log.

Script still has the code to setup the logger, that'll ...

c71c2c5e0d29a8f35cbcf3113a4a86faab5bbc8c authored almost 10 years ago by Michael G. Schwern <[email protected]>
Rename MetaCPAN::Role::Common to MetaCPAN::Role::Script

It turns out, it's not "common" once you start making things that aren't scripts.

More extracti...

4064e19539f6b959912723a8e5c9308d6becf468 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Extract the tarball early so its metadata can be found.

This fixes the tests broken by 44652516a577720a85e61e8386f2e5113a3bfd58
Otherwise $tmpdir is emp...

5fa1b4f71f043ffd4d20fc48649f8ea5dc959aa9 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Make the archive object a parameter, build it on demand.

This is necessary to allow a separate extract method.
That is necessary to fix the current test ...

fe57086abedfc22b9959ab6870af167144bfd3f0 authored almost 10 years ago by Michael G. Schwern <[email protected]>
Add missing dependencies from last commit.

84ea1a21a40171c68abc91ef4b938e4cb0f0e75c authored almost 10 years ago by Michael G. Schwern <[email protected]>
add Tarball model

44652516a577720a85e61e8386f2e5113a3bfd58 authored almost 10 years ago by Andreea Pirvulescu <[email protected]>
Packages with leading underscores should not be indexed

141117f1f4bf451badaa6ea2034dd258bacd4d6f authored almost 10 years ago by Andreea Pirvulescu <[email protected]>
Use function to generate more helpful File for testing

The %stub hash made it easy to write false-positive tests.
Use a function so we can generate fil...

04994a98d668238a522b353bf77c26ba3c4332b0 authored almost 10 years ago by Randy Stauner <[email protected]>
Remove overlooked (broken) '.../t/' test

Should have been removed with 3e017fb128ba72cf8380939aca21eb50dae25626.
Unfortunately the test w...

e4981c77447b778141b80db1bf3217daf3bc5ed4 authored almost 10 years ago by Randy Stauner <[email protected]>
Merge pull request #382 from CPAN-API/resources-lax

remove custom fields when coercing to resources type

dc68100acfc43f8639855763687e22badc1a4326 authored almost 10 years ago by Olaf Alders <[email protected]>
remove custom fields when coercing to resources type

3f783f913f2b82765130743854fcd4a2adee3326 authored almost 10 years ago by Graham Knop <[email protected]>
Ensure we can index local::lib

closes #380.

3e017fb128ba72cf8380939aca21eb50dae25626 authored almost 10 years ago by Randy Stauner <[email protected]>
Make pod html x-code handling a config var

Make the default behavior easy to toggle.

6cecb7c9d65dff594a102b8cbc6974393b5bbc1d authored almost 10 years ago by Randy Stauner <[email protected]>
Enable representing X<> codes as html anchors

Currently disabled but can be frobbed with a query string param.

2bf8b21a4fb3c8c5124ff353a16c37041d4e6eb9 authored almost 10 years ago by Randy Stauner <[email protected]>
Use newer API for Pod::Markdown

isa Pod::Simple now
we can do it the same way we do xhtml

27339da2dfcedcc5c0ccb7625fb3f06ff3839796 authored almost 10 years ago by Randy Stauner <[email protected]>
Test how X<> codes are handled with each format

13c73d40c694fd8e354abfde19d7dac467586bfb authored almost 10 years ago by Randy Stauner <[email protected]>
Sort release 'provides' array

No reason not to; aids testing.

1798914a4dafd942d01b42d594d46d1cf9b65e0d authored almost 10 years ago by Randy Stauner <[email protected]>
Add --no-prompt option to reindexdist script

032e592080a5b351339a3569156a1db9da081f5a authored almost 10 years ago by Randy Stauner <[email protected]>
Sort provides in test

47d59852f3f04f0feba0bfd14e368327af656b77 authored almost 10 years ago by Randy Stauner <[email protected]>
Ensure that pod parsing errors are not fatal

a1343f066c17d66b141cd02e78a0149747bdf599 authored almost 10 years ago by Randy Stauner <[email protected]>
Test that a shipped local lib is not included

fc7c69e1f48f02bac236ca6a6f28a4d0b8a957d2 authored almost 10 years ago by Randy Stauner <[email protected]>
Always add local, perl5, and fatlib to no_index

PAUSE always excludes these so we can too.
Put the list of dirs in one place.

4f034ea52e22e2c7ab062d3c778848c4ab58c6f9 authored almost 10 years ago by Randy Stauner <[email protected]>
Upgrade Pod::Simple to 3.29

This is a fix for #377.

69dce3ad4b2020d0eba0a36bf66c152105b676c4 authored almost 10 years ago by Olaf Alders <[email protected]>
Comment on default release and test statuses

d3c39009e5233e66730e32ff512ed9bdae279cb9 authored about 10 years ago by Randy Stauner <[email protected]>
Convert old wiki links to markdown links

perl -p -i -e ' s{\[\[([^]|]+/)?([^]|]+)\]\]}{ $1 ? "$1$2" : sprintf("[%s](%s)", $2, "https://gi...

742b5e8913564639213f9930744e670bbc5bcc2e authored about 10 years ago by Randy Stauner <[email protected]>
Merge pull request #372 from andreeap/master

Add link for a getting started with elasticsearch

04bc685b6169a2f834b8cebbf0bf38640b886370 authored about 10 years ago by Olaf Alders <[email protected]>
Add link for a getting started with elasticsearch

6cca37b7dc32f31a12df086ccb09d7a7ff904154 authored about 10 years ago by Andreea Pirvulescu <[email protected]>
Improve munging of more bizarre non-pod

d6837558ddc0d24e6c2aef8754da053879f223b0 authored about 10 years ago by Randy Stauner <[email protected]>
Tidy previous test (and add comments)

935e31ee967cf3ffc56afae0876ab586b286c89b authored about 10 years ago by Randy Stauner <[email protected]>
Test the pod text attribute when testing file doc

2832cb64db42ef493e66301246c2a9828aa90f2e authored about 10 years ago by Randy Stauner <[email protected]>
Ignore fake pod starting with "\r" also

Pod::Simple "splits" lines at \r, \n, or \r\n.

af93eb8ffe3a58fb76cc90b3667466942e08b428 authored about 10 years ago by Randy Stauner <[email protected]>
Ignore non-pod that might match a loose pod regexp

like binary data.

refs #364.

fc7e25e8f73bd8d5515ea28842eacf38d2778808 authored about 10 years ago by Randy Stauner <[email protected]>
Test that binary data isn't treated as pod

08e63b9d60bd7ca9206b1fef139f63bc23366223 authored about 10 years ago by Randy Stauner <[email protected]>
Don't index pod errors

5ca8309d3587baf43e294c721f418f8df0b59542 authored about 10 years ago by Randy Stauner <[email protected]>
Test the malformed pod text of BadPod dist

8832288cacea61f5e55b67ea3f897162c45d30c7 authored about 10 years ago by Randy Stauner <[email protected]>
Strip trailing space from pod text

89402b0b575f706000a249b879d8178c3b40cfcb authored about 10 years ago by Randy Stauner <[email protected]>
Test expected pod text for various files

2e5c3ab14664014445ae4e53cd610faf2b867d95 authored about 10 years ago by Randy Stauner <[email protected]>
Add helper to release to get file by path

f4ac38d938111cb42d9b87269377c0dd2f7ee9b5 authored about 10 years ago by Randy Stauner <[email protected]>
Ensure tidyall finds correct .perltidyrc

bdade4e79973788bc41c5220d2f5244e05b3597a authored about 10 years ago by Olaf Alders <[email protected]>
Merge pull request #367 from rose/excludePaths

exclude inc and local directories from indexing

c40d9aa4ccee11ae4dedc512ba5847e07575a697 authored about 10 years ago by Olaf Alders <[email protected]>
exclude inc and local directories from indexing

7a3bea63638474221d81861ec4d995a2cf03c6b0 authored about 10 years ago by Rose Ames <[email protected]>
Update cpanfile.snapshot

Some non-obvious changes came in from the openid branch.

I moved the carton dir on my dev vm an...

f414c2a1604c428048f11ddcc03dc42560842ff4 authored about 10 years ago by Randy Stauner <[email protected]>
Merge branch 'openid-with-more-tests'

* openid-with-more-tests:
Handle localhost.localdomain difference in test
Test openid login ...

67a5eb821f7719e0fd4d39c8623cabd2f640279e authored about 10 years ago by Randy Stauner <[email protected]>
Handle localhost.localdomain difference in test

it depends on /etc/hosts

fba7f34528253c0704e36f71b2189595ad2028c9 authored about 10 years ago by Randy Stauner <[email protected]>
Test openid login end to end

use UserAgent role to follow redirects back and forth.

3e3db53626010a998fb775f994b566161d29a257 authored about 10 years ago by Randy Stauner <[email protected]>
Add UserAgent role to help testing external http

c4fbadff393c8ec88e2b950e6a886298d7eea450 authored about 10 years ago by Randy Stauner <[email protected]>
Add 'path' to comment about composition of file id

b1fbdd14721fd28c53b0013c174dac6d67607701 authored about 10 years ago by Randy Stauner <[email protected]>
Appease perl-critic in recently edited files

d0fd6a004ac8f20be8803ae1a42010132d131a37 authored about 10 years ago by Randy Stauner <[email protected]>
Make raw diff available from all diff endpoints

Move common logic a single method
and just get the source/target in each endpoint.

fixes #250.

db26b58592e17d9bf321cbddff68ec44b4a40553 authored about 10 years ago by Randy Stauner <[email protected]>
Appease perl critic in t/ and remove from exclusions

68d1ba1ad76d2d213c944bbef57ce2d29ace724d authored about 10 years ago by Randy Stauner <[email protected]>
Test that each /diff endpoint can output raw text

refs #250.

58ac5f7ff30d7fba4c6603af95bb1ceecbe6ae3d authored about 10 years ago by Randy Stauner <[email protected]>
Make diff tests easier to read and test more attributes

ce2fe9ef26515714909986e9baf7a07a16bdece4 authored about 10 years ago by Randy Stauner <[email protected]>
Reduce duplication in file diff endpoint

b1ed7fe7db8941980b30e69f7831cc1e5c40121c authored about 10 years ago by Randy Stauner <[email protected]>
Comment on each diff endpoint

6741a2de39c7a72721b4fc6748e37796fc090911 authored about 10 years ago by Randy Stauner <[email protected]>
Make decode_json_ok helper to DRY common idiom

10ec06f42765e672c09ae33218a4eb9a57aadd2b authored about 10 years ago by Randy Stauner <[email protected]>
Merge pull request #350 from szabgab/patch-1

mibbit link to IRC channel

915943c25d0d0c20a2c1dc2a7cb4e1885ddcbe29 authored about 10 years ago by Olaf Alders <[email protected]>
Remove no-longer relevant comment

[ci skip]

61efffd618a0b5554f5e384089395286af02a3ad authored about 10 years ago by Randy Stauner <[email protected]>
Score assoc_pod with matching path highest

makes previous tests pass.

6e87569d81cf2761675f8368146c1c4fbad65951 authored about 10 years ago by Randy Stauner <[email protected]>
Test that assoc_pod with matching name scores higher

4e23074ab0ceeb5249fc971bfe6ca777f2eec1e7 authored about 10 years ago by Randy Stauner <[email protected]>
Change foreach to c-style for loop for performance

dace93b754f25830c4b23be879cea5b5ee7f382d authored about 10 years ago by Randy Stauner <[email protected]>
Don't strip __DATA__ section from file content

It throws off line counts (like pod_lines).

This fixes the previous sloc/slop/pod_lines tests.

4711a27f3c54c8bd637c66bc3736b4d46551587e authored about 10 years ago by Randy Stauner <[email protected]>
Don't stop looking for pod after __DATA__

Pod parsers don't.

bd1d2e98930e8e4547e9f80f207517c388fab7cb authored about 10 years ago by Randy Stauner <[email protected]>
Add several tests for __DATA__ tokens and pod

refs cpan-api/metacpan-web#1415

bbaa1bff3fc5166ea69268542ce755f45f2011ce authored about 10 years ago by Randy Stauner <[email protected]>
Add slocs, slop, and pod_lines to existing test cases

bc7195796221e460e56c075299b5bdc666d76095 authored about 10 years ago by Randy Stauner <[email protected]>
Upgrade scope blocks to subtests for better diagnostics

66e70c117bba753a93c1afa423419ccc9f054441 authored about 10 years ago by Randy Stauner <[email protected]>
Remove a few exemptions from the perl-critic tests

c5de2ad2635c73b7ce688dc5f9a2f99536c4040f authored about 10 years ago by Randy Stauner <[email protected]>
Add file_content method to release test role

Combine up duplicate logic from other tests.

f6a090d7910b104d110af9ccbfc827a4a17183d0 authored about 10 years ago by Randy Stauner <[email protected]>
Add test_psgi helper to test roles

3940a56f961d513c9fb49223534bbdfc39000858 authored about 10 years ago by Randy Stauner <[email protected]>
Lazily execute setup so module can be loaded normally

No special instructions required in test suite and helpers
can now be reused in more places.

c76428a6d3d5222fd5b1f3497104d0239880034c authored about 10 years ago by Randy Stauner <[email protected]>
Initial OpenID controller to serve OpenID login

867eb32f30fca7bf2346765dbbcf1690236c190a authored about 10 years ago by oiami <[email protected]>
Set secret key on config file to make it be configurable

33318b8f59e5303798caef3aa2c31ad6718fe3e7 authored about 10 years ago by oiami <[email protected]>
Require new dependencies

22651db5896a8798be4c49ca9269732541769ca7 authored about 10 years ago by oiami <[email protected]>
Pre install libgmp-dev since it's required by Net::OpenID::Consumer

129434f38a421c2a00815249ae5eb43d1dfc004e authored about 10 years ago by oiami <[email protected]>
Move generate_sid function to Util for reusability

d284c524a47b59cd2655138cfaa9a8bb00169d93 authored about 10 years ago by oiami <[email protected]>
Comment on why test suite says "mapping" for all scripts

45078b31b855b1cdd0ee02bc3af64465f2741385 authored about 10 years ago by Randy Stauner <[email protected]>
Remove unused message argument from not_found tests

It hasn't been used in a long time
and now we can expect the same message from everywhere.

10ab19969f56776302275b582bdcc425f602ffe7 authored about 10 years ago by Randy Stauner <[email protected]>
Make the default message "Not found" instead of the path

Getting a message of just "path/part" is confusing and unhelpful.
This is now consistent with wh...

20e5db4aa10f6cdb8feaee0d16c7156158b62680 authored about 10 years ago by Randy Stauner <[email protected]>
Explicitly test 404 on a non-root (non-existent) url

cadc9371ff2f32adda6c515b8fc38bc5647f4721 authored about 10 years ago by Randy Stauner <[email protected]>