class_loader 0.4.14 → 0.4.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.
|
@@ -35,8 +35,7 @@ module ClassLoader
|
|
|
35
35
|
|
|
36
36
|
unless defined_in_home_scope
|
|
37
37
|
msg = "Class Name '#{class_name}' doesn't correspond to File Name '#{adapter.to_file_path(class_name)}'!"
|
|
38
|
-
|
|
39
|
-
# raise_without_self NameError, msg
|
|
38
|
+
raise_without_self NameError, msg
|
|
40
39
|
end
|
|
41
40
|
|
|
42
41
|
result = namespace ? namespace.const_get(const) : Object.const_get(const)
|
|
@@ -94,7 +94,7 @@ describe ClassLoader::FileSystemAdapter do
|
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
|
|
97
|
-
it "should watch only files understable by
|
|
97
|
+
it "should watch only files understable by its translator (CamelCase shouldn't load Underscored)" do
|
|
98
98
|
watched = []
|
|
99
99
|
@camel_case_adapter.each_watched_file{|file_path, relative_name| watched << relative_name}
|
|
100
100
|
watched.should == ["CamelCaseClass.rb"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: class_loader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.15
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2011-
|
|
12
|
+
date: 2011-09-22 00:00:00.000000000Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email:
|