rbtext 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ftext +3 -3
  3. data/lib/rbtext.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7c05f36445abd449bd35a7f0f70638c19d65ec812b8a821863dbaff69e7a116
4
- data.tar.gz: 8853c53c113ffababc63fbb4225c0a4c75f2ee1ff584072181913dca0ba367b4
3
+ metadata.gz: 66d505848f874fa734dc012e8715d1ce3e0ec7f044676f129e416a4a2fef595a
4
+ data.tar.gz: e253f36f8229fe50764c82454b3ef049094d8a1b0623cf73d4d7364d37cf7551
5
5
  SHA512:
6
- metadata.gz: 63b5da77e130a4dfc3fc7c8f6758ca10c31884986aab735c1d746a75b8ca0bc6849e05191d34934df0bc4c401dc855b414158a84c93371e258a2652e27ccf084
7
- data.tar.gz: 2799434338c2448084e19eda4ad4a46dc7a1933877691d2915a57d78c8b01face8bc0955e3df219024760c7017102cc731a06111d1c595a3cc6e025f55a3ee4b
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
@@ -8,7 +8,7 @@ require "io/console"
8
8
  module RBText
9
9
  @ver_1 = 0
10
10
  @ver_2 = 2
11
- @ver_3 = 1
11
+ @ver_3 = 2
12
12
  @ver_4 = ""
13
13
 
14
14
  def version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbtext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Lee