Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2014-07-04

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

All times shown according to UTC.

Time Nick Message
00:01 punter or is it impossible to have a module and a distro (not containing said module) with the same name?
00:08 ether what do you mean by "one of the lines is.."?
00:09 ether I believe it's still possible to have a module that matches another dist name, but you do need to have permissions on both.
00:09 ether although, metacpan doesn't always care about permissions, so that doesn't really matter...
00:09 ether so - people can upload whatever garbage they want (and they do!)
00:52 Khisanth joined #metacpan
01:34 trs punter: I handled this for the rt.cpan.org queue autocomplete (which are distribution names) by assuming distribution until a colon is spotted and then switching to modules.  I think for any overlap, the distro will be the module they want and vice versa in almost all cases.
01:35 punter excellent, I did exactly the same (detecting colon, otherwise first check distros)
01:35 punter thanks
01:35 trs you can try out how well (or not well!) it works on the autocomplete.  the distros are powered by rt.cpan's database, the modules -> distro mapping by metacpan.
01:36 trs just start typing in the "New ticket in" textbox
01:38 punter kewl
01:52 FROGGS_ joined #metacpan
01:56 klapperl_ joined #metacpan
02:03 metacpan joined #metacpan
02:03 metacpan [metacpan-web] Talina06 created talina/stargazer (+1 new commit): http://git.io/h6_Pcg
02:03 metacpan metacpan-web/talina/stargazer 7b2d99b Talina06: Script for adding and listing the stargazers.
02:03 metacpan left #metacpan
02:03 dipsy [ Script for adding and listing the stargazers. · 7b2d99b · CPAN-API/metacpan-web · GitHub ]
02:06 metacpan joined #metacpan
02:06 metacpan [metacpan-web] Talina06 pushed 1 new commit to talina/stargazer: http://git.io/1eN93w
02:06 metacpan metacpan-web/talina/stargazer 56806bc Talina06: Stargazers: Model and display scripts
02:06 metacpan left #metacpan
02:06 dipsy [ Stargazers: Model and display scripts · 56806bc · CPAN-API/metacpan-web · GitHub ]
02:09 metacpan joined #metacpan
02:09 metacpan [metacpan-web] Talina06 pushed 1 new commit to talina/stargazer: http://git.io/vabMDw
02:09 metacpan metacpan-web/talina/stargazer 3b3acfb Talina06: Logic for accessing stragazers data.
02:09 metacpan left #metacpan
02:09 dipsy [ Logic for accessing stragazers data. · 3b3acfb · CPAN-API/metacpan-web · GitHub ]
02:10 metacpan joined #metacpan
02:10 metacpan [metacpan-web] Talina06 pushed 1 new commit to talina/stargazer: http://git.io/R762fg
02:10 metacpan metacpan-web/talina/stargazer ecd5428 Talina06: Displaying the stargazers
02:10 metacpan left #metacpan
02:10 dipsy [ Displaying the stargazers · ecd5428 · CPAN-API/metacpan-web · GitHub ]
02:13 talina_ joined #metacpan
02:13 metacpan joined #metacpan
02:13 metacpan [metacpan-web] Talina06 pushed 1 new commit to talina/stargazer: http://git.io/M2aGPg
02:13 metacpan metacpan-web/talina/stargazer 7acf940 Talina06: Css, Js for stargazers
02:13 metacpan left #metacpan
02:13 dipsy [ Css, Js for stargazers · 7acf940 · CPAN-API/metacpan-web · GitHub ]
02:22 oiami joined #metacpan
03:04 alh joined #metacpan
03:21 metacpan joined #metacpan
03:21 metacpan [metacpan-web] oalders created oalders/perl-critic (+2 new commits): http://git.io/66PAJg
03:21 metacpan metacpan-web/oalders/perl-critic 2540b5f Olaf Alders: Introduces Perl::Critic (in a very small way).
03:21 metacpan metacpan-web/oalders/perl-critic b2f8500 Olaf Alders: MetaCPAN::Sitemap now conforms to our Perl::Critic policies.
03:21 metacpan left #metacpan
03:21 dipsy [ Comparing 2540b5f75bc4^...b2f8500724da · CPAN-API/metacpan-web · GitHub ]
03:41 metacpan joined #metacpan
03:41 metacpan [cpan-api] oalders created oalders/perl-critic (+2 new commits): http://git.io/hxBPvA
03:41 metacpan cpan-api/oalders/perl-critic 3a90af4 Olaf Alders: Add support for Perl::Critic testing.
03:41 metacpan cpan-api/oalders/perl-critic dd9e505 Olaf Alders: Minor code cleanup.
03:41 metacpan left #metacpan
03:41 dipsy [ Comparing 3a90af4d68e7^...dd9e50561e78 · CPAN-API/cpan-api · GitHub ]
03:45 metacpan joined #metacpan
03:45 metacpan [metacpan-web] oalders pushed 2 new commits to oalders/perl-critic: http://git.io/7RBJsg
03:45 metacpan metacpan-web/oalders/perl-critic 928b901 Olaf Alders: Loosen up Perl::Critic policies.
03:45 metacpan metacpan-web/oalders/perl-critic b32a8f6 Olaf Alders: Fixes typo in Sitemap.pm
03:45 metacpan left #metacpan
03:45 dipsy [ Comparing b2f8500724da...b32a8f6bdb61 · CPAN-API/metacpan-web · GitHub ]
03:58 metacpan joined #metacpan
03:58 metacpan [metacpan-web] oalders pushed 1 new commit to oalders/perl-critic: http://git.io/HxZT5g
03:58 metacpan metacpan-web/oalders/perl-critic d0cab39 Olaf Alders: Expand PC policies.
03:58 metacpan left #metacpan
03:58 dipsy [ Expand PC policies. · d0cab39 · CPAN-API/metacpan-web · GitHub ]
04:14 punter Can anyone give me a pointer on how to process META.yml and META.json files?
04:15 punter any modules that can help me?
04:15 punter oalders?
04:15 dipsy oalders is just my second identity ;) or the boss
04:19 punter Is this recommended? https://metacpan.org/pod/Parse::CPAN::Meta
04:19 dipsy [ Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files - metacpan.org ]
04:32 punter How come this URL doesn't return an error? http://api.metacpan.org/v0/module/-
05:35 oiami joined #metacpan
06:47 FROGGS_ joined #metacpan
06:49 neilb joined #metacpan
07:02 dpetrov_ joined #metacpan
07:17 jnbek joined #metacpan
07:37 punter joined #metacpan
07:45 punter ether, I just saw your replies
07:45 punter :-)
07:48 ranguard punter: #toolchain may also be useful for those sorts of questions
07:48 punter Could this module be ordered to execute arbitrary Perl code, if users are allowed to upload arbitrary YAML?  https://metacpan.org/pod/Parse::CPAN::Meta
07:48 dipsy [ Parse::CPAN::Meta - Parse META.yml and META.json CPAN metadata files - metacpan.org ]
07:49 punter o
07:49 punter just saw your reply too
07:49 punter thank
07:49 punter s
07:56 neilb joined #metacpan
08:42 neilb joined #metacpan
09:20 FROGGS joined #metacpan
09:26 rashi joined #metacpan
11:38 metacpan joined #metacpan
11:38 metacpan [metacpan-web] oalders pushed 2 new commits to master: http://git.io/qllT_A
11:38 metacpan metacpan-web/master c8d25fa Olaf Alders: Introduces Perl::Critic (in a very small way).
11:38 metacpan metacpan-web/master f17072e Olaf Alders: MetaCPAN::Sitemap now conforms to our Perl::Critic policies.
11:38 metacpan left #metacpan
11:38 dipsy [ Comparing 0e515325f7d2...f17072ebd2d3 · CPAN-API/metacpan-web · GitHub ]
11:41 metacpan joined #metacpan
11:41 metacpan [cpan-api] oalders pushed 2 new commits to master: http://git.io/UYNF1g
11:41 metacpan cpan-api/master 1d261cd Olaf Alders: Add support for Perl::Critic testing.
11:41 metacpan cpan-api/master 2d6e1bd Olaf Alders: Minor code cleanup.
11:41 metacpan left #metacpan
11:41 dipsy [ Comparing ae2249e8422b...2d6e1bd98b83 · CPAN-API/cpan-api · GitHub ]
11:44 oalders weird. https://metacpan.org/pod/-
11:44 dipsy [ - - metacpan.org ]
11:51 punter joined #metacpan
12:17 neilb oalders: the dist has a file "assert" in the top directory which contains the line: "=head1 NAME - assert"
12:17 neilb I'll file the bug on the dist, and let you deal with MetaCPAN, deal? :-)
12:18 oalders neilb++ :)
12:21 oalders https://github.com/CPAN-API/cpan-api/issues/319
12:21 dipsy [ Module name is indexed as "-" · Issue #319 · CPAN-API/cpan-api · GitHub ]
12:29 neilb https://rt.cpan.org/Ticket/Display.html?id=96933
12:29 dipsy [ Bug #96933 for Lingua-PT-Conjugate: File 'assert' has unexpected pod format, which is confusing MetaCPAN ]
12:44 CletusSlackjawedYok joined #metacpan
13:08 BinGOs I assert that hyphen.
13:20 osfameron asserting makes an ass of ert and ing
13:44 talina_ joined #metacpan
13:52 metacpan joined #metacpan
13:52 metacpan [metacpan-web] Talina06 force-pushed talina/stargazer from 7acf940 to 7d60485: http://git.io/PHVrOQ
13:52 metacpan metacpan-web/talina/stargazer f30f1ad Talina06: Script for adding and listing the stargazers.
13:52 metacpan metacpan-web/talina/stargazer e32400e Talina06: Stargazers: Model and display scripts
13:52 metacpan metacpan-web/talina/stargazer 79bb80b Talina06: Logic for accessing stragazers data.
13:52 metacpan left #metacpan
13:52 dipsy [ Commits · CPAN-API/metacpan-web · GitHub ]
14:14 oalders random travis builds keep timing out
14:48 metacpan joined #metacpan
14:48 metacpan [metacpan-web] Talina06 pushed 1 new commit to talina/stargazer: http://git.io/vCNy4g
14:48 metacpan metacpan-web/talina/stargazer b48a7b8 Talina06: Adding new endpoint data to perl-critic.t
14:48 metacpan left #metacpan
14:48 dipsy [ Adding new endpoint data to perl-critic.t · b48a7b8 · CPAN-API/metacpan-web · GitHub ]
15:12 FROGGS joined #metacpan
15:16 FROGGS joined #metacpan
15:33 lifeofgu_ joined #metacpan
15:37 metacpan joined #metacpan
15:37 metacpan [metacpan-web] Talina06 pushed 1 new commit to talina/stargazer: http://git.io/L03mIQ
15:37 metacpan metacpan-web/talina/stargazer 8dce8b3 Talina06: Tidyall
15:37 metacpan left #metacpan
15:37 dipsy [ Tidyall · 8dce8b3 · CPAN-API/metacpan-web · GitHub ]
16:09 punter joined #metacpan
16:13 punter Anyone here knows how to extract all module dependencies of a module, from its META.json file?
16:14 punter extract a list of module names, is what I mean
17:15 neilb joined #metacpan
17:30 castaway joined #metacpan
17:31 oalders punter: you don't want to get the deps from the /release endpoint?
17:32 punter oalders, I want to allow people to upload META.* files from their own projects, which may or may not be CPAN modules
17:33 punter isn't that right? Don't people create META.* files for their non-CPAN projects as well?
17:33 punter I was told over in #toolchain that I should look into MYMETA.* for some reason
17:34 oalders i guess Parse::CPAN::Meta would be the right starting point
17:36 punter That does very little... it just turns the YML or the JSON straight into a native deep structure. I could do that with JSON::PP too. But still, Parse::CPAN::Meta doesn't aggregate the modules in one array or hashref, it leaves all the dependencies split in 3-4 or I don't know how many (max) sub-hashrefs
17:37 punter so I have to do some work to collect them. And I'm not 100% sure that my work will cover all the cases.
17:37 punter So I was hoping that someone could have done this work
17:37 punter already
17:37 BinGOs I would suggest reading the meta specifications, especially about dynamic_config and what the default meaning of that was for version <= 1.4 and what is in 2.0
17:38 punter I guess so
17:38 BinGOs and maybe CPAN::Meta would be a better choice than a low-level parser such as Parse::CPAN::Meta
17:40 BinGOs higher-level toolchain such as cpan, cpanp and cpanm don't trust META.* files for anything but configure_requires
17:40 punter ah
17:40 BinGOs they run Makefile.PL/Build.PL which produce MYMETA.* which they can trust.
17:40 oalders punter: https://github.com/CPAN-API/cpan-api/blob/master/lib/MetaCPAN/Script/Release.pm#L510
17:40 dipsy [ cpan-api/lib/MetaCPAN/Script/Release.pm at master · CPAN-API/cpan-api · GitHub ]
17:41 * BinGOs & # off to spend some hours away from computer screens.
18:14 rashi joined #metacpan
18:36 punter If META.yml files aren't trustworthy, maybe I should just skip upload of META files, and just make do with uploads of space-separated list of modules/distros ?
18:37 punter or maybe not
18:37 oalders punter: why not just start with something simple (like uploading a list)
18:37 oalders you can iterate from there if you need to
18:37 punter oalders, I did that yesterday night
18:37 oalders ah, nice
18:38 punter And it's pretty nice
18:38 oalders punter: is that deployed?
18:38 punter yes
18:40 oalders i see it now. looks good
18:40 oalders would be nice if the feed could be sorted by time rather than by dist and then by time
18:41 oalders nice to see you got it going so quickly :)
18:42 punter what do you mean "sorted by time"? Are you talking about the RSS feed (which is already sorted by autoincrement (something like time))?
18:42 punter and the HTML view of the feed, is also sorted by autoincrement (i.e. by something like time)
18:43 punter Only if an older release is delayed to appear in Metacpan's own RSS feed, only then will it appear in the wrong order in my feed as well
18:43 punter I don't know if I made myself clear
18:44 punter otherwise feeds are sorted by time
18:44 oalders yeah, i got it now.  my choice of modules in the feed didn't make that clear
18:44 oalders ignore me!
18:44 punter :)
18:44 oalders this is really nice
18:44 punter Thanks.
18:46 ether could someone kick off a reindex of https://metacpan.org/release/ETHER/URI-1.61 please ?
18:46 dipsy [ URI-1.61 - Uniform Resource Identifiers (absolute and relative) - metacpan.org ]
18:46 oalders ether: sure
18:46 ether danke!
18:47 oalders release URI-1.61 contains unauthorized modules: URI::IRI
18:48 oalders so just the one bit of red ink left
18:48 ether whee
19:36 lifeofguenter joined #metacpan
19:36 lifeofguenter joined #metacpan
20:37 castaway joined #metacpan
22:17 ether one more re-index on URI please
22:17 ether all perms fixed now
22:17 ether danke!
23:00 neilb joined #metacpan
23:05 oalders ether: done
23:07 ether \o/
23:07 ether thanks again
23:23 oalders :)

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