loader 1.0.2 → 1.0.3
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.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/examples/simple_require.rb +1 -1
- data/lib/loader/require.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDMzYmExYjRjMjM2MGI5MjYzMjVhMWE2N2U5OTYyMWVmZjA3ZmIzYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzEwMDc3ZTQ5MjliZjQ1N2ExOWVmYzM1NmFjNmI5NjVkZGFiMmJhYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmMyMGU1MWQwYTk3Zjk0OTM0MjEwNjFkMGQxNWU1MzM0YjY0NjZlOGJjMzkw
|
10
|
+
NGI0Y2UwNzJmODNmNjQ5MTBmMDg1ZjVjOWQ1NzM4NDAzOTNmYmI4MzliZGZl
|
11
|
+
ODNmZjhjNWI5NDYzNzU0MTBiMjY0MGRkNmE2NWMwN2M5MWUyNTc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjhlZjExMzhiYjFhOTNkZTRjOGU5OWMyMzVjZDA5Y2RjYzNmNTc1ZjI5MDE2
|
14
|
+
MzE3YmY1MmQyNWQzYzAzNTVjZWNjODAxODBjZDg5ZTkwOWY3MDNiMjVlMjY2
|
15
|
+
Mjg3MGQwMDc4MjRlZTExODc0MWViNDhiYTQzNmRkMzViN2NmZWM=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
data/examples/simple_require.rb
CHANGED
data/lib/loader/require.rb
CHANGED
@@ -18,7 +18,11 @@ module Kernel
|
|
18
18
|
# return the directory and the sub directories file names (rb/ru)
|
19
19
|
def require_relative_directory(folder)
|
20
20
|
|
21
|
-
|
21
|
+
unless folder.to_s[0] == File::Separator
|
22
|
+
folder= Loader.caller_folder,folder
|
23
|
+
end
|
24
|
+
|
25
|
+
Dir.glob(File.join(folder,"**","*.{rb,ru}")).each do |one_path|
|
22
26
|
require one_path
|
23
27
|
end
|
24
28
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ! ' dsl for gem helper calls such like relative folder calls that independ
|
14
14
|
on the Dir.pwd or File.expand tricks and config loader stuffs, Check out the GIT! '
|