RubyGems Navigation menu

required 0.1.2

<p>Required is a utility to require all files in a directory.</p> <p> Why would one want to require a whole bunch of files at once? I have used this gem on 2 projects to: </p> <ul> <li>require dozens of jar files when working on a JRuby project</li> <li>pull in all files before running code coverage (rcov), to find code that is otherwise dead/untouched</li> </ul> <p> Options for <strong>required</strong> 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. </p> <code>require 'required' required "some/path/to/dir"</code> <p>See the README for quick usage instructions</p>

          gem 'required', '~> 0.1.2'

          gem install required -v 0.1.2


  • Arild Shirazi


Total downloads 5,573

For this version 1,299

Required Ruby Version: None



  1. 0.1.3 - April 2, 2010 (6.5 KB)
  2. 0.1.2 - April 1, 2010 (6.5 KB)
  3. 0.1.1 - March 31, 2010 (5.5 KB)
  4. 0.1.0 - March 31, 2010 (5.5 KB)