super_p 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/super_p.rb +3 -3
- data/lib/super_p/version.rb +1 -1
- 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: 0aef4fdd8bf2ec6f2651acff7fd57fa6369f4fe8
|
4
|
+
data.tar.gz: 8488c6d5b541835485fe3f25c97622b2e8cb2c46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a5324f5aba4e91376a36be8f41aa060739c85a950d6672d1289255a2d407f10c71f520cf0d1ab0762992a3bbb06330256856cc65e3508b2278f25fd276726d4
|
7
|
+
data.tar.gz: 155524ff0a60134fe9b309f61bee828cbbd4a2c33b549cf4b72617b87e9efd3936d683fff30c12bfd54a3cf063fe544bc7692532dd23a9d93a2967c7fcb5490b
|
data/README.md
CHANGED
data/lib/super_p.rb
CHANGED
@@ -13,15 +13,15 @@ module Kernel
|
|
13
13
|
cols = `tput cols`.to_i
|
14
14
|
print SuperP.color || "\e[45;35m"
|
15
15
|
puts " " * cols
|
16
|
-
puts *args.map do |i|
|
16
|
+
puts *(args.map do |i|
|
17
17
|
text = i.inspect
|
18
18
|
padding = if text.size < cols
|
19
19
|
cols - text.size
|
20
20
|
else
|
21
21
|
text.size % cols
|
22
22
|
end
|
23
|
-
text + " "
|
24
|
-
end
|
23
|
+
text + " " * padding
|
24
|
+
end)
|
25
25
|
puts " " * cols
|
26
26
|
ensure
|
27
27
|
print "\e[0m"
|
data/lib/super_p/version.rb
CHANGED