im 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/im/const_path.rb +2 -0
- data/lib/im/loader.rb +3 -2
- data/lib/im/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12f266a57a80938158b66bdbc0345fcdc0305c11ddaca54e510613426f1ec0ca
|
4
|
+
data.tar.gz: f1a64495a579e4fba187e8d1f6db1f3025da5dfe47b7217c255e1e8ff03fd4c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a33aaedf83fcf5c85ec424ad6307236ced2a952575348a66689cc54c468e6bee697f7daec25f8259c1e18942ec2b307ac24a524c6c21994efcd376f5fb74fbf
|
7
|
+
data.tar.gz: 8f2bcfab90aae5e132a65021169860128586102e7fc405777d96ee505674354ef1f13bf4d8d53810eb04ab2d93ad6602266647765e2c571490122a0915fab481
|
data/lib/im/const_path.rb
CHANGED
data/lib/im/loader.rb
CHANGED
@@ -349,7 +349,7 @@ module Im
|
|
349
349
|
|
350
350
|
private # -------------------------------------------------------------------------------------
|
351
351
|
|
352
|
-
# @sig (String, Module) -> void
|
352
|
+
# @sig (String, Module?) -> void
|
353
353
|
def set_autoloads_in_dir(dir, parent = self)
|
354
354
|
ls(dir) do |basename, abspath|
|
355
355
|
begin
|
@@ -390,7 +390,7 @@ module Im
|
|
390
390
|
def autoload_subdir(parent, cname, subdir)
|
391
391
|
if autoload_path = autoload_path_set_by_me_for?(parent, cname)
|
392
392
|
absolute_cpath = cpath(parent, cname)
|
393
|
-
relative_cpath = relative_cpath(
|
393
|
+
relative_cpath = relative_cpath(parent, cname)
|
394
394
|
register_explicit_namespace(cpath, relative_cpath) if ruby?(autoload_path)
|
395
395
|
|
396
396
|
# We do not need to issue another autoload, the existing one is enough
|
@@ -516,6 +516,7 @@ module Im
|
|
516
516
|
else
|
517
517
|
# If an autoloaded file loads an autoloaded constant from another file, we need to deduce the module name
|
518
518
|
# before we can add the parent to module_cpaths. In this case, we have no choice but to work from to_s.
|
519
|
+
#binding.irb if parent.is_a?(String)
|
519
520
|
mod_name = Im.cpath(parent)
|
520
521
|
current_module_prefix = "#{Im.cpath(self)}::"
|
521
522
|
raise InvalidModuleName, "invalid module name for #{parent}" unless mod_name.start_with?(current_module_prefix)
|
data/lib/im/version.rb
CHANGED