debug_logger 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/debug_logger.rb +20 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36ef1c073cb55866161c4074ed2387376bf8f5c6585adb9b14005d8433ba441c
|
4
|
+
data.tar.gz: 11bf475e017f2c437787a52ad110ed9afd9e08827a601766f35fdd971347e656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63311e8b36c1461298e62cd0dd392ab142ba2d958e107e36b88f0591d9cf9a45d4adbe992b24dbf69d5260dbc7e42bacab5b1a08a727cd21d5d9feb9d8397ee6
|
7
|
+
data.tar.gz: d0dbcdccb07bb19647fae18a3bbe05ae622c983d458d31ac662545948eecb8c4a25cc070b0353a94b78e9a07f59ece4fab1702c2180c041d2a7ba75e39064e1b
|
data/lib/debug_logger.rb
CHANGED
@@ -24,13 +24,28 @@ class DebugLogger
|
|
24
24
|
"
|
25
25
|
end
|
26
26
|
end
|
27
|
+
|
28
|
+
def self.color_lists
|
29
|
+
requires = Requires.new
|
30
|
+
puts requires.colors.join(' / ')
|
31
|
+
end
|
32
|
+
|
33
|
+
def self.commands
|
34
|
+
puts "
|
35
|
+
* DebugLogger::log(your_color, your_text, your_variable) \n
|
36
|
+
* @your_color = Symbol | color of your log (DebugLogger::color_lists for list all colors) => require \n
|
37
|
+
* @your_text = String | text of your log => require \n
|
38
|
+
* @your_variable = All | variables to debug => optionnal \n
|
39
|
+
* DebugLogger::log_space(your_color, your_text, your_variable) => log with space before and after \n
|
40
|
+
"
|
41
|
+
end
|
27
42
|
end
|
28
43
|
|
29
44
|
class DebugLogger::Requires
|
30
45
|
|
31
46
|
attr_reader :color
|
32
47
|
|
33
|
-
def initialize(color)
|
48
|
+
def initialize(color = nil)
|
34
49
|
@color = color
|
35
50
|
end
|
36
51
|
|
@@ -64,4 +79,8 @@ class DebugLogger::Requires
|
|
64
79
|
38
|
65
80
|
end
|
66
81
|
end
|
82
|
+
|
83
|
+
def colors
|
84
|
+
[:black, :red, :green, :orange, :blue, :pink, :cyan, :white, :normal, :bold, :italic, :underline]
|
85
|
+
end
|
67
86
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debug_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonin Touron
|
@@ -10,7 +10,8 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: A simple gem to help debug with log
|
13
|
+
description: A simple gem to help debug with log. DebugLogger::commands to see the
|
14
|
+
documentation.
|
14
15
|
email: antonintouron@gmail.com
|
15
16
|
executables: []
|
16
17
|
extensions: []
|