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

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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,42 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rbx-require-relative
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 5
9
- version: 0.0.5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
5
+ prerelease:
10
6
  platform: universal-ruby-1.9.2
11
- authors:
7
+ authors:
12
8
  - R. Bernstein
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-06-11 00:00:00 -04:00
18
- default_executable:
19
- dependencies: []
20
-
21
- description: |
22
- Ruby 1.9's require_relative for Rubinius and MRI 1.8.
23
-
24
- We also add abs_path which is like __FILE__ but __FILE__ can be fooled
25
- by a sneaky "chdir" while abs_path can't.
26
-
27
- If you are running on Ruby 1.9.2, require_relative is the pre-defined
28
- version. The benefit we provide in this situation by this package is
29
- the ability to write the same require_relative sequence in Rubinius
30
- 1.8 and Ruby 1.9.
31
-
12
+ date: 2012-02-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rb-threadframe
16
+ requirement: &72520240 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *72520240
25
+ description: ! "Ruby 1.9's require_relative for Rubinius and MRI 1.8. \n\nWe also
26
+ add abs_path which is like __FILE__ but __FILE__ can be fooled\nby a sneaky \"chdir\"
27
+ while abs_path can't. \n\nIf you are running on Ruby 1.9 or greater, require_relative
28
+ is the\npre-defined version. The benefit we provide in this situation by this\npackage
29
+ is the ability to write the same require_relative sequence in\nRubinius 1.8 and
30
+ Ruby 1.9.\n"
32
31
  email: rockyb@rubyforge.net
33
32
  executables: []
34
-
35
33
  extensions: []
36
-
37
34
  extra_rdoc_files: []
38
-
39
- files:
35
+ files:
40
36
  - LICENSE
41
37
  - ChangeLog
42
38
  - NEWS
@@ -47,40 +43,35 @@ files:
47
43
  - test/test-rr.rb
48
44
  - test/foo.rb
49
45
  - test/bar.rb
50
- has_rdoc: true
51
46
  homepage: http://github.com/rocky/rbx-require-relative
52
- licenses:
47
+ licenses:
53
48
  - MIT
54
49
  post_install_message:
55
- rdoc_options:
50
+ rdoc_options:
56
51
  - --title
57
- - require_relative 0.0.5 Documentation
58
- require_paths:
52
+ - require_relative 0.0.6 Documentation
53
+ require_paths:
59
54
  - lib
60
- required_ruby_version: !ruby/object:Gem::Requirement
55
+ required_ruby_version: !ruby/object:Gem::Requirement
61
56
  none: false
62
- requirements:
57
+ requirements:
63
58
  - - ~>
64
- - !ruby/object:Gem::Version
65
- segments:
66
- - 1
67
- - 9
68
- - 2
59
+ - !ruby/object:Gem::Version
69
60
  version: 1.9.2
70
- required_rubygems_version: !ruby/object:Gem::Requirement
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
62
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- segments:
76
- - 0
77
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
78
67
  requirements: []
79
-
80
68
  rubyforge_project:
81
- rubygems_version: 1.3.7
69
+ rubygems_version: 1.8.6
82
70
  signing_key:
83
71
  specification_version: 3
84
- 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.
72
+ summary: Ruby 1.9's require_relative for Rubinius and MRI 1.8. We also add abs_path
73
+ which is like __FILE__ but __FILE__ can be fooled by a sneaky "chdir" while abs_path
74
+ can't. If you are running on Ruby 1.9 or greater, require_relative is the pre-defined
75
+ version. The benefit we provide in this situation by this package is the ability
76
+ to write the same require_relative sequence in Rubinius 1.8 and Ruby 1.9.
85
77
  test_files: []
86
-