irb-remote 0.1.0 → 0.1.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/README.md +4 -3
- data/lib/irb-remote/cli.rb +1 -1
- data/lib/irb-remote/input_method.rb +1 -3
- data/lib/irb-remote/version.rb +1 -1
- metadata +2 -3
- data/.standard.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8a7dc04360a2b44fc7b60398729c95d8c6996bcb3f7b346c01cd22a9692f2d0
|
4
|
+
data.tar.gz: 741f49ad74b4c35124c2fb845d45d5ff78d331ebf932b53c8987af268db55206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2933f3e2f5c9c683a7fadc028c69a3636d51d06a088a69b7b0686f8c753ddd9aa6c9d0e4e7548c96cf1f5aadcbeee8ea48301c5f930a07205151533f872d4f64
|
7
|
+
data.tar.gz: 90d3df19ed60df3047199f8663d0dbd9d51b1b6050a7b6b3ee50e2f7d21d64c767a90a008436de8f3a02344ecb63774fdbcf453f044f2959b9e7d6cd38b68dfd
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# IrbRemote
|
2
|
-
Inspired by [pry-remote](https://github.com/Mon-Ouie/pry-remote) and [irb_remote](https://github.com/iguchi1124/irb_remote).
|
3
|
-
IrbRemote is a
|
2
|
+
Inspired by [pry-remote](https://github.com/Mon-Ouie/pry-remote) and [irb_remote](https://github.com/iguchi1124/irb_remote).
|
3
|
+
IrbRemote is a Gem that allows the Irb session of a remote process to be manipulated using the local process's Reline. It uses druby for inter-process communication.
|
4
|
+

|
4
5
|
|
5
6
|
## Caution
|
6
|
-
This gem is still in development and may not work as expected. Please use with caution.
|
7
|
+
This gem is still in development and may not work as expected. Please use it with caution.
|
7
8
|
|
8
9
|
## Installation
|
9
10
|
|
data/lib/irb-remote/cli.rb
CHANGED
@@ -22,7 +22,7 @@ module IrbRemote
|
|
22
22
|
puts "Connected to remote session on #{uri}"
|
23
23
|
IRB.setup(client.binding.source_location[0], argv: [])
|
24
24
|
client.thread = Thread.current
|
25
|
-
client.input_method = InputMethod.new(
|
25
|
+
client.input_method = InputMethod.new(client.binding)
|
26
26
|
client.output = $stdout
|
27
27
|
client.stderr = $stderr
|
28
28
|
sleep
|
@@ -4,10 +4,8 @@ require_relative 'completor'
|
|
4
4
|
|
5
5
|
module IrbRemote
|
6
6
|
class InputMethod < IRB::RelineInputMethod
|
7
|
-
def initialize(
|
7
|
+
def initialize(binding)
|
8
8
|
super(IrbRemote::Completor.new)
|
9
|
-
@stdin = stdin
|
10
|
-
@stdout = stdout
|
11
9
|
@binding = binding
|
12
10
|
Reline.completion_proc = lambda { |target, preposing, postposing|
|
13
11
|
@completion_params = [preposing, target, postposing, @binding]
|
data/lib/irb-remote/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irb-remote
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- qwyng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Connect to IRB remotely using DRb
|
14
14
|
email:
|
@@ -20,7 +20,6 @@ extra_rdoc_files: []
|
|
20
20
|
files:
|
21
21
|
- ".rubocop.yml"
|
22
22
|
- ".rubocop_todo.yml"
|
23
|
-
- ".standard.yml"
|
24
23
|
- CHANGELOG.md
|
25
24
|
- CODE_OF_CONDUCT.md
|
26
25
|
- LICENSE.txt
|
data/.standard.yml
DELETED