micon 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/readme.md +1 -1
- data/spec/callbacks_spec.rb +1 -1
- data/spec/config_spec.rb +2 -2
- data/spec/{micelaneous_spec → miscellaneous_spec}/autoload/lib/components/TheRad/TheView.rb +0 -0
- data/spec/{micelaneous_spec → miscellaneous_spec}/autoload/lib/components/TheRouter.rb +0 -0
- data/spec/{micelaneous_spec → miscellaneous_spec}/autoload/lib/components/some_value.rb +0 -0
- data/spec/{micelaneous_spec.rb → miscellaneous_spec.rb} +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +6 -6
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
|
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
|
data/spec/callbacks_spec.rb
CHANGED
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
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
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.
|
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-
|
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/
|
51
|
-
- spec/
|
52
|
-
- spec/
|
53
|
-
- spec/
|
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
|