Permalink
Switch branches/tags
Nothing to show
Commits on Aug 14, 2009
  1. Added concept of providers

    committed Aug 14, 2009
Commits on Aug 13, 2009
  1. Added rcov to rakefile

    committed Aug 13, 2009
  2. Sort methods.

    committed Aug 13, 2009
  3. Refactor to remove code smells.

    committed Aug 13, 2009
Commits on Aug 4, 2009
  1. Added instance bindings

    committed Aug 4, 2009
  2. Refactor to allow changes to Tourniquet::Binding without requiring ch…

    …anges to extensions.
    committed Aug 4, 2009
  3. Add check for circular deps

    committed Aug 4, 2009
Commits on Aug 3, 2009
  1. Remove Injector singleton.

    * Added injector.bind(interface).to(implementation) syntax.
    * Added initializer block to Injector.new
    * No longer pass concrete classes to dependency specification.
    committed Aug 3, 2009
  2. Added another simple spec

    committed Aug 3, 2009
Commits on Aug 2, 2009
  1. Refactored to define #initialize.

    When Binding was just shoving stuff into ivars it made it so that we could not construct an object with Class.new for the purpose of testing. That defeats the purpose of DI entirely. So, instead, class_eval an initialize method from inside Class.inject.
    committed Aug 2, 2009
  2. Create Tourniquet namespace

    committed Aug 2, 2009
  3. Don't use @injector in tests.

    I'm frankly unsure why the tests pass with a separate Injector instance as the class methods all still use the Singleton. In any case, this should now protect against any bleed-over between tests as it resets the singleton before each one.
    committed Aug 2, 2009
  4. Initial stab at injection.

    This only handles simple dependencies, it does not do any graph analysis yet.
    committed Aug 2, 2009
  5. Initial Commit

    committed Aug 2, 2009