Categories: None [Edit]
required
Required is a utility to require all files in a directory.
Why would one want to require a whole bunch of files at once? I have used this
gem on 2 projects to:
- require dozens of jar files when working on a JRuby project
- pull in all files before running code coverage (rcov), to find code that
is otherwise dead/untouched
Options for required include the ability to recursively descend through
subdirectories, include/exclude files based on pattern matching, and to specify
the order of requires based on filename. An array of all the files that were
loaded is returned.
Quick example:
require 'required'
required "some/path/to/dir"
See the README for more examples, and description of options.
Total
Ranking: 63,681 of 188,969
Downloads: 16,204
Daily
Ranking: 104,234 of 188,945
Downloads: 0
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | ashirazi |