Permalink
Commits on Apr 18, 2018
  1. Merge pull request #10 from jjatria/time-validation

    barefootcoder committed Apr 18, 2018
    Make parameter validation in rand_time more consistent
  2. Merge pull request #12 from jjatria/charset-name

    barefootcoder committed Apr 18, 2018
    Accept both 'char' and 'misc' as names for the charset
Commits on Mar 9, 2018
  1. Accept both 'char' and 'misc' as names for the charset

    jjatria committed Mar 8, 2018
    The documentation for rand_chars() stated that there was a
    character set with the name 'char'. However, the code actually
    expected the name 'misc', which was not documented.
    
    This patch documents the existence of 'misc' as a key, and accepts
    'char' to implement the documented behaviour.
Commits on Jan 25, 2018
  1. Merge pull request #8 from jjatria/mocktime

    barefootcoder committed Jan 25, 2018
    Use Test::MockTime to stop the passage of time in tests
Commits on Jan 24, 2018
  1. Merge pull request #7 from jjatria/dzil

    barefootcoder committed Jan 24, 2018
    Port development to Dist::Zilla
  2. Merge pull request #6 from jjatria/dwim-rand-enum

    barefootcoder committed Jan 24, 2018
    Make rand_enum() accept a single array reference as shorthand (PRC)
Commits on Jan 19, 2018
  1. Port development to Dist::Zilla

    jjatria committed Jan 15, 2018
    This patch moves development to Dist::Zilla, in particular to solve
    issues with the removal of . from INC, but more generally to make
    several tasks related to package authoring easier.
    
    The plugin list used has been kept to a minimum, while still
    trying to reproduce some of the functionality that was there in the
    previous configuration, and make use of some of the more useful
    features of MetaCPAN, like the contributor list.
    
    To this end, a .mailmap file is also added, to remove non-ASCII
    characters from contributor's names. And yes, this is 2018.
Commits on Jan 15, 2018
Commits on May 25, 2015
Commits on Apr 20, 2015
Commits on Apr 19, 2015
  1. Merge pull request #5 from mbeijen/fix_dev_release

    barefootcoder committed Apr 19, 2015
    Fix dev release CPAN testers failures
Commits on Apr 14, 2015
  1. require Time::Piece 1.16 because it has add_year()

    mbeijen committed Apr 14, 2015
    In very old (5.10 era) versions of Time::Piece, add_year is not
    present. This lead to some test failures such as
    http://www.cpantesters.org/cpan/report/4c65193e-c735-11e4-b221-9e126cbd7f71
    
    If we require 1.16, old versions that don't meet this requirement
    will upgrade Time::Piece, and everything will be Just Fine.
  2. fixing rand_datetime on Win32 using Time::Piece

    mbeijen committed Apr 14, 2015
    Apparently %T in sprintf does not work. Luckily this is short for
    %H:%M:%S, which DOES work om MSWin32.
    
    Fixes CPAN testers reports, for example:
    http://www.cpantesters.org/cpan/report/f110ddda-6c05-1014-8085-f964cf38454c
    http://www.cpantesters.org/cpan/report/1393db51-6c05-1014-ae21-ec2e3bb86021
Commits on Mar 8, 2015
  1. Merge pull request #4 from mbeijen/test_fix

    barefootcoder committed Mar 8, 2015
    Fix unit tests after port to Time::Piece
Commits on Mar 1, 2015
  1. Fix unit tests after port to Time::Piece

    mbeijen committed Mar 1, 2015
    You mentioned test failures after pr#3.
    I did not have these failures but was able to reproduce them when
    I set my time zone to America/Los_Angeles for instance.
    
    My local time zone Europe/Amsterdam is too close to UTC to get
    test failures.
    
    I modified the code to use strptime and strftime, also for the
    'now' option. So now the Time::Piece objects created using 'now'
    and using explicit values are using the same methods. This made
    the test failures go away.
Commits on Feb 17, 2015
  1. Merge pull request #3 from mbeijen/distimp

    barefootcoder committed Feb 17, 2015
    Porting to Time::Piece instead of Date::Calc
Commits on Feb 13, 2015
  1. Small dist improvements

    mbeijen committed Feb 13, 2015
     - no execute bits on READMEs
     - update README
     - no indirect object creation
     - no two-arg open in POD example
     - strict & warnings in modules
  2. Improved test files to use File::Temp

    mbeijen committed Feb 13, 2015
    Previously, File::Spec and a temp dir was used, this was difficult
    but probably for historic reasons. Now I use File::Temp.
    Also I removed the execute bit from Makefile.PL and the tests - they
    should not have that.
  3. Ported tests to Time::Piece

    mbeijen committed Feb 13, 2015
    Also, I added more iterations to the tests; previously the tests
    created one single random date and then checked if it was between
    boundaries. Now the tests create LOTS of random dates and test the
    boundaries.
  4. Ported Data::Random to use Time::Piece

    mbeijen committed Feb 13, 2015
    Time::Piece is a core module since Perl 5.10.
    Date::Calc is diffucult to install and not so nice.
    
    And apart from that since 1st of January 2015 the module started to
    fail its unit tests and this has not been fixed yet.
    
    https://rt.cpan.org/Public/Bug/Display.html?id=101232
    
    I modified just the module in this commit. The test files also use
    Date::Calc but they're in a separate commit so you can easily check
    out just the module changes and see the 'old' tests pass with the
    new code.
Commits on Jan 1, 2014
Commits on Oct 31, 2013
Commits on Oct 25, 2013
  1. Merge pull request #2 from neilbowers/master

    barefootcoder committed Oct 25, 2013
    rand_chars() returns string in scalar context and tweaked Changes
Commits on Oct 24, 2013