Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 24, 2015
  1. Randy Stauner

    Generate pod in default content for tests

    rwstauner authored
    So that modules will, by default, get documentation, indexed, etc.
  2. Olaf Alders

    Merge pull request #381 from andreeap/indexing

    oalders authored
    refactoring the Release script
Commits on Feb 20, 2015
  1. Andreea Pirvulescu
Commits on Feb 19, 2015
  1. Michael G. Schwern

    Tidy up the modules used by Model::Release and Script::Release.

    schwern authored
    After all that code being moved around between the two modules.
  2. Michael G. Schwern

    Extract getting modules from files.

    schwern authored
    Bring it all together into one method for getting the modules.
  3. Michael G. Schwern
  4. Michael G. Schwern

    Change MC::Model::Release to return an arrayref of files.

    schwern authored
    More efficient when it's called multiple times, and it's going to be
    as import_archive is split up further.
  5. Michael G. Schwern

    Move building the release document into the release model.

    schwern authored
    I'm not happy that building it also indexes it, but I don't know how to
    instanciate a document without also adding it to the index.
  6. Michael G. Schwern

    Give MC::Model::Release the whole CPAN::DistnameInfo object.

    schwern authored
    This lets it derive its own attributes, easier to instantiate.
    
    It also gives it everything necessary to create an
    MC::Document::Release which is where we're heading next.
    
    Note: The fixed version was never used before.  Now it is.
  7. Michael G. Schwern

    Store archive paths as absolute.

    schwern authored
    This protects against chdir'ing.  As more lazy initialization is used,
    this becomes more of a concern.  File::Find, for example, is a problem.
  8. Michael G. Schwern

    Provide absolute file and dir types.

    schwern authored
    This will be used by MC::Model::Archive and the like to coerce
    relative paths into absolute to protect against chdir'ing.
Commits on Feb 18, 2015
  1. Michael G. Schwern

    Refactor $release_model -> $model

    schwern authored
    In the context of the release script, $release_model is redundant.
  2. Michael G. Schwern

    Refactor $release -> $document

    schwern authored
    "document" is more descriptive of what it is than "release" in the
    context of the release script.
  3. Michael G. Schwern
  4. Michael G. Schwern

    Extract building the dependency list from MC::Script::Release

    schwern authored
    Needed to allow the model to make the MC::Document::Release.
  5. Michael G. Schwern

    Replace direct use of Archive::Any with MC::Model::Archive.

    schwern authored
    Then if we change how archives are extracted in the future it only has
    to be done in one place.
    
    MC::Model::Archive deliberately does not clean up a directory given to
    it, we don't know the caller's intent, but it does use a temp
    directory by default.  Someone can add an option later if it's needed.
  6. Michael G. Schwern
  7. Michael G. Schwern

    Fix who loads what modules.

    schwern authored
    With all the code moving around, it can get lost.
  8. Michael G. Schwern

    Move loading metadata into MC::Model::Release.

    schwern authored
    Moving more functionality about indexing a release out of the Script
    and into the Model.
  9. Michael G. Schwern

    Terminology fix! Tarball -> Archive.

    schwern authored
    CPAN releases are tarballs AND zipfiles (and some other weird things).
    It's wrong to refer to them as "tarballs" and can lead to forgetting
    about zip files.  Instead use "archive" or "archive file".
    
    Also normalized the use of the "file" attribute to mean "the file I
    will be operating on" between MC::Model::Release and
    MC::Model::Archive.
  10. Michael G. Schwern

    MetaCPAN::Model::Tarball -> MetaCPAN::Model::Release

    schwern authored
    MC::M::Archive handles the actual file now (and we have more than
    tarballs).  This model is about building and indexing the release,
    most of what MC::Script::Release->import_tarball will go here.
    
    MC::Script::Release will decide what is indexed and how, but it will
    use MC::Model::Release to get its work done.
  11. Michael G. Schwern

    Extract archive file handling into MetaCPAN::Model::Archive

    schwern authored
    This makes managing the extraction directory easier, and it's an
    easier unit to test and improve.  MetaCPAN::Model::Tarball can
    now focus on building the release.
Commits on Feb 17, 2015
  1. Andreea Pirvulescu

    use qq{}

    andreeap authored
  2. Andreea Pirvulescu
Commits on Feb 16, 2015
  1. Michael G. Schwern

    Make the tarball test work.

    schwern authored
    This is mostly about being able to instanciate a Tarball object at
    all.  It reveals a bunch of problems that will be dealt with later.
    
    The karma distribution used was too complicated, it needed a named pipe
    and that has permissions problems.  Use something *waaay* simpler for right
    now.
    
    MetaCPAN::Model::Tarball needs a default tmpdir, but there's problems with
    how it's storing the directory (it can't store a File::Temp object properly).
    
    MetaCPAN::Model::Tarball needs to be a logger, so it has to be passed the
    logger and level now.  This is sub-optimal, but it makes it work.
  2. Michael G. Schwern

    Merge branch 'refactor/Role-Common' into indexing

    schwern authored
    MetaCPAN::Role::Logger is needed to test MetaCPAN::Model::Tarball alone.
  3. Michael G. Schwern

    Move setting the defaut logger into its own method.

    schwern authored
    So non-scripts can use it.
  4. Michael G. Schwern

    Extract MetaCPAN::Role::Logger from MetaCPAN::Role::Script.

    schwern authored
    Things that aren't scripts need to log.
    
    Script still has the code to setup the logger, that'll be extracted next.
  5. Michael G. Schwern

    Rename MetaCPAN::Role::Common to MetaCPAN::Role::Script

    schwern authored
    It turns out, it's not "common" once you start making things that aren't scripts.
    
    More extractions of roles to come.
Commits on Feb 14, 2015
  1. Michael G. Schwern

    Extract the tarball early so its metadata can be found.

    schwern authored
    This fixes the tests broken by 4465251
    Otherwise $tmpdir is empty when we go looking for metadata.
    
    More cleanup to come.
  2. Michael G. Schwern

    Make the archive object a parameter, build it on demand.

    schwern authored
    This is necessary to allow a separate extract method.
    That is necessary to fix the current test failures.
    
    See next commit.
Commits on Feb 13, 2015
  1. Michael G. Schwern
Commits on Feb 3, 2015
  1. Andreea Pirvulescu

    add Tarball model

    andreeap authored
Commits on Jan 31, 2015
  1. Andreea Pirvulescu
Commits on Jan 30, 2015
  1. Randy Stauner

    Remove overlooked (broken) '.../t/' test

    rwstauner authored
    Should have been removed with 3e017fb.
    Unfortunately the test wasn't accurate in the first place,
    so it didn't fail when that logic was removed from the code.
Something went wrong with that request. Please try again.