mlightner-require_directory 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
data/lib/require_directory.rb
CHANGED
@@ -8,7 +8,7 @@ module Kernel
|
|
8
8
|
if add_to_load_path
|
9
9
|
$LOAD_PATH << dir
|
10
10
|
end
|
11
|
-
Dir.glob(File.join(dir + '
|
11
|
+
Dir.glob(File.join(dir + '/**/*.rb')).each do |file|
|
12
12
|
if (skip_invalid_syntax && !(`/usr/bin/env ruby -c #{file}` =~ /Syntax OK/m))
|
13
13
|
warn "Invalid syntax in: #{file}"
|
14
14
|
next
|
data/require_directory.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{require_directory}
|
3
|
-
s.version = "0.1.
|
3
|
+
s.version = "0.1.2"
|
4
4
|
s.author = "Matt Lightner"
|
5
5
|
s.default_executable = %q{require_directory}
|
6
6
|
s.description = %q{Require all files in a directory easily.}
|
7
7
|
s.email = %q{mlightner@gmail.com}
|
8
|
-
s.files = ["./README","./lib","./lib/require_directory.rb","./test","./test/
|
8
|
+
s.files = ["./README","./lib","./lib/require_directory.rb","./test","./test/require_directory_test.rb","./test/sample_requires","./test/sample_requires/subdir","./test/sample_requires/subdir/jimmy.rb","./test/sample_requires/things.rb","./test/sample_requires/stuff.rb","./test/sample_requires/widgets.rb","./test/sample_requires_with_error","./test/sample_requires_with_error/gremlins.rb","./test/sample_requires_with_error/things.rb","./test/sample_requires_with_error/stuff.rb","./test/sample_requires_with_error/widgets.rb","./test/test_helper.rb","./Rakefile","./require_directory.gemspec"]
|
9
9
|
s.has_rdoc = false
|
10
10
|
s.homepage = %q{http://github.com/mlightner/require_directory}
|
11
11
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "require_directory", "--main"]
|
@@ -4,7 +4,7 @@ class TestDirectoryRequires < Test::Unit::TestCase
|
|
4
4
|
|
5
5
|
def test_require_directory_good
|
6
6
|
require_directory File.dirname(__FILE__) + '/sample_requires'
|
7
|
-
%w{ Widgets Things Stuff }.each do |cl|
|
7
|
+
%w{ Widgets Things Stuff Jimmy }.each do |cl|
|
8
8
|
assert Object.const_defined?(cl.to_sym)
|
9
9
|
assert_equal Class, eval("#{cl}").class
|
10
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mlightner-require_directory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Lightner
|
@@ -26,8 +26,10 @@ files:
|
|
26
26
|
- ./lib
|
27
27
|
- ./lib/require_directory.rb
|
28
28
|
- ./test
|
29
|
-
- ./test/
|
29
|
+
- ./test/require_directory_test.rb
|
30
30
|
- ./test/sample_requires
|
31
|
+
- ./test/sample_requires/subdir
|
32
|
+
- ./test/sample_requires/subdir/jimmy.rb
|
31
33
|
- ./test/sample_requires/things.rb
|
32
34
|
- ./test/sample_requires/stuff.rb
|
33
35
|
- ./test/sample_requires/widgets.rb
|