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 CHANGED
@@ -1,3 +1,10 @@
1
+ 0.0.7 (02-26-12)
2
+ Fix up MRI/REE 1.8.7 mess up.
3
+
4
+ 0.0.6 (02-22-12)
5
+
6
+ Allow Ruby 1.9.3
7
+
1
8
  0.0.5 (06-12-11) Fleetwood release
2
9
 
3
10
  Allow this to work on Ruby MRI 1.8 and 1.9. On 1.9 we don't do
data/Rakefile CHANGED
@@ -31,7 +31,11 @@ def gemspec
31
31
  end
32
32
 
33
33
  def gem_file
34
- "#{gemspec.name}-#{gemspec.version}-#{gemspec.platform.to_s}.gem"
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
 
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module RequireRelative
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -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: 21
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
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: 2011-06-11 00:00:00 -04:00
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.2, require_relative is the pre-defined
29
- version. The benefit we provide in this situation by this package is
30
- the ability to write the same require_relative sequence in Rubinius
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.5 Documentation
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.2, 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.
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