Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2016-06-18

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:26 alh joined #metacpan
05:59 oiami joined #metacpan
10:02 [Tux] joined #metacpan
10:02 * [Tux] greets the crowd
10:02 [Tux] https://github.com/CPAN-API/cpan-api/wiki/MetaCPAN-V1-announcement-and-migration-plan
10:03 [Tux] I'm already using MetaCPAN::Client, but I cannot find the API for {bugs}{active}
10:03 [Tux] so I'm stall having this code:
10:03 [Tux] unless ($rt_tag =~ m/^[-0-9]?$/) {
10:03 [Tux] $rt_tag =
10:03 [Tux] (($r = $ua->get ("https://api.metacpan.org/distribution/$dist")) &&
10:03 [Tux] $r->is_success && decode_json ($r->content)->{bugs}{active}) || "*";
10:03 [Tux] }
10:03 [Tux] How can *that* be translated to ::Client?
10:04 [Tux] if that is gone, I am clean
10:17 haarg $client->distribution($dist)->bugs->{active} i would expect
10:20 neilb joined #metacpan
13:44 [Tux] All worked out as suggested. I am clean now :)
13:54 * [Tux] reworks those changes into Release::Checklist …
14:21 [Tux] $ perl -MMetaCPAN::Client -MDP -wE'DDumper(MetaCPAN::Client->new ()->author ("SAWYERX")->all ("releases"))'
14:21 [Tux] Failed to fetch 'http://api.metacpan.org/v0/author/SAWYERX': Not Found at (eval 48) line 17.
14:22 alh http://api.metacpan.org/v0/author/XSAWYERX
14:24 [Tux] perl -MMetaCPAN::Client -MDP -wE'DDumper(MetaCPAN::Client->new ()->author ("XSAWYERX")->all ("releases"))'
14:24 [Tux] Can't locate object method "all" via package "MetaCPAN::Client::Author" at -e line 1.
14:24 [Tux] this is what is in the docs
14:24 [Tux] (sorry 'bout the missing leading X
14:24 alh np
14:25 [Tux] all
14:25 [Tux] Retrieve all matches for authors/modules/distributions/favorites or releases.
14:25 [Tux] my $all_releases = $mcpan->all('releases')
14:26 [Tux] or did I misinterpret the docs?
14:26 alh That's saying MetaCPAN::Client->all()
14:26 alh I think you're misinterpreting
14:26 [Tux] Hmm, I read that as how I coded it
14:27 * [Tux] reads about MetaCPAN::Client::Author
14:31 [Tux] It's somewhat disappointing that a MetaCPAN::ResultSet that returns a scroller does not support ->item
14:32 [Tux] now you need to check whether is *has* a scroller before you can use it
14:32 [Tux] and if you prefer to go over it yourself, you cannot
14:33 [Tux] ATTRIBUTES
14:33 [Tux] scroller
14:33 [Tux] An Search::Elasticsearch::Scroll object.
14:33 [Tux] items
14:33 [Tux] An arrayref of items to manually scroll over, instead of a scroller object.
14:33 [Tux] could be enhanced to say that items is not always present
14:36 oalders [Tux] : there's likely still room for improvement with MetaCPAN::Client, so opening an issue would be welcomed :)
14:37 [Tux] currently I am just dumping my findings in exploring the most recent ::Client as that was what the wiki asked for :P
14:37 oalders Well, that's already very much appreciated.
14:38 oalders That'll help us figure out where the rough edges in MetaCPAN::Client are
14:38 [Tux] I was forcing myself to do some QA work today and stumbled in to that post and thought, better now than too late
14:39 [Tux] so http://tux.nl/perl.html is now pure MetaCPAN::Client, but http://localhost:8089/Files/dashboards.html is being worked on
17:09 alh_ joined #metacpan
17:32 ranguard I've been wondering if we shouldn't run a small, fixed (ish) data set API test server somewhere, then others (e.g. MC::Client) would have a static set of data to test against
17:45 ranguard $45 a month for a hosted (so you get sheild for security) 1G es node
21:14 castaway joined #metacpan
21:45 metacpan joined #metacpan
21:45 metacpan [cpan-api] haarg created topic/permalinks (+1 new commit): https://git.io/voaqI
21:45 metacpan cpan-api/topic/permalinks 90c992f Graham Knop: improve link choices for in-dist modules/pod
21:45 metacpan left #metacpan
21:57 metacpan joined #metacpan
21:57 metacpan [metacpan-web] haarg created topic/permalinks (+2 new commits): https://git.io/voaq5
21:57 metacpan metacpan-web/topic/permalinks aceed89 Graham Knop: use permalinks when on release specific pod pages
21:57 metacpan metacpan-web/topic/permalinks 9b24564 Graham Knop: use release specific pages based on url, not release status...
21:57 metacpan left #metacpan
23:00 alh_ joined #metacpan

| Channels | #metacpan index | Today | | Search | Google Search | Plain-Text | summary