irb 1.3.8.pre.3 → 1.3.8.pre.4
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/Gemfile +1 -3
- data/Rakefile +10 -1
- data/irb.gemspec +1 -1
- data/lib/irb/input-method.rb +5 -3
- data/lib/irb/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1373231cc70b1b86ba8a0fc990fb45c4d2790914f27c1055ccf034e555aea55c
|
4
|
+
data.tar.gz: 7451c4a722684f4d265d9fc7dc408b765dba980fb169a0f72a9aa469df1ce9ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 766139b77dd400d4df26e471587f82b8e37c98aa75ef8701cb0c89a4b81c081ece91bc8fcb7bc9a1ad6ced8d1d249ed688089878824b90383f3a07cf09aa12cc
|
7
|
+
data.tar.gz: eb003c7fcf1f5801f6da77f8535122d4f881d2f85abd0ee7c226f937ab84b3a24a8a8f21864696dfdcbe3d29d491b444a3cb67524192d3202e747f63bf6652f8
|
data/Gemfile
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
4
|
-
|
5
3
|
gemspec
|
6
4
|
|
7
5
|
group :development do
|
8
|
-
gem "bundler"
|
9
6
|
is_unix = RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
|
10
7
|
is_truffleruby = RUBY_DESCRIPTION =~ /truffleruby/
|
11
8
|
gem 'vterm', '>= 0.0.5' if is_unix && ENV['WITH_VTERM']
|
12
9
|
gem 'yamatanooroti', '>= 0.0.6'
|
13
10
|
gem "rake"
|
14
11
|
gem "stackprof" if is_unix && !is_truffleruby
|
12
|
+
gem "test-unit"
|
15
13
|
end
|
data/Rakefile
CHANGED
@@ -4,14 +4,23 @@ require "rake/testtask"
|
|
4
4
|
Rake::TestTask.new(:test) do |t|
|
5
5
|
t.libs << "test" << "test/lib"
|
6
6
|
t.libs << "lib"
|
7
|
+
t.ruby_opts << "-rhelper"
|
7
8
|
t.test_files = FileList["test/irb/test_*.rb"]
|
8
9
|
end
|
9
10
|
|
10
11
|
Rake::TestTask.new(:test_yamatanooroti) do |t|
|
11
|
-
t.libs << 'test'
|
12
|
+
t.libs << 'test' << "test/lib"
|
12
13
|
t.libs << 'lib'
|
13
14
|
#t.loader = :direct
|
15
|
+
t.ruby_opts << "-rhelper"
|
14
16
|
t.pattern = 'test/irb/yamatanooroti/test_*.rb'
|
15
17
|
end
|
16
18
|
|
19
|
+
task :sync_tool do
|
20
|
+
require 'fileutils'
|
21
|
+
FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
|
22
|
+
FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
|
23
|
+
FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
|
24
|
+
end
|
25
|
+
|
17
26
|
task :default => :test
|
data/irb.gemspec
CHANGED
data/lib/irb/input-method.rb
CHANGED
@@ -322,8 +322,8 @@ module IRB
|
|
322
322
|
if just_cursor_moving and completion_journey_data.nil?
|
323
323
|
return nil
|
324
324
|
end
|
325
|
-
cursor_pos_to_render, result, pointer = context.pop(
|
326
|
-
return nil if result.nil? or pointer.nil?
|
325
|
+
cursor_pos_to_render, result, pointer, dialog = context.pop(4)
|
326
|
+
return nil if result.nil? or pointer.nil? or pointer < 0
|
327
327
|
name = result[pointer]
|
328
328
|
name = IRB::InputCompletor.retrieve_completion_data(name, doc_namespace: true)
|
329
329
|
|
@@ -359,7 +359,9 @@ module IRB
|
|
359
359
|
formatter.width = 40
|
360
360
|
str = doc.accept(formatter)
|
361
361
|
|
362
|
-
|
362
|
+
x = cursor_pos_to_render.x + 40
|
363
|
+
y = cursor_pos_to_render.y + pointer - dialog.scroll_top
|
364
|
+
DialogRenderInfo.new(pos: Reline::CursorPos.new(x, y), contents: str.split("\n"), bg_color: '49')
|
363
365
|
}
|
364
366
|
|
365
367
|
# Reads the next line from this input method.
|
data/lib/irb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.8.pre.
|
4
|
+
version: 1.3.8.pre.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keiju ISHITSUKA
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.2.8.pre.
|
19
|
+
version: 0.2.8.pre.4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.2.8.pre.
|
26
|
+
version: 0.2.8.pre.4
|
27
27
|
description: Interactive Ruby command-line tool for REPL (Read Eval Print Loop).
|
28
28
|
email:
|
29
29
|
- keiju@ruby-lang.org
|