Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Aug 14, 2009
  1. Added concept of providers

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

    authored
  2. Sort methods.

    authored
  3. Refactor to remove code smells.

    authored
Commits on Aug 4, 2009
  1. Added instance bindings

    authored
  2. Add check for circular deps

    authored
Commits on Aug 3, 2009
  1. Remove Injector singleton.

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

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

    authored
    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.
  2. Create Tourniquet namespace

    authored
  3. Don't use @injector in tests.

    authored
    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.
  4. Initial stab at injection.

    authored
    This only handles simple dependencies, it does not do any graph analysis yet.
  5. Initial Commit

    authored
Something went wrong with that request. Please try again.