rubyment 0.4.25421266 → 0.4.25424079
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubyment.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff7a4a4d7833abeb6544a322d496a8a012f2451
|
4
|
+
data.tar.gz: abe34678415cc25c917d1a6b70d0cc8b998c52d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4863e72aae5e881132d30ba14c7f98f4b5163c298e2baeac79ca3884f8175603fd608dc99fa2576e145dd1c9c71fdc4371506d841439b8bebb734985d7a94412
|
7
|
+
data.tar.gz: 5127f379861cbfbed45b7dbddca26c9f20f5f57a91639d296ed7cf083b1c9c4f0f246595bb5b13ab70293f2194a6cc71c59953835b1c80c6ad9c60de4e78d2bd
|
data/lib/rubyment.rb
CHANGED
@@ -261,7 +261,7 @@ class Rubyment
|
|
261
261
|
# useful for reading file contents, e.g.
|
262
262
|
def input_non_empty_string_or_multiline_prompt args=ARGV
|
263
263
|
stderr = @memory[:stderr]
|
264
|
-
stderr.print "multiline[control-D to stop]:"
|
264
|
+
stderr.print "multiline[enter + control-D to stop]:"
|
265
265
|
args.shift.to_s.split("\0").first || readlines.join
|
266
266
|
end
|
267
267
|
|
@@ -272,7 +272,7 @@ class Rubyment
|
|
272
272
|
# useful for reading file contents, e.g.
|
273
273
|
def input_non_empty_filepath_or_contents_or_multiline_prompt args=ARGV
|
274
274
|
stderr = @memory[:stderr]
|
275
|
-
stderr.print "multiline[control-D to stop]:"
|
275
|
+
stderr.print "multiline[enter + control-D to stop]:"
|
276
276
|
(filepath_or_contents args.shift).to_s.split("\0").first || readlines.join
|
277
277
|
end
|
278
278
|
|
@@ -306,7 +306,7 @@ class Rubyment
|
|
306
306
|
def input_multi_line args=ARGV
|
307
307
|
stderr = @memory[:stderr]
|
308
308
|
stdin = @memory[:stdin]
|
309
|
-
stderr.print "multiline[control-D to stop]:"
|
309
|
+
stderr.print "multiline[enter + control-D to stop]:"
|
310
310
|
args.shift.to_s.split("\0").first || stdin.readlines.join
|
311
311
|
end
|
312
312
|
|
@@ -318,7 +318,7 @@ class Rubyment
|
|
318
318
|
stderr = @memory[:stderr]
|
319
319
|
stdin = @memory[:stdin]
|
320
320
|
require "io/console"
|
321
|
-
stderr.print "multiline[control-D to stop]:"
|
321
|
+
stderr.print "multiline[enter + control-D to stop]:"
|
322
322
|
args.shift.to_s.split("\0").first || stdin.noecho{ stdin.readlines}.join.chomp
|
323
323
|
end
|
324
324
|
|
@@ -613,7 +613,7 @@ class Rubyment
|
|
613
613
|
require "io/console"
|
614
614
|
|
615
615
|
data = ""
|
616
|
-
stderr.print "multi_line_data[ data 1/3, echoing, control-D to stop]:"
|
616
|
+
stderr.print "multi_line_data[ data 1/3, echoing, enter + control-D to stop]:"
|
617
617
|
data += args.shift || (stdin.readlines.join rescue readlines.join)
|
618
618
|
stderr.puts
|
619
619
|
stderr.print "data_file [data 2/3]:"
|