Permalink
Switch branches/tags
Nothing to show
Commits on Oct 31, 2012
  1. When using config(), make sure the default value is set unless key ex…

    melo committed Oct 31, 2012
    …ists
    
    If the key we want to watch over does not exist, we set it with the
    default value, using {} when no default was provided.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Oct 26, 2012
  1. Extra parameter to config() sets default for key

    melo committed Oct 26, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. Make config() in Client.pm to return the subscribe() ID

    melo committed Oct 26, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  3. Rename Config::Connie::Singleton to Config::Connie::Registry

    melo committed Oct 26, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Aug 17, 2012
  1. Added clearer to the version attr, allow clients to force a version r…

    melo committed Aug 17, 2012
    …efresh
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Aug 13, 2012
  1. Added list() to Config::Connie::Client

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. Added _cache_keys(): list all keys from our cache

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  3. Add Version role to Storage

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  4. Move tests into a subtest

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  5. Kill the official Storage::Local module, move it T:: namespace

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  6. Redo previous fix to make sure Storage init() is called:

    melo committed Aug 13, 2012
    The Singleton role provides a init() hook point that other roles can use
    to perform initialization.
    
    The Storage roles does that, making sure storage init() method is called.
    
    This fix is better because there was no garantee that storage init() was
    called before any cache accesses on the previous version.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  7. After creating the storage object, the init() methods get called

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  8. Add local default to get()

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  9. Merge branch 'role_rewrite'

    melo committed Aug 13, 2012
    * role_rewrite:
      Remove old, no longer used, files
      Simplify Config::Connie::ID
      Config::Connie is now a best-practices role:
      Added Client role with the basic API to get/set and one-step config
      Storage role splitted into storage and storage_class
      Test the return value from unsubscribe()
      Added Config::Connie::Storage role and sample C::C::Storage::Local
      Simplify Config::Connie::Defaults: no class API, only instance API
      Added Config::Connie::Cache role
      Added Config::Connie::Subscriptions role
      Added Config::Connie::ID role
      Moved default management to Defaults role
      Move ID+singleton management to new roles:
      Sanity: dump Mo, use Moo
  10. Remove old, no longer used, files

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  11. Simplify Config::Connie::ID

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  12. Config::Connie is now a best-practices role:

    melo committed Aug 13, 2012
    you can compose it to get all of the major roles.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  13. Added Client role with the basic API to get/set and one-step config

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  14. Storage role splitted into storage and storage_class

    melo committed Aug 13, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Aug 10, 2012
  1. Test the return value from unsubscribe()

    melo committed Aug 10, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. Added Config::Connie::Storage role and sample C::C::Storage::Local

    melo committed Aug 10, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  3. Simplify Config::Connie::Defaults: no class API, only instance API

    melo committed Aug 10, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  4. Added Config::Connie::Cache role

    melo committed Aug 10, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  5. Added Config::Connie::Subscriptions role

    melo committed Aug 10, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  6. Added Config::Connie::ID role

    melo committed Aug 10, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Aug 8, 2012
  1. Moved default management to Defaults role

    melo committed Aug 8, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. Move ID+singleton management to new roles:

    melo committed Aug 8, 2012
     * ID management moved to Core.pm;
     * instace management moved to Singleton: per-class singleton;
     * Dropped app/env split, just ID from now on.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Jul 31, 2012
  1. Sanity: dump Mo, use Moo

    melo committed Jul 31, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Apr 24, 2012
  1. Add support for defaults per environment

    melo committed Apr 24, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
Commits on Apr 23, 2012
  1. Added config() to Client: get() and subscribe() in a single step

    melo committed Apr 23, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  2. Make sure get() respects the defaults

    melo committed Apr 23, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  3. Add extra parameter to subscribe():

    melo committed Apr 23, 2012
    All values passed after the callback argument (second argument of
    subscribe) will be passed in a ArrayRef to the callback.
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  4. Update the order of parameters on the subscribe() callback, put value…

    melo committed Apr 23, 2012
    … first
    
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  5. Add default management to Config::Connie

    melo committed Apr 23, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>
  6. Tidy

    melo committed Apr 23, 2012
    Signed-off-by: Pedro Melo <melo@simplicidade.org>