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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fff55c2886e2fb8a2a54f1012ee1e793b4ca7d6
4
- data.tar.gz: be9ebe26f48cb3548c85cce669d3291842f77882
3
+ metadata.gz: ce019b17b753fe794765e5a3b1235c5bdba0812f
4
+ data.tar.gz: d9a0b024bd429312caf03426967c76f72829fbd2
5
5
  SHA512:
6
- metadata.gz: f1b8117174d685922dc63fedbe1cf41283aa7cd98f1d601c50f0da139b9e935d73637a34d52daa078263b43e8cf91ab6f291364dbc9afd599ea0ab353a692b7d
7
- data.tar.gz: 7eef53eab31e7aacc2e7a3d6b0b6abfc8dc5e3e51c8ccc3262c95963a03224d697af97aac780a8c18312cd25a14783d3d5ef0356808e4a3af595026afc4adc9c
6
+ metadata.gz: 3c46941eced538d5d2251d2d5c29b6440db3b0b799545d89650fc62f4928b8bbbc1d7a930504911a5da6fc46cc96c54d7c4986e46e853c6446946222737c61e6
7
+ data.tar.gz: bd18f339646d026787017cf5b9ec46d78df5625d37cc3d87e989616e1f1bd1f865cd22baea02921ba921f8595b1e5d1ff92882e6bad3030a1bf7cc03c3381219
@@ -2,7 +2,7 @@ require 'highline'
2
2
 
3
3
  module Qtapp
4
4
  module Crazy
5
- @colors = %i{red green yellow blue magenta cyan white}
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 crazy_line
29
- 20.times { print @high_line.color(@crazy_samples.sample, @colors.sample) }
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.crazy_line
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.crazy_line
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
@@ -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.crazy_line
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
@@ -1,3 +1,3 @@
1
1
  module Qtapp
2
- VERSION = '1.4.1.1'
2
+ VERSION = '1.4.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qtapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1.1
4
+ version: 1.4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hirofumi Wakasugi