rainbow_say 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rainbow_say +7 -1
- data/lib/rainbow_say/version.rb +1 -1
- metadata +3 -3
data/bin/rainbow_say
CHANGED
@@ -2,7 +2,13 @@
|
|
2
2
|
STDOUT.sync = true
|
3
3
|
trap("SIGINT") { exit! }
|
4
4
|
|
5
|
-
|
5
|
+
say = if ARGV.any?
|
6
|
+
ARGV.join " "
|
7
|
+
elsif !(stdin = STDIN.read).empty?
|
8
|
+
stdin.chomp
|
9
|
+
end
|
10
|
+
|
11
|
+
if say
|
6
12
|
loop do
|
7
13
|
STDOUT.print "\r\x1b[#{31+($.+=1)%7}m#{say}"
|
8
14
|
STDOUT.print "\e[0m"
|
data/lib/rainbow_say/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rainbow_say
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
segments:
|
60
60
|
- 0
|
61
|
-
hash: -
|
61
|
+
hash: -3434169701580051851
|
62
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
segments:
|
69
69
|
- 0
|
70
|
-
hash: -
|
70
|
+
hash: -3434169701580051851
|
71
71
|
requirements: []
|
72
72
|
rubyforge_project:
|
73
73
|
rubygems_version: 1.8.23
|