debug_logger 0.1 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0985007c2c28a614b005bd11f5ec6f70c54a2ef5eaa7bbcdcad023946801527
4
- data.tar.gz: 467935e2f80a323504d09d6e6d3df958a82160b015cac9011a5fcc5f5dc9a90e
3
+ metadata.gz: 2239057c2cd0841dbc8a01562cbc9057f2e1dc2b1b9778150fd57322917bfd4e
4
+ data.tar.gz: 0f73a8cea9a9b6b136627c0407da5e533b846a7f4cb9d2c380197654cf5674a8
5
5
  SHA512:
6
- metadata.gz: 60f09a9dee5c3038aa71a62d2cd97fd19ed2e73c4a8e29e7950b42bd31a3c72327a84088a672cb36ab901b31b35b187e4522851fb53c3c2bd0ea6b9ea20bd577
7
- data.tar.gz: 89f5cc91843d03f479940fd03ce907a24f81f68fa64ee7fe43581e37b74e16c65cb58fff147150d90ca50ca3f76fde45bb6845d3ebb0aee285b2255f0f51a1e5
6
+ metadata.gz: 05aef375ab2b8a7fe41853fd4744b5560ec5e7540a287d202cf5c82a72d885bff30f26e7793d50c41f9ee16a554716c57bc7952dbcb840a2576c0298c7c1685a
7
+ data.tar.gz: c658ea6745266790c975c463e1292747c7f6ae039726fa2b3ecff446e68397e9cdbbad2465fc4072909f41ce806b75be6b2d924e1310b3df54e3ded268c7d3e6
@@ -1,6 +1,6 @@
1
1
  require 'date'
2
2
 
3
- class DebugLogger::Logage
3
+ class DebugLogger::Log
4
4
 
5
5
  attr_accessor :storing
6
6
 
@@ -32,7 +32,7 @@ class DebugLogger::Logage
32
32
  def initialize_storing
33
33
  [
34
34
  {
35
- log_message: 'Initialize DebugLogger logage',
35
+ log_message: 'Initialize DebugLogger log',
36
36
  date: DateTime.now.strftime('%F %T')
37
37
  }
38
38
  ]
data/lib/debug_logger.rb CHANGED
@@ -1,22 +1,22 @@
1
1
  class DebugLogger
2
2
 
3
- attr_reader :color, :storage, :logage
3
+ attr_reader :color, :storage, :log
4
4
 
5
5
  def initialize(color = nil, storage = nil)
6
6
  @color = color
7
7
  @storage = storage
8
- @logage = Logage.new
8
+ @log = Log.new
9
9
  end
10
10
 
11
11
  def log(log_text, log_color = nil, log_variables = nil, log_storage = nil)
12
12
  log_text = "\e[#{DebugLoggerUtils::color_signification(log_color ? log_color : color)}m #{log_text}====================#{log_variables ? log_variables : ''}====================\e[0m"
13
13
 
14
- logage.store(log_text) if storage || log_storage
14
+ log.store(log_text) if storage || log_storage
15
15
  puts log_text
16
16
  end
17
17
 
18
18
  def logs(date = false)
19
- logage.data_storing(date)
19
+ log.data_storing(date)
20
20
  end
21
21
 
22
22
  def color_lists
@@ -25,4 +25,4 @@ class DebugLogger
25
25
  end
26
26
 
27
27
  require 'debug_logger/debug_logger_utils'
28
- require 'debug_logger/logage'
28
+ require 'debug_logger/log'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debug_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonin Touron
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-13 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -24,7 +24,9 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.7'
27
- description: A simple gem to help debug.
27
+ description: This very simple gem was created to simplify your life in creating your
28
+ log in your programs. It simply allows you to display logs of different colors,
29
+ whether for a web application like RubyOnRails or for scripts.
28
30
  email: antonintouron@gmail.com
29
31
  executables: []
30
32
  extensions: []
@@ -32,13 +34,13 @@ extra_rdoc_files: []
32
34
  files:
33
35
  - lib/debug_logger.rb
34
36
  - lib/debug_logger/debug_logger_utils.rb
35
- - lib/debug_logger/logage.rb
37
+ - lib/debug_logger/log.rb
36
38
  homepage: https://rubygems.org/gems/debug_logger
37
39
  licenses:
38
40
  - MIT
39
41
  metadata:
40
42
  source_code_uri: https://github.com/antonintouron/debug_logger
41
- post_install_message:
43
+ post_install_message:
42
44
  rdoc_options: []
43
45
  require_paths:
44
46
  - lib
@@ -54,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
56
  version: '0'
55
57
  requirements: []
56
58
  rubygems_version: 3.0.4
57
- signing_key:
59
+ signing_key:
58
60
  specification_version: 4
59
- summary: DebugLogger !
61
+ summary: DebugLogger is a simple gem to help debug.
60
62
  test_files: []