required 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. data/README +3 -12
  2. metadata +19 -23
data/README CHANGED
@@ -11,54 +11,45 @@ First pull in the 'required' module:
11
11
  require 'required'
12
12
 
13
13
  To pull in all ruby files in a directory (this excludes subdirectories):
14
-
15
14
  required "some/path/to/dir"
16
15
 
17
16
  Same as before, but require the files in reverse alphanumeric order:
18
-
19
17
  required "some/path/to/dir", :sort => lambda { |x, y| y <=> x}
20
18
 
21
19
  To pull in files from multiple directories:
22
-
23
20
  required ["some/path/to/dir", "another/path/another/dir"]
24
21
 
25
22
  Or to recurse through subdirectories, requiring all files along the way:
26
-
27
23
  required "lib", {:recurse => true}
28
24
 
29
25
  Same as before, but exclude ruby files tagged as "_old":
30
-
31
26
  required "lib", {:recurse => true, :exclude => /_old/}
32
27
  # Will not require "lib/extensions/string_old.rb"
33
28
 
34
29
  Same as before, but only require ruby files tagged with "_new":
35
-
36
30
  required "lib", {:recurse => true, :include => /_new/}
37
31
 
38
32
  == Installing with RubyGems
39
33
 
40
34
  A Gem of Required is available at gemcutter.org. You can install it with:
41
-
42
35
  gem install required
43
36
 
44
37
  == Running the tests
45
38
 
46
39
  Testing Required requires the shoulda testing framework:
47
-
48
40
  gem install shoulda
49
41
 
50
42
  There is one rake-based test task:
51
-
52
43
  rake test runs all the tests
53
44
 
54
45
  == History
55
46
 
56
- * 2010-02-23: First public release 0.1.
47
+ * 2010-03-31: First public release 0.1.x
57
48
 
58
49
  == Contact
59
50
 
60
51
  Git repository (send Git patches to the mailing list):
61
- * http://github.com/required
52
+ * http://github.com/ashirazi/required
62
53
 
63
54
  == Thanks
64
55
 
@@ -90,4 +81,4 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
90
81
  == Links
91
82
 
92
83
  Required's RubyGems.org project:: <http://rubygems.org/gems/required>
93
- Official Required repository:: <http://github.com/required>
84
+ Official Required repository:: <http://github.com/ashirazi/required>
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arild Shirazi
@@ -14,33 +14,29 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-01 00:00:00 -05:00
17
+ date: 2010-04-02 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
21
21
  description: |
22
- <p>Required is a utility to require all files in a directory.</p>
23
- <p>
24
- Why would one want to require a whole bunch of files at once? I have used this
25
- gem on 2 projects to:
26
- </p>
27
- <ul>
28
- <li>require dozens of jar files when working on a JRuby project</li>
29
- <li>pull in all files before running code coverage (rcov), to find code that
30
- is otherwise dead/untouched</li>
31
- </ul>
22
+ Required is a utility to require all files in a directory.
32
23
 
33
- <p>
34
- Options for <strong>required</strong> include the ability to recursively
35
- descend through subdirectories, include/exclude files based on pattern
36
- matching, and to specify the order of requires based on filename. An array of
37
- all the files that were loaded is returned.
38
- </p>
24
+ Why would one want to require a whole bunch of files at once? I have used this
25
+ gem on 2 projects to:
26
+ - require dozens of jar files when working on a JRuby project
27
+ - pull in all files before running code coverage (rcov), to find code that
28
+ is otherwise dead/untouched
39
29
 
40
- <code>require 'required'
41
- required "some/path/to/dir"</code>
30
+ Options for required include the ability to recursively descend through
31
+ subdirectories, include/exclude files based on pattern matching, and to specify
32
+ the order of requires based on filename. An array of all the files that were
33
+ loaded is returned.
42
34
 
43
- <p>See the README for quick usage instructions</p>
35
+ Quick example:
36
+ require 'required'
37
+ required "some/path/to/dir"
38
+
39
+ See the README for more examples, and description of options.
44
40
 
45
41
  email: ashirazi@codesherpas.com
46
42
  executables: []
@@ -53,7 +49,7 @@ files:
53
49
  - lib/required.rb
54
50
  - README
55
51
  has_rdoc: true
56
- homepage: http://blog.codesherpas.com/
52
+ homepage: http://github.com/ashirazi/required
57
53
  licenses: []
58
54
 
59
55
  post_install_message: