super_logger_rb 0.1.1 → 0.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: f70f1de7c94999f08cd0ad2a01ca9abd770bd63c
4
- data.tar.gz: 18e0fb21106363234b651ccc111b29867c08c599
3
+ metadata.gz: 8dcf0c519ef7e6b63d2be7c3420502434ec9a7a5
4
+ data.tar.gz: 3317853f87bc89ce6475e96aedb796256f077d69
5
5
  SHA512:
6
- metadata.gz: b10ae4616c1689465df084ff9b959375b3553a8083814bd320edb5d9f10a44221b81dee18ef9e7bfbb130a57b201991214c16c2e78b68cf7cdbe3738333fd563
7
- data.tar.gz: 33e00e42c40bb802b10b4d150651bc0dc9fe35b665ce7293a2254941a147938d05531e431eccdc9ca6e4706176d800ade277f8ba45a13b8e7285b257f16ef350
6
+ metadata.gz: ead3ccac239772135afaa0155eb00c5d1687086ff4d6f7a9d367417bd1f822112087f02be11fa0200a4813ab7038b77b1e755016e7c19dea3d5823c56167ee6a
7
+ data.tar.gz: 0518e3b51bf1de17ab56057a06b7783bcd90085c6dfc2662244a2a7da5b00870157737c747b634776994e4f195fbf5ed8e659c81b8df2ad6edb9e179cb3ed89c
@@ -7,29 +7,29 @@ module SuperLogger
7
7
  Instance.new(*a)
8
8
  end
9
9
 
10
- class Instance < Logger
11
- module Color
12
- def self.next
13
- color_loop.next
14
- end
10
+ module Color
11
+ def self.next
12
+ color_loop.next
13
+ end
15
14
 
16
- def self.color_loop
17
- @color_loop ||= Enumerator.new do |y|
18
- loop do
19
- colors.each { |c| y << c }
20
- end
15
+ def self.color_loop
16
+ @color_loop ||= Enumerator.new do |y|
17
+ loop do
18
+ colors.each { |c| y << c }
21
19
  end
22
20
  end
21
+ end
23
22
 
24
- def self.colors
25
- @colors ||= begin
26
- colors = ColorizedString.colors.shuffle
27
- colors.delete(:default)
28
- colors
29
- end
30
- end
23
+ def self.colors
24
+ @colors ||= begin
25
+ colors = ColorizedString.colors.shuffle
26
+ colors.delete(:default)
27
+ colors
28
+ end
31
29
  end
30
+ end
32
31
 
32
+ class Instance < Logger
33
33
  def initialize(*a, prefix: nil, use_color: true)
34
34
  super *a
35
35
  @color = SuperLogger::Color.next if use_color
@@ -1,3 +1,3 @@
1
1
  module SuperLogger
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: super_logger_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Bodah