irb 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -11
  3. data/Rakefile +10 -0
  4. data/irb.gemspec +1 -1
  5. data/lib/irb/cmd/nop.rb +1 -1
  6. data/lib/irb/color.rb +2 -2
  7. data/lib/irb/command/backtrace.rb +2 -6
  8. data/lib/irb/command/base.rb +7 -9
  9. data/lib/irb/command/break.rb +2 -6
  10. data/lib/irb/command/catch.rb +2 -6
  11. data/lib/irb/command/chws.rb +11 -5
  12. data/lib/irb/command/context.rb +16 -0
  13. data/lib/irb/command/continue.rb +2 -2
  14. data/lib/irb/command/debug.rb +8 -1
  15. data/lib/irb/command/delete.rb +2 -2
  16. data/lib/irb/command/disable_irb.rb +19 -0
  17. data/lib/irb/command/edit.rb +6 -13
  18. data/lib/irb/command/exit.rb +1 -3
  19. data/lib/irb/command/finish.rb +2 -2
  20. data/lib/irb/command/force_exit.rb +1 -3
  21. data/lib/irb/command/help.rb +8 -17
  22. data/lib/irb/command/history.rb +4 -6
  23. data/lib/irb/command/info.rb +2 -6
  24. data/lib/irb/command/internal_helpers.rb +27 -0
  25. data/lib/irb/command/irb_info.rb +2 -2
  26. data/lib/irb/command/load.rb +20 -3
  27. data/lib/irb/command/ls.rb +20 -10
  28. data/lib/irb/command/measure.rb +12 -6
  29. data/lib/irb/command/next.rb +2 -2
  30. data/lib/irb/command/pushws.rb +10 -5
  31. data/lib/irb/command/show_doc.rb +9 -18
  32. data/lib/irb/command/show_source.rb +5 -12
  33. data/lib/irb/command/step.rb +2 -2
  34. data/lib/irb/command/subirb.rb +28 -12
  35. data/lib/irb/command/whereami.rb +1 -1
  36. data/lib/irb/command.rb +8 -303
  37. data/lib/irb/completion.rb +16 -5
  38. data/lib/irb/context.rb +21 -19
  39. data/lib/irb/default_commands.rb +260 -0
  40. data/lib/irb/ext/change-ws.rb +3 -5
  41. data/lib/irb/ext/multi-irb.rb +4 -4
  42. data/lib/irb/ext/workspaces.rb +3 -4
  43. data/lib/irb/help.rb +1 -1
  44. data/lib/irb/helper_method/base.rb +16 -0
  45. data/lib/irb/helper_method/conf.rb +11 -0
  46. data/lib/irb/helper_method.rb +29 -0
  47. data/lib/irb/history.rb +6 -3
  48. data/lib/irb/init.rb +60 -44
  49. data/lib/irb/input-method.rb +18 -10
  50. data/lib/irb/lc/error.rb +0 -5
  51. data/lib/irb/lc/ja/error.rb +0 -5
  52. data/lib/irb/lc/ja/help-message +10 -0
  53. data/lib/irb/statement.rb +5 -27
  54. data/lib/irb/version.rb +2 -2
  55. data/lib/irb/workspace.rb +18 -2
  56. data/lib/irb.rb +675 -624
  57. metadata +12 -5
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.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aycabta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-03-07 00:00:00.000000000 Z
12
+ date: 2024-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: reline
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '0'
34
+ version: 4.0.0
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '0'
41
+ version: 4.0.0
42
42
  description: Interactive Ruby command-line tool for REPL (Read Eval Print Loop).
43
43
  email:
44
44
  - aycabta@gmail.com
@@ -69,9 +69,11 @@ files:
69
69
  - lib/irb/command/break.rb
70
70
  - lib/irb/command/catch.rb
71
71
  - lib/irb/command/chws.rb
72
+ - lib/irb/command/context.rb
72
73
  - lib/irb/command/continue.rb
73
74
  - lib/irb/command/debug.rb
74
75
  - lib/irb/command/delete.rb
76
+ - lib/irb/command/disable_irb.rb
75
77
  - lib/irb/command/edit.rb
76
78
  - lib/irb/command/exit.rb
77
79
  - lib/irb/command/finish.rb
@@ -79,6 +81,7 @@ files:
79
81
  - lib/irb/command/help.rb
80
82
  - lib/irb/command/history.rb
81
83
  - lib/irb/command/info.rb
84
+ - lib/irb/command/internal_helpers.rb
82
85
  - lib/irb/command/irb_info.rb
83
86
  - lib/irb/command/load.rb
84
87
  - lib/irb/command/ls.rb
@@ -94,6 +97,7 @@ files:
94
97
  - lib/irb/context.rb
95
98
  - lib/irb/debug.rb
96
99
  - lib/irb/debug/ui.rb
100
+ - lib/irb/default_commands.rb
97
101
  - lib/irb/easter-egg.rb
98
102
  - lib/irb/ext/change-ws.rb
99
103
  - lib/irb/ext/eval_history.rb
@@ -104,6 +108,9 @@ files:
104
108
  - lib/irb/ext/workspaces.rb
105
109
  - lib/irb/frame.rb
106
110
  - lib/irb/help.rb
111
+ - lib/irb/helper_method.rb
112
+ - lib/irb/helper_method/base.rb
113
+ - lib/irb/helper_method/conf.rb
107
114
  - lib/irb/history.rb
108
115
  - lib/irb/init.rb
109
116
  - lib/irb/input-method.rb
@@ -150,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
157
  - !ruby/object:Gem::Version
151
158
  version: '0'
152
159
  requirements: []
153
- rubygems_version: 3.5.1
160
+ rubygems_version: 3.5.7
154
161
  signing_key:
155
162
  specification_version: 4
156
163
  summary: Interactive Ruby command-line tool for REPL (Read Eval Print Loop).