micon 0.1.14 → 0.1.15

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.
data/readme.md CHANGED
@@ -89,7 +89,7 @@ there's no multithreading in ruby.
89
89
  - refactor specs, they are messy a little.
90
90
  - maybe it makes sense to add ability to add dependencies for components after component registration?
91
91
 
92
- Copyright (c) Alexey Petrushin [http://4ire.net](http://4ire.net), released under the MIT license.
92
+ Copyright (c) Alexey Petrushin http://petrush.in, released under the MIT license.
93
93
 
94
94
  [ioc]: http://en.wikipedia.org/wiki/Inversion_of_control
95
95
  [rad_core]: https://github.com/alexeypetrushin/rad_core
@@ -57,7 +57,7 @@ describe "Callbacks" do
57
57
  end
58
58
  end
59
59
 
60
- describe "micelaneous" do
60
+ describe "miscellaneous" do
61
61
  it "should fire callbacks after assigning component" do
62
62
  micon.register(:the_object)
63
63
  check = mock
data/spec/config_spec.rb CHANGED
@@ -4,14 +4,14 @@ describe "Configuration" do
4
4
  before{self.micon = Micon::Core.new}
5
5
 
6
6
  it "should configure component if config provided" do
7
- micon.register(:logger){OpenStruct.new}
7
+ micon.register(:logger){::OpenStruct.new}
8
8
  with_load_path "#{spec_dir}/basic/lib" do
9
9
  micon[:logger].level.should == :info
10
10
  end
11
11
  end
12
12
 
13
13
  it "should merge in order: conf <- conf.mode <- runtime <- runtime.mode" do
14
- micon.register(:object){OpenStruct.new}
14
+ micon.register(:object){::OpenStruct.new}
15
15
  with_load_path "#{spec_dir}/order/lib" do
16
16
  micon.runtime_path = "#{spec_dir}/order/app"
17
17
  micon.mode = :production
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "Micelaneous" do
3
+ describe "Miscellaneous" do
4
4
  with_load_path "#{spec_dir}/autoload/lib"
5
5
 
6
6
  before{self.micon = Micon::Core.new}
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rspec_ext'
2
+ require 'ostruct'
2
3
 
3
4
  require "micon"
4
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: micon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-05 00:00:00 +04:00
13
+ date: 2011-07-30 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -47,10 +47,10 @@ files:
47
47
  - spec/custom_scope_spec.rb
48
48
  - spec/initialization_spec.rb
49
49
  - spec/managed_spec.rb
50
- - spec/micelaneous_spec/autoload/lib/components/some_value.rb
51
- - spec/micelaneous_spec/autoload/lib/components/TheRad/TheView.rb
52
- - spec/micelaneous_spec/autoload/lib/components/TheRouter.rb
53
- - spec/micelaneous_spec.rb
50
+ - spec/miscellaneous_spec/autoload/lib/components/some_value.rb
51
+ - spec/miscellaneous_spec/autoload/lib/components/TheRad/TheView.rb
52
+ - spec/miscellaneous_spec/autoload/lib/components/TheRouter.rb
53
+ - spec/miscellaneous_spec.rb
54
54
  - spec/nested_custom_scope_spec.rb
55
55
  - spec/overview_spec.rb
56
56
  - spec/spec_helper.rb