qtapp 1.4.1.1 → 1.4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qtapp/crazy.rb +8 -3
- data/lib/qtapp/printer/awesome_print.rb +3 -2
- data/lib/qtapp/printer/pretty_print.rb +3 -2
- data/lib/qtapp/printer/puts.rb +3 -2
- data/lib/qtapp/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: ce019b17b753fe794765e5a3b1235c5bdba0812f
|
4
|
+
data.tar.gz: d9a0b024bd429312caf03426967c76f72829fbd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c46941eced538d5d2251d2d5c29b6440db3b0b799545d89650fc62f4928b8bbbc1d7a930504911a5da6fc46cc96c54d7c4986e46e853c6446946222737c61e6
|
7
|
+
data.tar.gz: bd18f339646d026787017cf5b9ec46d78df5625d37cc3d87e989616e1f1bd1f865cd22baea02921ba921f8595b1e5d1ff92882e6bad3030a1bf7cc03c3381219
|
data/lib/qtapp/crazy.rb
CHANGED
@@ -2,7 +2,7 @@ require 'highline'
|
|
2
2
|
|
3
3
|
module Qtapp
|
4
4
|
module Crazy
|
5
|
-
@colors = %i
|
5
|
+
@colors = %i( red green yellow blue magenta cyan )
|
6
6
|
@crazy_samples = [
|
7
7
|
"アララララーイ",
|
8
8
|
"アーラララララァ",
|
@@ -25,8 +25,13 @@ module Qtapp
|
|
25
25
|
|
26
26
|
module_function
|
27
27
|
|
28
|
-
def
|
29
|
-
|
28
|
+
def colors
|
29
|
+
@colors
|
30
|
+
end
|
31
|
+
|
32
|
+
def crazy_line(color)
|
33
|
+
# 20.times { print @high_line.color(@crazy_samples.sample, @colors.sample) }
|
34
|
+
print @high_line.color("~*" * 30, color)
|
30
35
|
print "\n"
|
31
36
|
end
|
32
37
|
end
|
@@ -4,9 +4,10 @@ require 'ap'
|
|
4
4
|
module Qtapp::Printer
|
5
5
|
class AwesomePrint < Base
|
6
6
|
def print(*args)
|
7
|
-
Qtapp::Crazy.
|
7
|
+
color = Qtapp::Crazy.colors.sample
|
8
|
+
Qtapp::Crazy.crazy_line(color)
|
8
9
|
ap *args
|
9
|
-
Qtapp::Crazy.crazy_line
|
10
|
+
Qtapp::Crazy.crazy_line(color)
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
@@ -4,9 +4,10 @@ require 'pp'
|
|
4
4
|
module Qtapp::Printer
|
5
5
|
class PrettyPrint < Base
|
6
6
|
def print(*args)
|
7
|
-
Qtapp::Crazy.
|
7
|
+
color = Qtapp::Crazy.colors.sample
|
8
|
+
Qtapp::Crazy.crazy_line(color)
|
8
9
|
pp *args
|
9
|
-
Qtapp::Crazy.crazy_line
|
10
|
+
Qtapp::Crazy.crazy_line(color)
|
10
11
|
end
|
11
12
|
end
|
12
13
|
end
|
data/lib/qtapp/printer/puts.rb
CHANGED
@@ -3,9 +3,10 @@ require 'qtapp/printer'
|
|
3
3
|
module Qtapp::Printer
|
4
4
|
class Puts < Base
|
5
5
|
def print(*args)
|
6
|
-
Qtapp::Crazy.
|
6
|
+
color = Qtapp::Crazy.colors.sample
|
7
|
+
Qtapp::Crazy.crazy_line(color)
|
7
8
|
puts *args
|
8
|
-
Qtapp::Crazy.crazy_line
|
9
|
+
Qtapp::Crazy.crazy_line(color)
|
9
10
|
end
|
10
11
|
end
|
11
12
|
end
|
data/lib/qtapp/version.rb
CHANGED