Perl 6 - the future is here, just unevenly distributed

IRC log for #metacpan, 2014-08-13

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

All times shown according to UTC.

Time Nick Message
00:31 theory So, https://metacpan.org/release/IO lists a bunch of modules.
00:31 dipsy [ IO-1.25 - Perl core IO modules - metacpan.org ]
00:31 theory But http://explorer.metacpan.org/?url=/release/GBARR/IO-1.25 does not.
00:31 dipsy [ MetaCPAN Explorer ]
00:31 theory So where does the list of modules come from?
00:33 metacpan joined #metacpan
00:33 metacpan [metacpan-web] rwstauner pushed 1 new commit to oalders/cookie-secret: http://git.io/iH9PPQ
00:33 metacpan metacpan-web/oalders/cookie-secret caccb4b Randy Stauner: Fix args to Cookie and wrap with base64
00:33 metacpan left #metacpan
00:34 dipsy [ Fix args to Cookie and wrap with base64 · caccb4b · CPAN-API/metacpan-web · GitHub ]
01:24 FROGGS_ joined #metacpan
01:28 mattp_ joined #metacpan
01:48 klapperl_ joined #metacpan
02:07 kentnl trs: not sure if your questions earlier indicated you were interested or not, so here you are anyway https://metacpan.org/release/KENTNL/App-cpanoutdated-fresh-0.001000
02:07 dipsy [ App-cpanoutdated-fresh-0.001000 - Indicate out-of-date modules by walking the metacpan releases backwards - metacpan.org ]
02:07 * kentnl thinks it still needs some polish but its useful asis
02:55 talina_ joined #metacpan
02:57 metacpan joined #metacpan
02:57 metacpan [metacpan-web] oalders pushed 1 new commit to oalders/cookie-secret: http://git.io/X80o5Q
02:57 metacpan metacpan-web/oalders/cookie-secret 618ace7 Olaf Alders: Tidies app.psgi
02:57 metacpan left #metacpan
02:57 dipsy [ Tidies app.psgi · 618ace7 · CPAN-API/metacpan-web · GitHub ]
03:06 metacpan joined #metacpan
03:06 metacpan [metacpan-web] oalders force-pushed oalders/tidy-js-and-css from 386c182 to 0c4ed49: http://git.io/hVnPBQ
03:06 metacpan metacpan-web/oalders/tidy-js-and-css 4e65760 Olaf Alders: Adds JS and CSS beautifier defaults....
03:06 metacpan metacpan-web/oalders/tidy-js-and-css 0c4ed49 Olaf Alders: Install js-beautify and cssunminifier for Tidy tests.
03:06 metacpan left #metacpan
03:06 dipsy [ Commits · CPAN-API/metacpan-web · GitHub ]
03:12 metacpan joined #metacpan
03:12 metacpan [metacpan-developer] oalders pushed 4 new commits to master: http://git.io/5La4Tg
03:12 metacpan metacpan-developer/master b9e0425 Talina06:  Edit the VM setup documentation....
03:12 metacpan metacpan-developer/master 303cec5 Talina06: Add a FAQs file.
03:12 metacpan metacpan-developer/master a7a57f1 Talina Shrotriya: Update FAQs.md
03:12 metacpan left #metacpan
03:12 dipsy [ Comparing d898eacef3d7...7eec5b135345 · CPAN-API/metacpan-developer · GitHub ]
03:23 rashi joined #metacpan
03:25 oiami joined #metacpan
03:27 metacpan joined #metacpan
03:27 metacpan [metacpan-developer] oalders pushed 1 new commit to master: http://git.io/vEB5rg
03:27 metacpan metacpan-developer/master f53622e Olaf Alders: Small documentation fixes.
03:27 metacpan left #metacpan
03:27 dipsy [ Small documentation fixes. · f53622e · CPAN-API/metacpan-developer · GitHub ]
03:35 theory joined #metacpan
03:35 * theory returns'
03:41 metacpan joined #metacpan
03:41 metacpan [metacpan-developer] oalders pushed 1 new commit to master: http://git.io/-yB6Tw
03:41 metacpan metacpan-developer/master e955c5f Olaf Alders: s/carton/carton exec/
03:41 metacpan left #metacpan
03:41 dipsy [ s/carton/carton exec/ · e955c5f · CPAN-API/metacpan-developer · GitHub ]
03:55 trs theory: http://explorer.metacpan.org/#/6ee4d1fb01b79a30e3ad
03:55 dipsy [ MetaCPAN Explorer ]
04:13 oiami joined #metacpan
04:30 oiami1 joined #metacpan
04:59 theory joined #metacpan
05:00 theory trs: Is that a GET request?
05:01 theory Oh, I see, it’s not.
05:03 theory trs: Is it necessary to include all three filter expressions?
05:03 theory I would think that `{"term":{"release":"IO-1.25”}}` would be enough.
05:04 khisanth_ joined #metacpan
05:17 theory Looks like I can omit the author part. Thanks trs.
05:37 metacpan joined #metacpan
05:37 metacpan [metacpan-web] rwstauner pushed 1 new commit to oalders/cookie-secret: http://git.io/QxZDgQ
05:37 metacpan metacpan-web/oalders/cookie-secret 9e0e21a Randy Stauner: Ensure cookie variable is accessible
05:37 metacpan left #metacpan
05:37 dipsy [ Ensure cookie variable is accessible · 9e0e21a · CPAN-API/metacpan-web · GitHub ]
06:00 trs theory: it's only enough if another author hasn't uploaded an IO-1.25 tarball
06:01 trs man, I hate when people vanish.
06:14 rafl joined #metacpan
06:32 dp_ joined #metacpan
07:15 neilb joined #metacpan
07:50 khisanth__ joined #metacpan
07:59 neilb joined #metacpan
08:19 neilb joined #metacpan
08:27 neilb joined #metacpan
08:35 mala oalders: rwstauner: please merge #1275 quickly, please. I've explained it as serious security issue.
08:56 metacpan joined #metacpan
08:56 metacpan [cpan-api] Talina06 force-pushed talina/stargazer from f9e1b20 to 28aabbf: http://git.io/kKZYAw
08:56 metacpan cpan-api/talina/stargazer 0aa0ab7 Talina06: Adding the API Document.
08:56 metacpan cpan-api/talina/stargazer 4233b33 Talina06: Stargazers controller file.
08:56 metacpan cpan-api/talina/stargazer d1d0fa6 Talina06: Controller script for User.
08:56 metacpan left #metacpan
08:56 dipsy [ Commits · CPAN-API/cpan-api · GitHub ]
09:21 metacpan joined #metacpan
09:21 metacpan [metacpan-web] Talina06 pushed 1 new commit to talina/stargazer: http://git.io/w9TR1A
09:21 metacpan metacpan-web/talina/stargazer b6da287 Talina06: remove whitespaces.
09:21 metacpan left #metacpan
09:21 dipsy [ remove whitespaces. · b6da287 · CPAN-API/metacpan-web · GitHub ]
13:32 FROGGS__ joined #metacpan
14:08 metacpan joined #metacpan
14:08 metacpan [metacpan-web] rwstauner pushed 1 new commit to oalders/cookie-secret: http://git.io/o50OKw
14:08 metacpan metacpan-web/oalders/cookie-secret 306e1f0 Randy Stauner: Test cookie handling (and tampering)
14:08 metacpan left #metacpan
14:08 dipsy [ Test cookie handling (and tampering) · 306e1f0 · CPAN-API/metacpan-web · GitHub ]
14:18 metacpan joined #metacpan
14:18 metacpan [metacpan-web] rwstauner pushed 1 new commit to oalders/cookie-secret: http://git.io/E8XV6g
14:18 metacpan metacpan-web/oalders/cookie-secret 2ff3bb2 Randy Stauner: Remove unused import
14:18 metacpan left #metacpan
14:18 dipsy [ Remove unused import · 2ff3bb2 · CPAN-API/metacpan-web · GitHub ]
14:34 metacpan joined #metacpan
14:34 metacpan [metacpan-web] rwstauner merged oalders/cookie-secret into master: http://git.io/qZv-wQ
14:34 metacpan left #metacpan
14:34 dipsy [ Comparing bfc0a9c5369d...2ff3bb2b3d12 · CPAN-API/metacpan-web · GitHub ]
15:34 skaufman joined #metacpan
15:35 skaufman heya, what's the 'UNAUTHORIZED' mean in this context? https://metacpan.org/release/SKAUFMAN/DBIx-Class-Fixtures-1.001022_01
15:35 dipsy [ DBIx-Class-Fixtures-1.001022_01 - Dump data and repopulate a database using rules - metacpan.org ]
15:36 skaufman and whats the modules v provides mean?
15:42 rwstauner unauthorized should mean that you don't have perms for that module (but someone else does)
15:42 rwstauner i think the separate of m vs p is that modules have docs and provides are just packages (no corresponding pod)
15:43 haarg skaufman: jnap has first-come on ::External::File
15:44 haarg the pause permissions system is per module, not per dist.  so since jnap was the first person to upload a version of the dist that included that module, he has first-come on it even though you have first-come on the main module.
15:44 skaufman haarg: thanks, btw where can you query that?
15:45 haarg https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=DBIx%3A%3AClass%3A%3AFixtures&pause99_peek_perms_sub=Submit
15:45 skaufman great, ta
15:45 skaufman oh yeah look at that
15:45 skaufman view permissions
15:45 haarg i always grab it out of my history and change the module instead of clicking on view permissions
15:46 oalders we should just add that link to the sidebar
15:46 haarg the view permissions link shows all of your own permissions, which for me at least takes forever to render
15:53 mst_ joined #metacpan
15:54 theory joined #metacpan
16:10 haarg skaufman: http://paste.scsys.co.uk/415725
16:10 dipsy [ magnet_web paste from "haarg" at 217.168.150.38... ]
16:10 skaufman haarg: nice, thanks
16:11 haarg that will set the x_authority meta variable, which means if someone else uploads a new module in the dist, you will get first-come permissions and they will get comaint
16:11 skaufman ok
16:11 haarg not a perfect mechanism, but still an improvement
16:12 haarg maybe someday someone will write a PAUSE patch to add a x_authority : "module:Some::Module" or something to copy all of the permissions from an existing module
16:57 neilb joined #metacpan
17:33 theory Anyone know how to pass the JSON for a POST to HTTP::Tiny?
17:33 theory https://github.com/CPAN-API/cpan-api/wiki/API-docs uses `curl -d` with no key for the form field.
17:33 dipsy [ API docs · CPAN-API/cpan-api Wiki · GitHub ]
17:35 alh theory: request("POST", $url, { content => "json" })
17:36 theory Huh. not working for me. Or at least, not getting the results I expect.
17:36 alh Oh?
17:37 theory Yeah. Sample: http://explorer.metacpan.org/#/6ee4d1fb01b79a30e3ad
17:37 dipsy [ MetaCPAN Explorer ]
17:38 theory My translation to HTTP::Tiny: http://metacpan.privatepaste.com/575199f0c6
17:38 dipsy [ metacpan.privatepaste.com :: Paste ID 575199f0c6 ]
17:38 theory Oh, I got it: s/release/file/
17:40 alh :)
17:44 neilb_ joined #metacpan
17:47 trs theory: omitting the author is only enough if another author hasn't uploaded a release of the same name
17:48 trs theory: which is not guaranteed.
17:48 trs you may also want to restrict results to those modules which are indexed: true and authorized: true
17:54 neilb joined #metacpan
17:57 chansen joined #metacpan
18:07 rashi joined #metacpan
18:22 neilb_ joined #metacpan
18:23 metacpan joined #metacpan
18:23 metacpan [metacpan-web] haarg created haarg/retina-logo (+1 new commit): http://git.io/xXkPow
18:23 metacpan metacpan-web/haarg/retina-logo 4d44924 Graham Knop: Use double resolution logo for retina screens...
18:23 metacpan left #metacpan
18:23 dipsy [ Use double resolution logo for retina screens · 4d44924 · CPAN-API/metacpan-web · GitHub ]
18:25 neilb_ joined #metacpan
18:27 neilb__ joined #metacpan
19:23 neilb_ joined #metacpan
19:25 neilb joined #metacpan
19:29 neilb_ joined #metacpan
19:57 kentnl oalders: I feel like I missed something, does passing explicit "handle => " to the ES constructor not work?
19:57 * kentnl has been using that and it works just fine
19:57 oalders kentnl: i didn't know you could do that
19:57 oalders i'm glad i brought it up
19:57 kentnl Its at the top comment on that RT :p
19:58 oalders i have no valid response for that ;)
19:58 oalders let me re-read
19:59 kentnl I may not have made it entirely obvious, but its referred to! :D
20:00 oalders yeah, that's a better way to go about it. we'd need to set the same default headers as the builder does in ES
20:00 oalders and https://metacpan.org/source/DRTECH/Search-Elasticsearch-1.14/lib/Search/Elasticsearch/Cxn/HTTPTiny.pm#L57
20:00 dipsy [ lib/Search/Elasticsearch/Cxn/HTTPTiny.pm - metacpan.org ]
20:00 oalders s/and//
20:01 oalders plus deal with the IO::Socket::SSL stuff, i guess
20:01 oalders although in this case i think there are no https queries
20:13 oalders kentnl: that works really well
20:17 oalders but as you pointed out, some queries still don't use the supplied UA
20:19 oalders kentnl: MetaCPAN::Client doesn't allow you to specify which fields to fetch, does it?
21:13 heytitle joined #metacpan
21:37 kentnl oalders: the reason that is because metacpan client doesn't pass the values everywhere, but thats fixable
21:37 oalders kentnl: yeah, would be nice to get that sorted
21:39 kentnl MetaCPAN::Clients other shortcommings is it doesn't feel suited to any lower level queries. I've done 2 things now that *could* have used MetaCPAN::Client but instead handled ES directly because it was more straight forward
21:42 kentnl oalders: though indeed, "if user specified one" is indeed the logic I've got in 2 places, it uses ES's default otherwise =)
21:43 oalders kentnl: care to make a pull request?
21:47 kentnl I'll have a look soonish
21:48 oalders kentnl++
22:46 kentnl well, in the process of trying to work out how to properly test this, I discovered why it doesn't cache so well
22:46 kentnl query string has random order :p
22:46 kentnl search_type=scan&scroll=5m&size=1000  # there's 9 possible permutations of that
22:46 kentnl each getting cached independently.
22:49 oalders wow. where is it randomized?
22:51 oalders i suppose WWW::Mechanize::Cached could have an option to sort the query string before creating the cache key
23:11 kentnl oalders: I think its happening in ES directly, probably because its converting from { x => y } to "x=y&"
23:13 * kentnl gave up trying to make a "no internet here sir" fake UA and dropped in HTTP::Tiny::Mech for my "dont call HTTP::Tiny or BANG" test
23:18 kentnl oalders: also, just my luck: Author.pm is the *only* place in the code MetaCPAN::Client->new() is called internally xD
23:20 oalders :)
23:32 metacpan joined #metacpan
23:32 metacpan [metacpan-client] kentfredric opened pull request #17: Retain 'ua' when user specified wherever possible. (master...master) http://git.io/ZATvLQ
23:32 metacpan left #metacpan
23:32 dipsy [ Retain 'ua' when user specified wherever possible. by kentfredric · Pull Request #17 · CPAN-API/metacpan-client · GitHub ]
23:34 kentnl oalders: Codereview time.
23:36 kentnl oalders: also, pay no attention to githubs commit ordering, its completely bollocks.
23:37 kentnl I rebased the test to come after the fix, but github still shows it comming before, because github, in its wisdom, sorts by date
23:37 kentnl When I looked into the documetnation to ask "How do we stop this", they seriously recommended against rebasing.
23:37 kentnl == fail
23:47 kentnl oalders: oh wow, its being done by URI.pm itself :/
23:48 kentnl $uri->query_form( $params->{qs} );
23:49 kentnl good news, ether has maint on that, so we bribe her enough sneaking may occur >:)
23:52 ether kentnl: that's their way of saying "uh, we have no idea what to do about that" :(
23:52 ether yes, patches welcome.
23:52 ether I haven't heard a peep from Gisle re my recent URI releases, so I'm presuming all is fine
23:53 ether so I shall continue until beatings occur :)
23:59 kentnl I think I can hack around the issue though
23:59 kentnl $uri->query_form( map { $_ => $params->{qs} } keys %{ $params->{qs} } );
23:59 kentnl ^ aught to do the trick

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