Perl 5 Porters Mailing List Summary: December 26th, 2016 - January 1st, 2017

Hey everyone and happy new year!

Following is the p5p (Perl 5 Porters) mailing list summary for the past week.

Enjoy!

CPAN Pull Request Challenge 2017

I just received a mail from Neil Bowers asking if I would consider having my CPAN distributions be a part of the 2017 CPAN Pull Request Challenge.

My undelayed mental response: Well of course...

I participated in the 2016 Hacktoberfest, I did not contribute much, but I participated and I would have loved to contribute more. These sort of "events" are good, IMHO they bring out the best in open source and they demonstrate the essence of the open source community. In addition they help tie a community together, so when you are like me; a maintainer of CPAN distributions with very little time, every patch and every PR is most welcome.

A CPAN Pull Request Challenge gives you exactly that.

The CPAN Pull Request Challenge 2017 is soon to kick off, which mean YOU have a chance to benefit from this incredible initiative.

If you have received a mail from Neil respond and be take into consideration for possible PR coming your way or you can tag your issues on Github with the label:

Yak Shaving: XML::Writer edition

I am messing around trying to fix the QIF files that Lloyds TSB CC statements are presented as, and needed to write XML.

XML::Writer seems like a reasonable solution, but I’m not OK with writing a static header by using 300 calls to $writer->startTag(‘blah’).

This seems a good job for the computer; specifically for a SAX parser which will happily parse non-balanced XML. Anyway, the result is:

my $writer = XML::Writer::Lazy->new( OUTPUT => 'self');
my $title  = "My Title!";

$writer->lazily(<<"XML");
    <html>
        <head>
            <title>$title</title>
    </head>
    <body>
        <p>Pipe in literal XML</p>
XML

$writer->startTag( "p", "class" => "simple" );
$writer->characters("Alongside the usual interface");
$writer->characters("123456789");
$writer->lazily("</p></body></html>");

https://metacpan.org/pod/XML::Writer::Lazy

Which is considerably lazier, and allows you to intersperse actual XML::Writer commands with chunks of XML string and have it do largely the right thing.

C::Blocks Advent Day 13

This is the C::Blocks Advent Calendar, in which I release a new treat each day about the C::Blocks library. At the time of writing, we are actually in the season of Christmas, not Advent. I hope you'll forgive these late posts. :-)

Yesterday I used C::Blocks to play around with Perl's C API and mess with keywords. Today I will focus on a couple of neat C tricks that can help clean up the C-end of your library API.

CPAN Testers Has a New API

As part of the MetaCPAN hackathon, meta::hack, I was invited to work on the CPAN Testers integration. CPAN Testers is a community of CPAN users who send in test reports for CPAN modules as they are uploaded. MetaCPAN adds a summary of those test reports to every CPAN distribution to help you determine which module you'd most like to use. For quite a few months, this integration was broken, and the nature of the current integration (a SQLite database) means it is not as generally useful as it could be.

So, I decided that the best way to improve the CPAN Testers / MetaCPAN integration was to build a new CPAN Testers API. This API uses the CPAN Testers schema to expose CPAN Testers data using a JSON API. This API is built using the Mojolicious web framework, and an OpenAPI specification (using Mojolicious::Plugin::OpenAPI.

Perl 5 Porters Mailing List Summary: December 19th-25th

Hey everyone,

Following is the p5p (Perl 5 Porters) mailing list summary for the past week.

Enjoy!

PRC 2016 - Fouth Semester

This was not just a bad year for musicians. Unfortunately not. And the last three months were busy, with lot of (mostly bureaucratic) work. I was expecting the Christmas day to have some extra-time and do, at least one, a decent PR, but I got sick and the will to program just passed by.

So, this semester we had:
  • October, Perl-Critic-StricterSubs: my patch was to define the minimum required Perl version, as requested by CPANTS.
  • November, Net-SFTP-Foreign: following CPANTS suggestions, set the same module version for all distribution modules, and declare minimum required Perl version.
  • December, WWW-Pastebin-PastebinCom-API: generate META.json when building the dist.

I know, not proud of any of these PRs. I said to Neil I want to continue, but I really hope to start being more useful to module authors, or I will just quit...

Anoncing SilverGoldBull::API

Hi, folks

I would like to announce a Perl client SilverGoldBull::API for http://silvergoldbull.com web service.

Silver Gold Bull is your trusted silver and gold dealer. It provide you with competitive, up-to-minute pricing and make sure your precious metals are delivered to your door discreetly and fully insured.

SilverGoldBull::API provides with the following functionality:
- get all product/order list;
- get full information about product/order;
- or even create and sell your own product;
- and etc.

Thank you for attention.

P.S. Don't forget to buy presents for your friends and relatives.
Here is one variant for this https://silvergoldbull.com/deal-zone?GTM_PROMO=banner-home
Merry Christmas and Happy New Year ;)

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.