monkey-lib 0.3.5.1 → 0.3.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/monkey/autoloader.rb +5 -1
  2. metadata +1 -1
@@ -8,7 +8,7 @@ module Monkey
8
8
  begin
9
9
  require file
10
10
  if const_defined? const_name
11
- const = const_get const_get
11
+ const = const_get const_name
12
12
  const.extend Monkey::Autoloader
13
13
  const
14
14
  else
@@ -16,6 +16,10 @@ module Monkey
16
16
  raise LoadError
17
17
  end
18
18
  rescue LoadError
19
+ begin
20
+ return parent.const_get(const_name) if parent != self
21
+ rescue NameError
22
+ end
19
23
  super
20
24
  end
21
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monkey-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5.1
4
+ version: 0.3.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase