relative-require 1.0 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/relative-require.rb +0 -4
- data/test/test.rb +2 -2
- metadata +22 -41
data/lib/relative-require.rb
CHANGED
data/test/test.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
$:.reject{|x| x=='.'}
|
1
|
+
$:.reject!{|x| x=='.'}
|
2
2
|
$:.unshift File.expand_path('../../lib', __FILE__)
|
3
3
|
|
4
4
|
require 'test/unit'
|
@@ -17,7 +17,7 @@ class TestRelative < Test::Unit::TestCase
|
|
17
17
|
|
18
18
|
assert(defined? C)
|
19
19
|
assert(defined? D)
|
20
|
-
|
20
|
+
|
21
21
|
assert_nothing_raised do
|
22
22
|
require ['./fixtures/e', __FILE__]
|
23
23
|
end
|
metadata
CHANGED
@@ -1,32 +1,24 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: relative-require
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
version: "1.0"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.1'
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Jonas Pfenniger
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2010-11-27 00:00:00 +00:00
|
18
|
-
default_executable:
|
12
|
+
date: 2012-05-18 00:00:00.000000000Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
14
|
+
description: This module changes the meaning of relative requires from "relative to
|
15
|
+
the current pwd" to "relative to the requiring file". By just changing this little
|
16
|
+
thing, it lets you remove lots of uglyness regarding $LOAD_PATH
|
22
17
|
email: jonas@pfenniger.name
|
23
18
|
executables: []
|
24
|
-
|
25
19
|
extensions: []
|
26
|
-
|
27
20
|
extra_rdoc_files: []
|
28
|
-
|
29
|
-
files:
|
21
|
+
files:
|
30
22
|
- README.md
|
31
23
|
- lib/elative-require.rb
|
32
24
|
- lib/relative-require.rb
|
@@ -35,39 +27,28 @@ files:
|
|
35
27
|
- test/fixtures/d.rb
|
36
28
|
- test/fixtures/e.rb
|
37
29
|
- test/test.rb
|
38
|
-
has_rdoc: true
|
39
30
|
homepage: https://github.com/zimbatm/relative-require.rb
|
40
31
|
licenses: []
|
41
|
-
|
42
32
|
post_install_message:
|
43
33
|
rdoc_options: []
|
44
|
-
|
45
|
-
require_paths:
|
34
|
+
require_paths:
|
46
35
|
- lib
|
47
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
37
|
none: false
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
|
53
|
-
|
54
|
-
- 0
|
55
|
-
version: "0"
|
56
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
43
|
none: false
|
58
|
-
requirements:
|
59
|
-
- -
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
segments:
|
63
|
-
- 0
|
64
|
-
version: "0"
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
65
48
|
requirements: []
|
66
|
-
|
67
49
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.
|
50
|
+
rubygems_version: 1.8.10
|
69
51
|
signing_key:
|
70
52
|
specification_version: 3
|
71
53
|
summary: Bringing relative requires to Ruby
|
72
54
|
test_files: []
|
73
|
-
|