pipetext 0.2.1 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f7f0d849921eef214577fe5b3418bcda0815b9158de41079c5ded31beb06e39
4
- data.tar.gz: 31623762e3303061e8753b07a4a44b5efbd1eda8748fb411871ca643b54dbe6f
3
+ metadata.gz: 81bf42497ba859cbb25492de68e6e2349d272d5749cb3238a32e1178289f1ab6
4
+ data.tar.gz: 70374a01bcfb1a4c627d82e7d693a58da80b5630045324ebe499c0109e6d9ff3
5
5
  SHA512:
6
- metadata.gz: 500918c7d15469238f5c1f3424570a759cabd9a80dbbd8c2faec1b781ce44cbabcb1ea0c4cfdf19a6914b2f80d3d5e88136f7f0f68ec1fe1ab26eee1adb1afc0
7
- data.tar.gz: 41a068587aed07e5c3fc360497c8296640509951e12d6d513e3cf8c89a88c43c9ea5f1517a3a373ec12eb0a470de32901b2b79575aa46c30ad0802e73807af7f
6
+ metadata.gz: 9dbe6239bc3819842cbd050c4059c0f3b062bfdd7b17ad099f320e39a1b0bdebf416cea2dbb6566f57c897ad15bde350049f7fa2341d1c049eb0229bf4fdb64e
7
+ data.tar.gz: 3ac4391ef34139ad79deebee2a68d68e30347a2e3c896ae05612c40ab3fa49fde654081851f85dafda05539661cec58bfccca6d216d3b5d5ed1762263f5d2d8c
data/bin/pipetext CHANGED
@@ -87,7 +87,7 @@ if(ARGV[0] == nil && STDIN.tty? == true)
87
87
  puts "pipetext '|(test=15)Print 10 stars: |(#test-=5)* and 20 hashes: |(#test+=5)#'"
88
88
  puts "pipetext '|10~ &r|----|O> ALL YOUR |kBASE|n |3\\~ARE|3\\~ BELONG TO US. <|----|O&n|\\n~|n'"
89
89
  puts
90
- pipe.paint("version |c#{PipeText::VERSION}|n")
90
+ pipe.paint("version |c#{PipeText::VERSION}|n\n")
91
91
  else
92
92
  if(STDIN.tty? == false)
93
93
  pipe.paint(STDIN.read)
@@ -53,7 +53,7 @@ module PipeText
53
53
  new_text = String.new
54
54
  text.chars.each do |character|
55
55
  process_character(character, new_text, attributes)
56
- if(new_text =~ /\n(.*)$/)
56
+ if(new_text =~ /.*\n(.*)$/m)
57
57
  attributes['position'] = printable_length($1)
58
58
  else
59
59
  attributes['position'] += printable_length(new_text)
@@ -118,13 +118,11 @@ module PipeText
118
118
 
119
119
  def write(text, box_mode=true, ampersand_mode=false)
120
120
  fastpipetext(text, box_mode, ampersand_mode)
121
- puts
122
121
  end
123
122
 
124
123
  # Defaults to using & for background colors
125
124
  def paint(text, box_mode=true, ampersand_mode=true)
126
125
  fastpipetext(text, box_mode, ampersand_mode)
127
- puts
128
126
  end
129
127
 
130
128
  def ignored_character(character, ignored_characters)
@@ -4,6 +4,6 @@ module PipeText
4
4
 
5
5
  public
6
6
 
7
- VERSION = "0.2.1"
7
+ VERSION = "0.2.3"
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipetext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minaswan Nakamoto