irb-remote 0.1.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce9c8bbaedcb1996de974c079f697bf49e59c8708817260634953055f34489a5
4
- data.tar.gz: e1ef81d82e7a6e6a6d9ff630ed8fd901b209658a342f668d3528198e1d573fff
3
+ metadata.gz: b8a7dc04360a2b44fc7b60398729c95d8c6996bcb3f7b346c01cd22a9692f2d0
4
+ data.tar.gz: 741f49ad74b4c35124c2fb845d45d5ff78d331ebf932b53c8987af268db55206
5
5
  SHA512:
6
- metadata.gz: 6a9f61314180c29267ad05642a4161f71fa3f7594a382b9d56d08bad9f2483a54b448e3d77b13111cffce167730364ed9477a7d43756d18912a29147c80af99f
7
- data.tar.gz: fe15200df21ea0451fdc314aa50d851adacc50a55201cfb906bb7835c484f4e6f27d11208e25db8c18da95b3b533e52c9253fecccd44b84a30622a19394b297f
6
+ metadata.gz: 2933f3e2f5c9c683a7fadc028c69a3636d51d06a088a69b7b0686f8c753ddd9aa6c9d0e4e7548c96cf1f5aadcbeee8ea48301c5f930a07205151533f872d4f64
7
+ data.tar.gz: 90d3df19ed60df3047199f8663d0dbd9d51b1b6050a7b6b3ee50e2f7d21d64c767a90a008436de8f3a02344ecb63774fdbcf453f044f2959b9e7d6cd38b68dfd
@@ -8,5 +8,25 @@ module IrbRemote
8
8
  IrbRemote::Server.run(self, host, port, options)
9
9
  end
10
10
  alias remote_irb irb_remote
11
+
12
+ def eval_methods
13
+ ::Kernel.instance_method(:methods).bind(eval('self')).call
14
+ end
15
+
16
+ def eval_private_methods
17
+ ::Kernel.instance_method(:private_methods).bind(eval('self')).call
18
+ end
19
+
20
+ def eval_instance_variables
21
+ ::Kernel.instance_method(:instance_variables).bind(eval('self')).call
22
+ end
23
+
24
+ def eval_global_variables
25
+ ::Kernel.instance_method(:global_variables).bind(eval('self')).call
26
+ end
27
+
28
+ def eval_class_constants
29
+ ::Module.instance_method(:constants).bind(eval('self.class')).call
30
+ end
11
31
  end
12
32
  end
@@ -4,30 +4,6 @@ require 'irb'
4
4
 
5
5
  module IrbRemote
6
6
  class Completor < IRB::RegexpCompletor
7
- using(Module.new do
8
- refine ::DRb::DRbObject do
9
- def eval_methods
10
- ::Kernel.instance_method(:methods).bind(eval('self')).call
11
- end
12
-
13
- def eval_private_methods
14
- ::Kernel.instance_method(:private_methods).bind(eval('self')).call
15
- end
16
-
17
- def eval_instance_variables
18
- ::Kernel.instance_method(:instance_variables).bind(eval('self')).call
19
- end
20
-
21
- def eval_global_variables
22
- ::Kernel.instance_method(:global_variables).bind(eval('self')).call
23
- end
24
-
25
- def eval_class_constants
26
- ::Module.instance_method(:constants).bind(eval('self.class')).call
27
- end
28
- end
29
- end)
30
-
31
7
  def eval(expr, bind)
32
8
  bind.eval(expr)
33
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IrbRemote
4
- VERSION = '0.1.1'
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.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-17 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: