rbx-require-relative 0.0.5 → 0.0.6

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,12 +31,7 @@ def gemspec
31
31
  end
32
32
 
33
33
  def gem_file
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
34
+ "#{gemspec.name}-#{gemspec.version}-#{gemspec.platform.to_s}.gem"
40
35
  end
41
36
 
42
37
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RequireRelative
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
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,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbx-require-relative
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 5
10
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
11
10
  platform: ruby
12
11
  authors:
13
12
  - R. Bernstein
@@ -15,20 +14,32 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-06-11 00:00:00 -04:00
17
+ date: 2012-02-23 00:00:00 -05:00
19
18
  default_executable:
20
- dependencies: []
21
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rb-threadframe
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :runtime
32
+ version_requirements: *id001
22
33
  description: |
23
34
  Ruby 1.9's require_relative for Rubinius and MRI 1.8.
24
35
 
25
36
  We also add abs_path which is like __FILE__ but __FILE__ can be fooled
26
37
  by a sneaky "chdir" while abs_path can't.
27
38
 
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.
39
+ If you are running on Ruby 1.9 or greater, require_relative is the
40
+ pre-defined version. The benefit we provide in this situation by this
41
+ package is the ability to write the same require_relative sequence in
42
+ Rubinius 1.8 and Ruby 1.9.
32
43
 
33
44
  email: rockyb@rubyforge.net
34
45
  executables: []
@@ -46,8 +57,8 @@ files:
46
57
  - lib/version.rb
47
58
  - lib/require_relative.rb
48
59
  - test/test-rr.rb
49
- - test/foo.rb
50
60
  - test/bar.rb
61
+ - test/foo.rb
51
62
  has_rdoc: true
52
63
  homepage: http://github.com/rocky/rbx-require-relative
53
64
  licenses:
@@ -55,7 +66,7 @@ licenses:
55
66
  post_install_message:
56
67
  rdoc_options:
57
68
  - --title
58
- - require_relative 0.0.5 Documentation
69
+ - require_relative 0.0.6 Documentation
59
70
  require_paths:
60
71
  - lib
61
72
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -63,27 +74,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
74
  requirements:
64
75
  - - ~>
65
76
  - !ruby/object:Gem::Version
66
- hash: 57
67
77
  segments:
68
78
  - 1
69
- - 8
70
- - 7
71
- version: 1.8.7
79
+ - 9
80
+ - 2
81
+ version: 1.9.2
72
82
  required_rubygems_version: !ruby/object:Gem::Requirement
73
83
  none: false
74
84
  requirements:
75
85
  - - ">="
76
86
  - !ruby/object:Gem::Version
77
- hash: 3
78
87
  segments:
79
88
  - 0
80
89
  version: "0"
81
90
  requirements: []
82
91
 
83
92
  rubyforge_project:
84
- rubygems_version: 1.6.1
93
+ rubygems_version: 1.3.7
85
94
  signing_key:
86
95
  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.
96
+ 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
97
  test_files: []
89
98