rbx-require-relative 0.0.5-universal-rubinius-1.2 → 0.0.7-universal-rubinius-1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS +7 -0
- data/Rakefile +5 -1
- data/lib/require_relative.rb +2 -1
- data/lib/version.rb +1 -1
- data/test/test-rr.rb +2 -1
- metadata +10 -10
data/NEWS
CHANGED
data/Rakefile
CHANGED
@@ -31,7 +31,11 @@ def gemspec
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def gem_file
|
34
|
-
|
34
|
+
if gemspec.platform.to_s == 'ruby'
|
35
|
+
"#{gemspec.name}-#{gemspec.version}.gem"
|
36
|
+
else
|
37
|
+
"#{gemspec.name}-#{gemspec.version}-#{gemspec.platform.to_s}.gem"
|
38
|
+
end
|
35
39
|
end
|
36
40
|
|
37
41
|
|
data/lib/require_relative.rb
CHANGED
@@ -48,7 +48,8 @@ elsif defined?(Rubinius) && '1.8.7' == RUBY_VERSION
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
elsif (RUBY_VERSION.start_with?('1.8') &&
|
51
|
-
RUBY_COPYRIGHT.end_with?('Yukihiro Matsumoto'))
|
51
|
+
(RUBY_COPYRIGHT.end_with?('Yukihiro Matsumoto')) ||
|
52
|
+
RUBY_ENGINE == 'jruby')
|
52
53
|
def require_relative(suffix)
|
53
54
|
file = caller.first.split(/:\d/,2).first
|
54
55
|
if /\A\((.*)\)/ =~ file # eval, etc.
|
data/lib/version.rb
CHANGED
data/test/test-rr.rb
CHANGED
@@ -11,7 +11,8 @@ class TestRR < Test::Unit::TestCase
|
|
11
11
|
def test_basic
|
12
12
|
dir =
|
13
13
|
if RUBY_VERSION.start_with?('1.8') &&
|
14
|
-
RUBY_COPYRIGHT.end_with?('Yukihiro Matsumoto')
|
14
|
+
(RUBY_COPYRIGHT.end_with?('Yukihiro Matsumoto') ||
|
15
|
+
RUBY_ENGINE == 'jruby')
|
15
16
|
puts "Note: require_relative doesn't work with Dir.chdir as it does on Rubinius or 1.9"
|
16
17
|
'.'
|
17
18
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbx-require-relative
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: universal-rubinius-1.2
|
12
12
|
authors:
|
13
13
|
- R. Bernstein
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-02-26 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -25,10 +25,10 @@ description: |
|
|
25
25
|
We also add abs_path which is like __FILE__ but __FILE__ can be fooled
|
26
26
|
by a sneaky "chdir" while abs_path can't.
|
27
27
|
|
28
|
-
If you are running on Ruby 1.9
|
29
|
-
version. The benefit we provide in this situation by this
|
30
|
-
the ability to write the same require_relative sequence in
|
31
|
-
1.8 and Ruby 1.9.
|
28
|
+
If you are running on Ruby 1.9 or greater, require_relative is the
|
29
|
+
pre-defined version. The benefit we provide in this situation by this
|
30
|
+
package is the ability to write the same require_relative sequence in
|
31
|
+
Rubinius 1.8 and Ruby 1.9.
|
32
32
|
|
33
33
|
email: rockyb@rubyforge.net
|
34
34
|
executables: []
|
@@ -55,7 +55,7 @@ licenses:
|
|
55
55
|
post_install_message:
|
56
56
|
rdoc_options:
|
57
57
|
- --title
|
58
|
-
- require_relative 0.0.
|
58
|
+
- require_relative 0.0.7 Documentation
|
59
59
|
require_paths:
|
60
60
|
- lib
|
61
61
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -84,6 +84,6 @@ rubyforge_project:
|
|
84
84
|
rubygems_version: 1.5.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 3
|
87
|
-
summary: Ruby 1.9's require_relative for Rubinius and MRI 1.8. We also add abs_path which is like __FILE__ but __FILE__ can be fooled by a sneaky "chdir" while abs_path can't. If you are running on Ruby 1.9
|
87
|
+
summary: Ruby 1.9's require_relative for Rubinius and MRI 1.8. We also add abs_path which is like __FILE__ but __FILE__ can be fooled by a sneaky "chdir" while abs_path can't. If you are running on Ruby 1.9 or greater, require_relative is the pre-defined version. The benefit we provide in this situation by this package is the ability to write the same require_relative sequence in Rubinius 1.8 and Ruby 1.9.
|
88
88
|
test_files: []
|
89
89
|
|