irb-remote 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca549a5c7c75186591c01aeb7e2b559ceb9015cbdaebc5003761d99df1890b5f
4
- data.tar.gz: fa8724f8f314b8f3bcc8d9d30dbce5e1dc9f8675f7f0add491467489a2855221
3
+ metadata.gz: b8a7dc04360a2b44fc7b60398729c95d8c6996bcb3f7b346c01cd22a9692f2d0
4
+ data.tar.gz: 741f49ad74b4c35124c2fb845d45d5ff78d331ebf932b53c8987af268db55206
5
5
  SHA512:
6
- metadata.gz: 0fc325d2c2685629f15095a59fab4582bddba1dcacd18f07d63b9e8eeed7c9c0e5cee1127877007b8e41da87211e387b845763838cc56c314bf507e2847e7a0c
7
- data.tar.gz: 2754b2723dbdc64567c02ec0a0988dee192600c39ab70a38b26bdb24d610ffe411639e49ebde543b2b3d5f51dc4d6080e8b07beabf22092d1c55fb39a34126f6
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 Ruby gem designed to facilitate remote IRB sessions with Reline.
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
+ ![image](https://github.com/QWYNG/irb-remote/assets/16704596/0651b6f8-75aa-4271-91cb-b714c26a580b)
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
 
@@ -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($stdin, $stdout, client.binding)
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(stdin, stdout, binding)
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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IrbRemote
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.2'
5
5
  end
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.0
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-06 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- # For available configuration options, see:
2
- # https://github.com/standardrb/standard
3
- ruby_version: 3.0