appl 1.5 → 1.5.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/appl.rb +1 -1
- data/lib/intar.rb +20 -18
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ca5c3e7d0c0283079f9bd0981807b994cc1ea40bdf39830e14ddc7139f6e2e3
|
4
|
+
data.tar.gz: dba6e93d8c2dba17713ae40e0b828ca2ad8f2b9a526b8024f3f6ec30ffd3a6bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cabd022a9b45ef68fe54ebe962d102c6fef398dd816a811c0647157f474bb7d90cf2b7c86558b384ce5f2946c5e801b0eaed4f22168afd976efdd580e93f1a20
|
7
|
+
data.tar.gz: 00ff5f113cbfc1fdf390ba5790131c72a2e672c8651e506fa88eea8ffe67e8b2065047f1c911b290279cb9f6148bb1ebfea24f937dfd18c766f75a22f5b92316
|
data/lib/appl.rb
CHANGED
data/lib/intar.rb
CHANGED
@@ -284,23 +284,25 @@ class Intar
|
|
284
284
|
def readline
|
285
285
|
r, @previous = @previous, nil
|
286
286
|
r or @n += 1
|
287
|
-
cp = cur_prompt r
|
288
287
|
begin
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
288
|
+
cp = cur_prompt r
|
289
|
+
begin
|
290
|
+
l = Readline.readline cp
|
291
|
+
rescue Interrupt
|
292
|
+
puts "^C -- #{$!.inspect}"
|
293
|
+
retry
|
294
|
+
end
|
295
|
+
return if l.nil?
|
296
|
+
if r then
|
297
|
+
r << $/ << l
|
298
|
+
else
|
299
|
+
r = l unless l.empty?
|
300
|
+
end
|
301
|
+
self.class.hist_add l
|
302
|
+
cp.strip!
|
303
|
+
cp.gsub! /\e\[[0-9]*(;[0-9]*)*m/, ""
|
304
|
+
@file = "#{self.class}/#{cp}"
|
305
|
+
end until r
|
304
306
|
r
|
305
307
|
end
|
306
308
|
|
@@ -376,8 +378,8 @@ class Intar
|
|
376
378
|
rescue LoadError
|
377
379
|
oldset.call $!, @n
|
378
380
|
show_exception
|
379
|
-
rescue
|
380
|
-
if l
|
381
|
+
rescue SyntaxError
|
382
|
+
if l.end_with? $/ then
|
381
383
|
switchcolour 33
|
382
384
|
puts $!
|
383
385
|
else
|