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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c98903457c360ca6b18d17f3d6f0bc6c59812020
4
- data.tar.gz: e3e9f59f7b918903c031a5f1aedf36b61c0e08ce
3
+ metadata.gz: 0aef4fdd8bf2ec6f2651acff7fd57fa6369f4fe8
4
+ data.tar.gz: 8488c6d5b541835485fe3f25c97622b2e8cb2c46
5
5
  SHA512:
6
- metadata.gz: 2f8287a176a8dd8e114cfbdc8d91c1d38750d54192308df11bbb7f10edb0871f6e4851b8f01ad731bb558b63b5e82d72995fe65248347c0a70b09f5967873353
7
- data.tar.gz: b25555dc66c1587ba46dce60b2e771cafcafb4e06e27efb0de617cecb2c65da4c548cd24d2204955cc3c40fed704dbda9e1d270b89cc02baa523a231d29cd7cf
6
+ metadata.gz: 1a5324f5aba4e91376a36be8f41aa060739c85a950d6672d1289255a2d407f10c71f520cf0d1ab0762992a3bbb06330256856cc65e3508b2278f25fd276726d4
7
+ data.tar.gz: 155524ff0a60134fe9b309f61bee828cbbd4a2c33b549cf4b72617b87e9efd3936d683fff30c12bfd54a3cf063fe544bc7692532dd23a9d93a2967c7fcb5490b
data/README.md CHANGED
@@ -22,5 +22,5 @@ Or install it yourself as:
22
22
 
23
23
  specify the color like this:
24
24
 
25
- SuperP.color = "\e[44;34m"
25
+ SuperP.color = "\e[45;35;5m" # blinking
26
26
  sp object
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 + " " + padding
24
- end
23
+ text + " " * padding
24
+ end)
25
25
  puts " " * cols
26
26
  ensure
27
27
  print "\e[0m"
@@ -1,3 +1,3 @@
1
1
  module SuperP
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_p
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo