codeine 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ module Codeine
9
9
  #automatically called later in this file
10
10
  def activate()
11
11
  Module.send(:include, Codeine::Containable)
12
- Class.send(:include, Codeine::Injectable)
12
+ Module.send(:include, Codeine::Injectable)
13
13
  end
14
14
 
15
15
  def container_for(mod)
@@ -1,3 +1,3 @@
1
1
  module Codeine
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -7,20 +7,19 @@ describe Codeine::Injectable do
7
7
  before(:each) do
8
8
  module Foo
9
9
  class Bar
10
+
10
11
  end
12
+
13
+
11
14
  end
12
15
  end
13
16
 
14
17
  describe "dynamic methods" do
15
- it "should create a module-level inject_service method" do
16
- Foo::Bar.should_not respond_to(:inject_service)
17
- Foo::Bar.send(:extend, Codeine::Injectable)
18
+ it "should create a module-level codeine_inject method" do
18
19
  Foo::Bar.should respond_to(:codeine_inject)
19
20
  end
20
21
 
21
22
  it "should create a service getter for injected services" do
22
- Foo::Bar.send(:extend, Codeine::Injectable)
23
- Foo::Bar.send(:extend, Codeine::Containable)
24
23
  Foo::Bar.codeine_container = {:bat => "man"}
25
24
  Foo::Bar.codeine_inject(:bat)
26
25
  bar = Foo::Bar.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-10 00:00:00.000000000Z
12
+ date: 2011-10-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &16349240 !ruby/object:Gem::Requirement
16
+ requirement: &15396940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *16349240
24
+ version_requirements: *15396940
25
25
  description: A really simple, partitionable, ruby-flavored dependency injector
26
26
  email:
27
27
  - tim.ariyeh@gmail.com
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project: codeine
71
- rubygems_version: 1.8.6
71
+ rubygems_version: 1.8.11
72
72
  signing_key:
73
73
  specification_version: 3
74
74
  summary: A simple Ruby dependency injector