loader 1.0.3 → 1.0.4
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 +2 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWZlOWIyZWRlOTIwM2Q3MzkwYzUxOWIzZDJhYzYwNDQwNjY3NzRiMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OThiNzBlNTkyYjEzYWE5YmZjMDUwNjA5NzdkMDAyMzQ0YzAzMmE0MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTdhY2Y4YzQwNWRjYjJkZWE4ZTkzZGY1N2QwNzFmMzk2ZGI2ZWRmYzk4M2Rj
|
10
|
+
MDNmNWJiZWI5ZTBjZjgyNjRmN2NiNzk0NmMyMWU0ZGFmNWY3NGFjZWNhOWU2
|
11
|
+
ZGJjMDJhMjRhMzk5Njk5ZGQyNTFjZWI3N2FlYmM0MGRlM2IzOTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmU0MTJkYTkwOTRiZWZhZjczODA3OTNkODA3MzgwMTk1ZWJjNTFiZDE5YTY5
|
14
|
+
ODliNzhiYzZmNjEwYWRlZWQ3YjkxNGJhYTU2YmFlNmY5NWVmZjU3MDlkOTNm
|
15
|
+
YWNlMDQxNWU5MjlmNjExYWRlNDY5YTNlNGQ0Y2VmNDkwNGY1YTQ=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/examples/simple_require.rb
CHANGED
data/lib/loader/require.rb
CHANGED
@@ -7,13 +7,6 @@ module Kernel
|
|
7
7
|
# end
|
8
8
|
#end
|
9
9
|
|
10
|
-
# require by absolute path directory's files
|
11
|
-
def require_directory(folder)
|
12
|
-
Dir.glob(File.join(folder,"**","*.{rb,ru}")).each do |file_path|
|
13
|
-
require file_path
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
10
|
# require sender relative directory's files
|
18
11
|
# return the directory and the sub directories file names (rb/ru)
|
19
12
|
def require_relative_directory(folder)
|
@@ -30,4 +23,6 @@ module Kernel
|
|
30
23
|
|
31
24
|
end
|
32
25
|
|
26
|
+
alias :require_directory :require_relative_directory
|
27
|
+
|
33
28
|
end
|