Skip to content

Commit

Permalink
update links for new org and repo names
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed Jun 28, 2016
1 parent 5302f4e commit c18c839
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
@@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/CPAN-API/cpan-api.png?branch=master)](https://travis-ci.org/CPAN-API/cpan-api)
[![Coverage Status](https://coveralls.io/repos/CPAN-API/cpan-api/badge.png)](https://coveralls.io/r/CPAN-API/cpan-api)
[![Build Status](https://travis-ci.org/metacpan/metacpan-api.png?branch=master)](https://travis-ci.org/metacpan/metacpan-api)
[![Coverage Status](https://coveralls.io/repos/metacpan/metacpan-api/badge.png)](https://coveralls.io/r/metacpan/metacpan-api)

A Web Service for the CPAN
==========================
Expand All @@ -12,7 +12,7 @@ REST API

MetaCPAN is based on Elasticsearch, so it provides a RESTful interface as well
as the option to create complex queries. [The
wiki](https://github.com/CPAN-API/cpan-api/wiki/API-docs) provides a good
wiki](https://github.com/metacpan/metacpan-api/wiki/API-docs) provides a good
starting point for REST access to MetaCPAN.

Expanding Your Author Info
Expand All @@ -25,7 +25,7 @@ information about yourself.
Installing Your Own MetaCPAN:
---------------------------------------

If you want to run MetaCPAN locally, we encourage you to start with a VM: [Metacpan Developer VM](https://github.com/CPAN-API/metacpan-developer)
If you want to run MetaCPAN locally, we encourage you to start with a VM: [Metacpan Developer VM](https://github.com/metacpan/metacpan-developer)
However, you may still find some info here:

## Troubleshooting Elasticsearch
Expand Down
2 changes: 1 addition & 1 deletion bin/mirror_cpan_for_developers.pl
@@ -1,6 +1,6 @@
# This script is only needed if you are developing metacpan,
# on the live servers we use File::Rsync::Mirror::Recent
# https://github.com/CPAN-API/Metacpan-Puppet/tree/master/modules/rrrclient
# https://github.com/metacpan/metacpan-puppet/tree/master/modules/rrrclient

use CPAN::Mini;

Expand Down
8 changes: 4 additions & 4 deletions docs/API-docs.md
Expand Up @@ -2,7 +2,7 @@

For an introduction to the MetaCPAN API which requires no previous knowledge of MetaCPAN or ElasticSearch, see [the slides for "Abusing MetaCPAN for Fun and Profit"](http://www.slideshare.net/oalders/abusing-metacpan2013) or [watch the actual talk](http://www.youtube.com/watch?v=J8ymBuFlHQg).

There is also [a repository of examples](https://github.com/CPAN-API/metacpan-examples) you can play with to get up and running in a hurry. Rather than editing this wiki page, please send pull requests for the metacpan-examples repository. If you'd rather edit the wiki, please do, but sending the code pull requests is probably the most helpful way to approach this.
There is also [a repository of examples](https://github.com/metacpan/metacpan-examples) you can play with to get up and running in a hurry. Rather than editing this wiki page, please send pull requests for the metacpan-examples repository. If you'd rather edit the wiki, please do, but sending the code pull requests is probably the most helpful way to approach this.

_All of these URLs can be tested using the [MetaCPAN Explorer](https://explorer.metacpan.org)_

Expand All @@ -20,7 +20,7 @@ Be aware that when you scroll, your docs will come back unsorted, as noted in th

## Identifying Yourself

Part of being polite is letting us know who you are and how to reach you. This is not mandatory, but please do consider adding your app to the [API-Consumers](https://github.com/CPAN-API/cpan-api/wiki/API-Consumers) page.
Part of being polite is letting us know who you are and how to reach you. This is not mandatory, but please do consider adding your app to the [API-Consumers](https://github.com/metacpan/metacpan-api/wiki/API-Consumers) page.

## Available fields

Expand All @@ -38,7 +38,7 @@ Available fields can be found by accessing the corresponding `_mapping` endpoint

## Field documentation

Fields are documented in the API codebase: https://github.com/CPAN-API/cpan-api/tree/master/lib/MetaCPAN/Document Check the Pod for discussion of what the various fields represent. Be sure to have a look at https://github.com/CPAN-API/cpan-api/blob/master/lib/MetaCPAN/Document/File.pm in particular as results for /module are really a thin wrapper around the `file` type.
Fields are documented in the API codebase: https://github.com/metacpan/metacpan-api/tree/master/lib/MetaCPAN/Document Check the Pod for discussion of what the various fields represent. Be sure to have a look at https://github.com/metacpan/metacpan-api/blob/master/lib/MetaCPAN/Document/File.pm in particular as results for /module are really a thin wrapper around the `file` type.

## Search without constraints

Expand All @@ -53,7 +53,7 @@ Performing a search without any constraints is an easy way to get sample data

## Joins

ElasticSearch itself doesn't support joining data across multiple types. The API server can, however, handle a `join` query parameter if the underlying type was set up accordingly. Browse https://github.com/CPAN-API/cpan-api/blob/master/lib/MetaCPAN/Server/Controller/ to see all join conditions. Here are some examples.
ElasticSearch itself doesn't support joining data across multiple types. The API server can, however, handle a `join` query parameter if the underlying type was set up accordingly. Browse https://github.com/metacpan/metacpan-api/blob/master/lib/MetaCPAN/Server/Controller/ to see all join conditions. Here are some examples.

Joins on documents:

Expand Down
4 changes: 2 additions & 2 deletions lib/MetaCPAN/Document/File.pm
Expand Up @@ -76,7 +76,7 @@ has abstract => (
is => 'ro',

# isa is commented as it affect the type mapping
# see https://github.com/CPAN-API/cpan-api/pull/484
# see https://github.com/metacpan/metacpan-api/pull/484
# -- Mickey
# isa => Maybe[Str],
lazy => 1,
Expand Down Expand Up @@ -303,7 +303,7 @@ has documentation => (
is => 'ro',

# isa is commented as it affect the type mapping
# see https://github.com/CPAN-API/cpan-api/pull/484
# see https://github.com/metacpan/metacpan-api/pull/484
# -- Mickey
# isa => Maybe [Str],
lazy => 1,
Expand Down
2 changes: 1 addition & 1 deletion t/lib/MetaCPAN/TestServer.pm
Expand Up @@ -114,7 +114,7 @@ sub _build_es_server {
catch {
diag(<<"EOF");
Failed to connect to the Elasticsearch test instance on ${\$self->_es_home}.
Did you start one up? See https://github.com/CPAN-API/cpan-api/wiki/Installation
Did you start one up? See https://github.com/metacpan/metacpan-api/wiki/Installation
for more information.
Error: $_
EOF
Expand Down
2 changes: 1 addition & 1 deletion t/script/river.t
Expand Up @@ -11,7 +11,7 @@ use URI ();

my $config = MetaCPAN::Script::Runner::build_config;

# local json file with structure from https://github.com/CPAN-API/cpan-api/issues/460
# local json file with structure from https://github.com/metacpan/metacpan-api/issues/460
my $root = checkout_root();
my $file = URI->new('t/var/river.json')->abs("file://$root/");
$config->{'river_url'} = "$file";
Expand Down
2 changes: 1 addition & 1 deletion t/util.t
Expand Up @@ -92,7 +92,7 @@ EOF
'NAME matched correct head1 section' );
}

# https://github.com/CPAN-API/cpan-api/issues/167
# https://github.com/metacpan/metacpan-api/issues/167
{
my $content = <<EOF;
=head1 NAMED PIPE
Expand Down
2 changes: 1 addition & 1 deletion test-data/fakecpan/configs/metafile-json.json
Expand Up @@ -11,7 +11,7 @@
},
{
"file": "META.json",
"content": "{\"resources\":{\"bugtracker\":{\"web\":\"https://github.com/CPAN-API/cpan-api/issues\"}},\"meta-spec\":{\"version\":2,\"url\":\"http://search.cpan.org/perldoc?CPAN::Meta::Spec\"},\"generated_by\":\"hand\",\"version\":1.1,\"name\":\"MetaFile-JSON\",\"dynamic_config\":0,\"author\":\"LOCAL\",\"license\":\"unknown\",\"abstract\":\"A dist with META.yml and META.json\",\"release_status\":\"stable\",\"x_meta_file\":\"json\"}"
"content": "{\"resources\":{\"bugtracker\":{\"web\":\"https://github.com/metacpan/metacpan-api/issues\"}},\"meta-spec\":{\"version\":2,\"url\":\"http://search.cpan.org/perldoc?CPAN::Meta::Spec\"},\"generated_by\":\"hand\",\"version\":1.1,\"name\":\"MetaFile-JSON\",\"dynamic_config\":0,\"author\":\"LOCAL\",\"license\":\"unknown\",\"abstract\":\"A dist with META.yml and META.json\",\"release_status\":\"stable\",\"x_meta_file\":\"json\"}"
},
{
"file": "t/foo.t",
Expand Down
2 changes: 1 addition & 1 deletion test-data/fakecpan/configs/p-1.0.20.yml
Expand Up @@ -2,7 +2,7 @@ name: P
version: 'v1.0.20'

X_Module_Faker:
# Live test case (https://github.com/CPAN-API/metacpan-web/issues/1046):
# Live test case (https://github.com/metacpan/metacpan-web/issues/1046):
# The archive basename doesn't have the 'v' in the version
# but the META file does.
archive_basename: 'P-1.0.20'
Expand Down

0 comments on commit c18c839

Please sign in to comment.