rbx-require-relative 0.0.5-universal-ruby-1.8.7 → 0.0.6-universal-ruby-1.8.7

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.
data/NEWS CHANGED
@@ -1,3 +1,7 @@
1
+ 0.0.6 (02-22-12)
2
+
3
+ Allow Ruby 1.9.3
4
+
1
5
  0.0.5 (06-12-11) Fleetwood release
2
6
 
3
7
  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,12 @@ def gemspec
31
31
  end
32
32
 
33
33
  def gem_file
34
- "#{gemspec.name}-#{gemspec.version}-#{gemspec.platform.to_s}.gem"
34
+ if (RUBY_VERSION.start_with?('1.8') &&
35
+ RUBY_COPYRIGHT.end_with?('Yukihiro Matsumoto'))
36
+ "#{gemspec.name}-#{gemspec.version}.gem"
37
+ else
38
+ "#{gemspec.name}-#{gemspec.version}-#{gemspec.platform.to_s}.gem"
39
+ end
35
40
  end
36
41
 
37
42
 
@@ -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.6'
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: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: universal-ruby-1.8.7
12
12
  authors:
13
13
  - R. Bernstein
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-11 00:00:00 -04:00
19
- default_executable:
18
+ date: 2012-02-22 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: |
@@ -25,10 +24,10 @@ description: |
25
24
  We also add abs_path which is like __FILE__ but __FILE__ can be fooled
26
25
  by a sneaky "chdir" while abs_path can't.
27
26
 
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.
27
+ If you are running on Ruby 1.9 or greater, require_relative is the
28
+ pre-defined version. The benefit we provide in this situation by this
29
+ package is the ability to write the same require_relative sequence in
30
+ Rubinius 1.8 and Ruby 1.9.
32
31
 
33
32
  email: rockyb@rubyforge.net
34
33
  executables: []
@@ -48,14 +47,13 @@ files:
48
47
  - test/test-rr.rb
49
48
  - test/foo.rb
50
49
  - test/bar.rb
51
- has_rdoc: true
52
50
  homepage: http://github.com/rocky/rbx-require-relative
53
51
  licenses:
54
52
  - MIT
55
53
  post_install_message:
56
54
  rdoc_options:
57
55
  - --title
58
- - require_relative 0.0.5 Documentation
56
+ - require_relative 0.0.6 Documentation
59
57
  require_paths:
60
58
  - lib
61
59
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -81,9 +79,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
79
  requirements: []
82
80
 
83
81
  rubyforge_project:
84
- rubygems_version: 1.6.1
82
+ rubygems_version: 1.8.6
85
83
  signing_key:
86
84
  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.
85
+ 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
86
  test_files: []
89
87