required 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Arild Shirazi
|
@@ -18,7 +18,16 @@ date: 2010-03-31 00:00:00 -05:00
|
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
21
|
-
description:
|
21
|
+
description: "Required, a utility to require all files in a directory\n\
|
22
|
+
Required provides the ability to require all files within a directory, with options for file inclusion/exclusion based on pattern matching, as well as recursive descent. An array of all the files that were loaded (\xE2\x80\x98require\xE2\x80\x99 only loads a file the first time) are returned.\n\n\
|
23
|
+
Quick start\n\
|
24
|
+
First pull in the \xE2\x80\x98required\xE2\x80\x99 module:\n\n require 'required'\n\
|
25
|
+
To pull in all ruby files in a directory (this excludes subdirectories):\n\n required \"some/path/to/dir\"\n\
|
26
|
+
Same as before, but require the files in reverse alphanumeric order:\n\n required \"some/path/to/dir\", :sort => lambda { |x, y| y <=> x}\n\
|
27
|
+
To pull in files from multiple directories:\n\n required [\"some/path/to/dir\", \"another/path/another/dir\"]\n\
|
28
|
+
Or to recurse through subdirectories, requiring all files along the way:\n\n required \"lib\", {:recurse => true}\n\
|
29
|
+
Same as before, but exclude ruby files tagged as \"_old\":\n\n required \"lib\", {:recurse => true, :exclude => /_old/}\n # Will not require \"lib/extensions/string_old.rb\"\n\
|
30
|
+
Same as before, but only require ruby files tagged with \"_new\":\n\n required \"lib\", {:recurse => true, :include => /_new/}\n"
|
22
31
|
email: ashirazi@codesherpas.com
|
23
32
|
executables: []
|
24
33
|
|