Commits on Feb 17, 2015
  1. @alexmv

    Version 1.16 releng

    alexmv committed Feb 16, 2015
  2. @alexmv

    Further canonicalize after resolvin relative paths

    On Windows, Cwd::abs_path() returns a path that uses / as its directory
    separator.  This means that after loading from a fully-qualified
    \-separated path, that same path does not appear in the origins hash.
    
    Canonicalize the path using File::Spec->canonpath(), which does not
    inspect the filesystem, but does normalize path separators.
    alexmv committed Feb 16, 2015
Commits on Jun 24, 2014
  1. @alexmv

    Version 1.15 releng

    alexmv committed Jun 24, 2014
  2. @alexmv
Commits on May 20, 2014
  1. @alexmv

    Version 1.14 releng

    alexmv committed May 20, 2014
  2. @alexmv

    Fix for t/casing.t failure on mac os

    The following test fails on mac os, where /var is a symlink to /private/var
    
     t/casing.t ............. 1/?
     #   Failed test 'Found definition from second file'
     #   at t/casing.t line 53.
     #          got: '/private/var/folders/zz/zyxvpxvq6csfxvn_n00026dc000jlb/T/5fRT_POw_o/other'
     #     expected: '/var/folders/zz/zyxvpxvq6csfxvn_n00026dc000jlb/T/5fRT_POw_o/other'
     # Looks like you failed 1 test of 19.
     t/casing.t ............. Dubious, test returned 1 (wstat 256, 0x100)
     Failed 1/19 subtests
    
    The config filename is converted to an absolute path inside load_file, but the test
    checks the original path. This changes the test to use the same call to Cwd::abs_path.
    Stephen Thirlwall committed with alexmv May 20, 2014
Commits on Apr 23, 2014
  1. @alexmv

    Version 1.13 releng

    alexmv committed Apr 22, 2014
Commits on Sep 16, 2013
  1. @alexmv
  2. @alexmv

    Make dependency test happy

    alexmv committed Sep 16, 2013
  3. @alexmv
  4. @alexmv
  5. @alexmv

    Store the cleaned-up filename path, with ../s resolved

    Cwd::abs_path examines the filesystem to resolve /foo/../bar/ to /bar --
    while taking into account symlinks and other complicating factors.  Use
    it to store the simplest form of the filename loaded.
    
    As Cwd::abs_path returns undef if it cannot resolve the path, default
    back to the passed-in value, for error messages and the like.
    alexmv committed Sep 16, 2013
  6. @alexmv
Commits on Aug 5, 2013
  1. @alexmv

    Version 1.12 releng

    alexmv committed Aug 5, 2013
  2. @alexmv

    Merge branch 'changes-spec'

    alexmv committed Aug 5, 2013
Commits on Aug 4, 2013
  1. @neilb
  2. @alexmv

    Version 1.11 releng

    alexmv committed Aug 4, 2013
Commits on Aug 3, 2013
  1. @alexmv

    Merge branch 'moo'

    alexmv committed Aug 3, 2013
Commits on Feb 7, 2013
  1. @tokuhirom

    Switch to Moo.

    tokuhirom committed Feb 8, 2013
Commits on Nov 7, 2012
  1. @alexmv

    Version 1.10 releng

    alexmv committed Nov 7, 2012
  2. @alexmv
  3. @alexmv

    Change method name from original_case to original_key

    original_case is and overly and unhelpfully-specific name for the
    method.  Name and document it a bit more generally.
    alexmv committed Nov 7, 2012
  4. @alexmv

    Track and allow lookup of the case that keys were defined in

    Git canonicalizes the section and key name into lower case for all
    lookups; subsection names are case-sensitive.  However, there are times
    when is is useful to be able to determine the original case used to set
    the key.
    
    Store the original case, and provide a 'original_case' method to
    retrieve the kase used for a given key.  This also alters the 'name'
    argument to the 'callback' of 'parse_content' to be the original case,
    and not the canonical lower case.
    alexmv committed Nov 6, 2012
  5. @alexmv
  6. @alexmv

    Move $key assignment until after all parts of it have been checked

    This avoids warnings (such as were generated by t/t1300-repo-config!)
    when ->set was called with an invalid key.
    alexmv committed Nov 6, 2012
  7. @alexmv
Commits on Aug 10, 2012
  1. @alexmv

    Version 1.09 releng

    alexmv committed Aug 10, 2012
  2. @alexmv

    Ignore generated MYMETA files

    alexmv committed Aug 10, 2012
  3. @alexmv
  4. @alexmv

    Enforce that all keys must have sections

    Previously, git correctly parsed configuration variables before the
    first section marker, although it coult not set or unset such keys.  In
    git 1.7.4.4 and later, the code was modified to match the documentation,
    and this misfeature was removed.
    
    Alter the parsing code and methods to enforce this restriction in the
    module as well, for consistency with git.
    alexmv committed Aug 10, 2012
Commits on Aug 4, 2012
  1. @alexmv
  2. @theory @alexmv

    Add the "encoding" attribute and use it.

    To encode and decode config files. Necessary because, if no encoding is
    specified, and a UTF-8 string is saved to a config file, when it is read back
    in, it will not be properly read as UTF-8. The same would go for any coding
    other than Latin-1 (maybe).
    theory committed with alexmv Aug 1, 2012
Commits on May 8, 2012
  1. @alexmv
  2. @theory @alexmv

    Add `add_comment()`.

    Allows coments to be appended to the end of a configuration file.
    theory committed with alexmv Apr 27, 2012
  3. @alexmv