rbtext 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ftext +3 -3
- data/lib/rbtext.rb +1 -1
- 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: 66d505848f874fa734dc012e8715d1ce3e0ec7f044676f129e416a4a2fef595a
|
4
|
+
data.tar.gz: e253f36f8229fe50764c82454b3ef049094d8a1b0623cf73d4d7364d37cf7551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06db194fadc7aa7e7958d7d31d1c41d13e04073406480526c26668e076618e1da8b70a30fbd814827ea66aaed66ad2cabad8e61ae9047844f1920f8ef0ad37d
|
7
|
+
data.tar.gz: 6c89641d22ce70ac9e8f83b6d2d0a64b2d77b43f2f7925f65908a4256e32bdfd17f5a4a2bd9d1100e245d2d147315a83b1d3892e0395cf80033682a47a417f19
|
data/bin/ftext
CHANGED
@@ -18,13 +18,13 @@ else
|
|
18
18
|
end
|
19
19
|
|
20
20
|
(0..lines.length-1).each do |l|
|
21
|
-
txt << "#{"_.f:reset._" if ARGV[1] != "--noreset"}_.#{args[l]}._"+lines[l]
|
21
|
+
txt << "#{"_.f:reset._" if ARGV[1] != "--noreset"}_.#{args[l]}._"+lines[l].gsub("_", "\0004")
|
22
22
|
end
|
23
23
|
|
24
24
|
txt = txt.join
|
25
25
|
else
|
26
|
-
txt = ARGF.readlines.join
|
26
|
+
txt = ARGF.readlines.join.gsub("_", "\0004")
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
print R::Ft.new(txt)
|
30
|
+
print R::Ft.new(txt).to_s.gsub("\0004", "_")
|
data/lib/rbtext.rb
CHANGED