nrepl-lazuli 0.3.0 → 0.3.1
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/lib/nrepl-lazuli/connection.rb +7 -6
- data/lib/nrepl-lazuli/server.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2439208ce1a3db5af7c886aa95b577bb713667461c92d129e997f378ca704926
|
4
|
+
data.tar.gz: 6aabf3d36d3996ff158a2c50ebaa6239570e4799614a8d7110d50df7ca1ede4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 755e29ac97e588baca03a48914cc968d23d96961c66c4a3778554bc29b2d14f05ac236f9d15a1b565318cab9a11c28bc1a07cf096911da656f1450c4ae52ac7f
|
7
|
+
data.tar.gz: a6fabeadef479c719f9fa60b53587e85d0d25fd88e96a03311103b0a5a581cccb54425ebd68c9e75cb01e69335dc755631699153bb44501ec51d756d0dc693a8
|
@@ -173,6 +173,12 @@ module NREPL
|
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
176
|
+
private def evaluate_code(code, file, line, bind)
|
177
|
+
bind ||= @@binding
|
178
|
+
line = line ? line + 1 : 1
|
179
|
+
eval(code, bind, file || "EVAL", line).inspect
|
180
|
+
end
|
181
|
+
|
176
182
|
private def find_row_based_binding(msg)
|
177
183
|
file = msg['file']
|
178
184
|
row = msg['line']
|
@@ -252,9 +258,4 @@ module NREPL
|
|
252
258
|
end
|
253
259
|
|
254
260
|
# To avoid locally binding with the NREPL::Connection module
|
255
|
-
|
256
|
-
define_method(:evaluate_code) do |code, file, line, bind|
|
257
|
-
bind ||= b
|
258
|
-
line = line ? line + 1 : 1
|
259
|
-
eval(code, bind, file || "EVAL", line).inspect
|
260
|
-
end
|
261
|
+
NREPL::Connection.class_variable_set(:@@binding, binding)
|
data/lib/nrepl-lazuli/server.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nrepl-lazuli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maurício Szabo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bencode
|