require_recursive 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/require_recursive.rb +9 -0
- metadata +46 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7d38e5c9b431715d2bb0183f460000015b4614c4
|
4
|
+
data.tar.gz: fc0c0e498bab844e00032db9df9412564ea08412
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ec060e6f7f388e0705330bb605af705273d0ead4a15d996af75f20cb5c41c104f2c3b097094c095b4a50275827f39456c6e51f20f9330516af8678f0b55701cf
|
7
|
+
data.tar.gz: 237d14ee0ddbf29d21230fd26949e5f9896e507d7b5cfa0f02acf078e6fb14769ad5d5d06c2edc3f7cdecc73a662f37484e1d9d6e4eff9be737c9cceba9b60ab
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module Kernel
|
2
|
+
def require_recursive(directory)
|
3
|
+
if paths = $LOAD_PATH.map {|load_path| Dir["#{load_path}/#{directory}/**/*.rb"] }.find(&:any?)
|
4
|
+
paths.each(&method(:require))
|
5
|
+
else
|
6
|
+
fail LoadError, "cannot load such files -- #{directory}/**/*.rb"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: require_recursive
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tsukuru Tanimichi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
- ttanimichi@hotmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- require_recursive.rb
|
21
|
+
homepage: https://gist.github.com/ttanimichi/267fb4360ab3afc5e2d6
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- "."
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.0
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.4.5
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: require all files in a directory recursively.
|
45
|
+
test_files: []
|
46
|
+
has_rdoc:
|