Skip to content

Commit 917462a

Browse files
committed
Stub ripper
1 parent bc670fc commit 917462a

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Changes:
2525
* The `-X` option now works as in MRI.
2626
* `--help:debug` is now `--help:internal`.
2727
* `--jvm.` and `--native.` have been deprecated, use `--vm.` instead to pass VM options.
28+
* `ripper` is still not implemented, but the module now exists and has some
29+
methods that are implemented as no-ops.
2830

2931
# 1.0 RC 13
3032

doc/user/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The following standard libraries are unsupported.
6666
* `io/console` (partially implemented, could be implemented in the future)
6767
* `io/wait` (partially implemented, could be implemented in the future)
6868
* `pty` (could be implemented in the future)
69-
* `ripper` (could be implemented in the future)
69+
* `ripper` (has a no-op implementation, and could be implemented in the future)
7070
* `shell` (could be implemented in the future) <!-- TODO CS 26 Feb 19 probably due to simple bug -->
7171
* `win32`
7272
* `win32ole`

lib/truffle/ripper.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved. This
2+
# code is released under a tri EPL/GPL/LGPL license. You can use it,
3+
# redistribute it and/or modify it under the terms of the:
4+
#
5+
# Eclipse Public License version 1.0, or
6+
# GNU General Public License version 2, or
7+
# GNU Lesser General Public License version 2.1.
8+
9+
# This is a no-op implementation of Ripper
10+
11+
class Ripper
12+
13+
class Filter
14+
15+
def initialize(src, filename='-', lineno=1)
16+
end
17+
18+
def parse(init=nil)
19+
[]
20+
end
21+
22+
end
23+
24+
end

spec/tags/truffle/launcher_tags.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ slow:The launcher 'bundle' in `RbConfig::CONFIG['extra_bindirs'][1]` directory r
6868
slow:The launcher 'bundler' in `RbConfig::CONFIG['bindir']` directory runs when symlinked
6969
slow:The launcher 'bundler' in `RbConfig::CONFIG['extra_bindirs'][0]` directory runs when symlinked
7070
slow:The launcher 'bundler' in `RbConfig::CONFIG['extra_bindirs'][1]` directory runs when symlinked
71-
fails:The launcher 'rdoc' in `RbConfig::CONFIG['bindir']` directory runs
72-
fails:The launcher 'rdoc' in `RbConfig::CONFIG['bindir']` directory runs when symlinked
73-
fails:The launcher 'rdoc' in `RbConfig::CONFIG['extra_bindirs'][0]` directory runs
74-
fails:The launcher 'rdoc' in `RbConfig::CONFIG['extra_bindirs'][0]` directory runs when symlinked
75-
fails:The launcher 'rdoc' in `RbConfig::CONFIG['extra_bindirs'][1]` directory runs
76-
fails:The launcher 'rdoc' in `RbConfig::CONFIG['extra_bindirs'][1]` directory runs when symlinked
7771
slow:The launcher 'bundle' in `RbConfig::CONFIG['bindir']` directory runs
7872
slow:The launcher 'bundle' in `RbConfig::CONFIG['extra_bindirs'][0]` directory runs
7973
slow:The launcher 'bundle' in `RbConfig::CONFIG['extra_bindirs'][1]` directory runs
@@ -98,10 +92,13 @@ slow:The launcher 'ruby' in `RbConfig::CONFIG['extra_bindirs'][1]` directory run
9892
slow:The launcher 'truffleruby' in `RbConfig::CONFIG['bindir']` directory runs
9993
slow:The launcher 'truffleruby' in `RbConfig::CONFIG['extra_bindirs'][0]` directory runs
10094
slow:The launcher 'truffleruby' in `RbConfig::CONFIG['extra_bindirs'][1]` directory runs
101-
fails:The launcher 'rdoc' runs as an -S command
10295
slow:The launcher 'bundle' runs as an -S command
10396
slow:The launcher 'bundler' runs as an -S command
10497
slow:The launcher 'gem' runs as an -S command
10598
slow:The launcher 'irb' runs as an -S command
10699
slow:The launcher 'rake' runs as an -S command
107100
slow:The launcher 'ri' runs as an -S command
101+
slow:The launcher 'rdoc' runs as an -S command
102+
slow:The launcher 'rdoc' in `RbConfig::CONFIG['bindir']` directory runs
103+
slow:The launcher 'rdoc' in `RbConfig::CONFIG['extra_bindirs'][0]` directory runs
104+
slow:The launcher 'rdoc' in `RbConfig::CONFIG['extra_bindirs'][1]` directory runs

0 commit comments

Comments
 (0)