rib 1.6.1 → 1.6.2
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.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +6 -6
- data/CHANGES.md +6 -0
- data/README.md +4 -4
- data/lib/rib/all.rb +1 -0
- data/lib/rib/api.rb +1 -0
- data/lib/rib/app/auto.rb +1 -0
- data/lib/rib/app/rack.rb +1 -0
- data/lib/rib/app/rails.rb +1 -0
- data/lib/rib/config.rb +1 -0
- data/lib/rib/core/completion.rb +1 -0
- data/lib/rib/core/history.rb +1 -0
- data/lib/rib/core/last_value.rb +1 -0
- data/lib/rib/core/multiline.rb +7 -1
- data/lib/rib/core/readline.rb +1 -0
- data/lib/rib/core/squeeze_history.rb +1 -0
- data/lib/rib/core/strip_backtrace.rb +1 -0
- data/lib/rib/core.rb +1 -0
- data/lib/rib/debug.rb +1 -0
- data/lib/rib/extra/autoindent.rb +1 -0
- data/lib/rib/extra/byebug.rb +1 -0
- data/lib/rib/extra/hirb.rb +1 -0
- data/lib/rib/extra/paging.rb +1 -0
- data/lib/rib/extra/spring.rb +1 -0
- data/lib/rib/more/anchor.rb +1 -0
- data/lib/rib/more/beep.rb +1 -0
- data/lib/rib/more/bottomup_backtrace.rb +1 -0
- data/lib/rib/more/caller.rb +1 -0
- data/lib/rib/more/color.rb +2 -1
- data/lib/rib/more/edit.rb +1 -0
- data/lib/rib/more/multiline_history.rb +1 -0
- data/lib/rib/more/multiline_history_file.rb +1 -0
- data/lib/rib/more.rb +1 -0
- data/lib/rib/plugin.rb +1 -0
- data/lib/rib/runner.rb +1 -0
- data/lib/rib/shell.rb +1 -0
- data/lib/rib/test/history.rb +1 -0
- data/lib/rib/test/multiline.rb +1 -7
- data/lib/rib/test.rb +1 -0
- data/lib/rib/version.rb +2 -1
- data/lib/rib.rb +1 -0
- data/rib.gemspec +4 -4
- data/task/README.md +3 -3
- data/test/more/test_color.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e15cbe824c0b6ff3bb2d775a76d1265a5629efc0f27ba32c68c1c0fc8dec2823
|
|
4
|
+
data.tar.gz: 9817d441536e7e10018699f064a1e75d5f9debf11a556ede8fc6b4b8ca4b93a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bfa2b9646cfaf5c33e62c2106c11c966d8dfd8921339c29fba6e83c5bbcfd9b3ed3e3a5151f3e442b87cc18c5d55fb24f8739a5f51e54bd21aea62ae7c8a29a
|
|
7
|
+
data.tar.gz: f464497efab48ecd2a02c36770adab22da186bb9d300814062aee1532f6884d7e4b290f4d8cdb8d8350d7d6bc4adc7ffaae0497ab2f3e1d2be4149db2625c9ad
|
data/.gitlab-ci.yml
CHANGED
|
@@ -16,23 +16,23 @@ stages:
|
|
|
16
16
|
script:
|
|
17
17
|
- ruby -vr bundler/setup -S rake test
|
|
18
18
|
|
|
19
|
-
ruby:3.
|
|
19
|
+
ruby:3.2:
|
|
20
20
|
extends:
|
|
21
21
|
- .test
|
|
22
22
|
variables:
|
|
23
|
-
RUBY_VERSION: '3.
|
|
23
|
+
RUBY_VERSION: '3.2'
|
|
24
24
|
|
|
25
|
-
ruby:3.
|
|
25
|
+
ruby:3.3:
|
|
26
26
|
extends:
|
|
27
27
|
- .test
|
|
28
28
|
variables:
|
|
29
|
-
RUBY_VERSION: '3.
|
|
29
|
+
RUBY_VERSION: '3.3'
|
|
30
30
|
|
|
31
|
-
ruby:3.
|
|
31
|
+
ruby:3.4:
|
|
32
32
|
extends:
|
|
33
33
|
- .test
|
|
34
34
|
variables:
|
|
35
|
-
RUBY_VERSION: '3.
|
|
35
|
+
RUBY_VERSION: '3.4'
|
|
36
36
|
|
|
37
37
|
jruby:latest:
|
|
38
38
|
extends:
|
data/CHANGES.md
CHANGED
data/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Rib [](https://gitlab.com/godfat/rib/-/pipelines)
|
|
2
2
|
|
|
3
|
-
by Lin Jen-Shin ([godfat](
|
|
3
|
+
by Lin Jen-Shin ([godfat](https://godfat.org))
|
|
4
4
|
|
|
5
5
|
## LINKS:
|
|
6
6
|
|
|
7
7
|
* [github](https://github.com/godfat/rib)
|
|
8
8
|
* [rubygems](https://rubygems.org/gems/rib)
|
|
9
|
-
* [rdoc](
|
|
9
|
+
* [rdoc](https://rubydoc.info/github/godfat/rib)
|
|
10
10
|
* [issues](https://github.com/godfat/rib/issues) (feel free to ask for support)
|
|
11
11
|
|
|
12
12
|
## DESCRIPTION:
|
|
@@ -479,13 +479,13 @@ simple, simpler than rib-rails.
|
|
|
479
479
|
|
|
480
480
|
Apache License 2.0 (Apache-2.0)
|
|
481
481
|
|
|
482
|
-
Copyright (c) 2011-
|
|
482
|
+
Copyright (c) 2011-2026, Lin Jen-Shin (godfat)
|
|
483
483
|
|
|
484
484
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
485
485
|
you may not use this file except in compliance with the License.
|
|
486
486
|
You may obtain a copy of the License at
|
|
487
487
|
|
|
488
|
-
<
|
|
488
|
+
<https://www.apache.org/licenses/LICENSE-2.0>
|
|
489
489
|
|
|
490
490
|
Unless required by applicable law or agreed to in writing, software
|
|
491
491
|
distributed under the License is distributed on an "AS IS" BASIS,
|
data/lib/rib/all.rb
CHANGED
data/lib/rib/api.rb
CHANGED
data/lib/rib/app/auto.rb
CHANGED
data/lib/rib/app/rack.rb
CHANGED
data/lib/rib/app/rails.rb
CHANGED
data/lib/rib/config.rb
CHANGED
data/lib/rib/core/completion.rb
CHANGED
data/lib/rib/core/history.rb
CHANGED
data/lib/rib/core/last_value.rb
CHANGED
data/lib/rib/core/multiline.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
|
|
2
3
|
require 'rib'
|
|
3
4
|
|
|
@@ -21,6 +22,7 @@ module Rib; module Multiline
|
|
|
21
22
|
# ruby -e 'class C'
|
|
22
23
|
# ruby -e 'def f'
|
|
23
24
|
# ruby -e 'begin'
|
|
25
|
+
# ruby -e 'case 1'
|
|
24
26
|
# ruby -e 'eval "1+1.to_i +"'
|
|
25
27
|
# ruby -e 'eval "1+1.to_i -"'
|
|
26
28
|
# ruby -e 'eval "1+1.to_i *"'
|
|
@@ -38,8 +40,12 @@ module Rib; module Multiline
|
|
|
38
40
|
# mri and rubinius
|
|
39
41
|
"unexpected (#{BINARY_OP.join('|')}), expecting \\$end",
|
|
40
42
|
"syntax error, unexpected \\$end" ,
|
|
43
|
+
# prism
|
|
44
|
+
"expected an? `.+?` to close the",
|
|
45
|
+
"expected a matching `\\)`",
|
|
46
|
+
# ruby 2.0 and prism
|
|
47
|
+
"unexpected end-of-input",
|
|
41
48
|
# ruby 2.0
|
|
42
|
-
"syntax error, unexpected end-of-input",
|
|
43
49
|
"syntax error, unexpected (#{RUBY20_IO.join('|')}),"
|
|
44
50
|
].join('|'))
|
|
45
51
|
when 'rbx' ; Regexp.new(
|
data/lib/rib/core/readline.rb
CHANGED
data/lib/rib/core.rb
CHANGED
data/lib/rib/debug.rb
CHANGED
data/lib/rib/extra/autoindent.rb
CHANGED
data/lib/rib/extra/byebug.rb
CHANGED
data/lib/rib/extra/hirb.rb
CHANGED
data/lib/rib/extra/paging.rb
CHANGED
data/lib/rib/extra/spring.rb
CHANGED
data/lib/rib/more/anchor.rb
CHANGED
data/lib/rib/more/beep.rb
CHANGED
data/lib/rib/more/caller.rb
CHANGED
data/lib/rib/more/color.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
|
|
2
3
|
require 'rib'
|
|
3
4
|
|
|
@@ -91,7 +92,7 @@ module Rib; module Color
|
|
|
91
92
|
msg = msgs.sub(/(\d+)(:?)/) do
|
|
92
93
|
m = Regexp.last_match
|
|
93
94
|
"#{red{m[1]}}#{m[2]}"
|
|
94
|
-
end.sub(
|
|
95
|
+
end.sub(/(?:`|').+?'/){green{Regexp.last_match[0]}}
|
|
95
96
|
|
|
96
97
|
"#{dir+sep}#{yellow{file}}:#{msg}"
|
|
97
98
|
}
|
data/lib/rib/more/edit.rb
CHANGED
data/lib/rib/more.rb
CHANGED
data/lib/rib/plugin.rb
CHANGED
data/lib/rib/runner.rb
CHANGED
data/lib/rib/shell.rb
CHANGED
data/lib/rib/test/history.rb
CHANGED
data/lib/rib/test/multiline.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
|
|
2
3
|
copy :setup_multiline do
|
|
3
4
|
def setup_input str
|
|
@@ -156,13 +157,6 @@ copy :multiline do
|
|
|
156
157
|
RUBY
|
|
157
158
|
end
|
|
158
159
|
|
|
159
|
-
would 'begin with SyntaxError' do
|
|
160
|
-
check <<~RUBY, SyntaxError
|
|
161
|
-
begin
|
|
162
|
-
s-y n
|
|
163
|
-
RUBY
|
|
164
|
-
end
|
|
165
|
-
|
|
166
160
|
would 'binary operator +' do
|
|
167
161
|
check <<~RUBY
|
|
168
162
|
1/1.to_i +
|
data/lib/rib/test.rb
CHANGED
data/lib/rib/version.rb
CHANGED
data/lib/rib.rb
CHANGED
data/rib.gemspec
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: rib 1.6.
|
|
2
|
+
# stub: rib 1.6.2 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "rib".freeze
|
|
6
|
-
s.version = "1.6.
|
|
6
|
+
s.version = "1.6.2".freeze
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib".freeze]
|
|
10
10
|
s.authors = ["Lin Jen-Shin (godfat)".freeze]
|
|
11
|
-
s.date = "
|
|
11
|
+
s.date = "2026-01-19"
|
|
12
12
|
s.description = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell\n\nRib is based on the design of [ripl][] and the work of [ripl-rc][], some of\nthe features are also inspired by [pry][]. The aim of Rib is to be fully\nfeatured and yet very easy to opt-out or opt-in other features. It shall\nbe simple, lightweight and modular so that everyone could customize Rib.\n\n[ripl]: https://github.com/cldwalker/ripl\n[ripl-rc]: https://github.com/godfat/ripl-rc\n[pry]: https://github.com/pry/pry".freeze
|
|
13
13
|
s.email = ["godfat (XD) godfat.org".freeze]
|
|
14
14
|
s.executables = [
|
|
@@ -93,7 +93,7 @@ Gem::Specification.new do |s|
|
|
|
93
93
|
"test/test_shell.rb".freeze]
|
|
94
94
|
s.homepage = "https://github.com/godfat/rib".freeze
|
|
95
95
|
s.licenses = ["Apache-2.0".freeze]
|
|
96
|
-
s.rubygems_version = "
|
|
96
|
+
s.rubygems_version = "4.0.4".freeze
|
|
97
97
|
s.summary = "Ruby-Interactive-ruBy -- Yet another interactive Ruby shell".freeze
|
|
98
98
|
s.test_files = [
|
|
99
99
|
"test/core/test_completion.rb".freeze,
|
data/task/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Provided tasks:
|
|
|
17
17
|
|
|
18
18
|
## INSTALLATION:
|
|
19
19
|
|
|
20
|
-
git submodule add
|
|
20
|
+
git submodule add https://github.com/godfat/gemgem.git task
|
|
21
21
|
|
|
22
22
|
And in Rakefile:
|
|
23
23
|
|
|
@@ -39,13 +39,13 @@ end
|
|
|
39
39
|
|
|
40
40
|
Apache License 2.0 (Apache-2.0)
|
|
41
41
|
|
|
42
|
-
Copyright (c) 2011-
|
|
42
|
+
Copyright (c) 2011-2023, Lin Jen-Shin (godfat)
|
|
43
43
|
|
|
44
44
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
45
|
you may not use this file except in compliance with the License.
|
|
46
46
|
You may obtain a copy of the License at
|
|
47
47
|
|
|
48
|
-
<
|
|
48
|
+
<https://www.apache.org/licenses/LICENSE-2.0>
|
|
49
49
|
|
|
50
50
|
Unless required by applicable law or agreed to in writing, software
|
|
51
51
|
distributed under the License is distributed on an "AS IS" BASIS,
|
data/test/more/test_color.rb
CHANGED
|
@@ -54,7 +54,7 @@ describe Rib::Color do
|
|
|
54
54
|
"#{Rib::Color.red{line}}:in #{Rib::Color.green}"
|
|
55
55
|
Rib::Color.colorize_backtrace(e.backtrace).first.should =~ \
|
|
56
56
|
Regexp.new(
|
|
57
|
-
"#{Regexp.escape(msg)}
|
|
57
|
+
"#{Regexp.escape(msg)}(?:`|').+'#{Regexp.escape(Rib::Color.reset)}")
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lin Jen-Shin (godfat)
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-01-19 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: |-
|
|
14
13
|
Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
|
|
@@ -109,7 +108,6 @@ homepage: https://github.com/godfat/rib
|
|
|
109
108
|
licenses:
|
|
110
109
|
- Apache-2.0
|
|
111
110
|
metadata: {}
|
|
112
|
-
post_install_message:
|
|
113
111
|
rdoc_options: []
|
|
114
112
|
require_paths:
|
|
115
113
|
- lib
|
|
@@ -124,8 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
124
122
|
- !ruby/object:Gem::Version
|
|
125
123
|
version: '0'
|
|
126
124
|
requirements: []
|
|
127
|
-
rubygems_version:
|
|
128
|
-
signing_key:
|
|
125
|
+
rubygems_version: 4.0.4
|
|
129
126
|
specification_version: 4
|
|
130
127
|
summary: Ruby-Interactive-ruBy -- Yet another interactive Ruby shell
|
|
131
128
|
test_files:
|