sinlog 0.0.3 → 0.0.4

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: 7b6ddc12bba2068f177da14004c4c8d809576a7fd03447ee5dae69fb19d9697b
4
- data.tar.gz: 8dec27b670c17916d872d6d36a647ee95080375fc01b78933e334bb1219c3578
3
+ metadata.gz: c60448dae40ddc28f6fa370e3562f5ff90011f441037be9a394b352687e406f4
4
+ data.tar.gz: 66953f798342287e954564259d155b54f25ecab161b703f963b9a804023688f0
5
5
  SHA512:
6
- metadata.gz: f7af956f2543e0b4232f1e5a13b6d7c50bbb0a76e1e3ba4f93ae0e3d9fbd62f853c4e04edc176c7bec77e8cd5040d36b6d3c3b521b5a32091ef63824cada8a17
7
- data.tar.gz: 61ae061833061c93ada7731fec870e9fc70df91f0f6be904aa6165eacbc745a8b876a153c8b941b3b26b4e9177169ffaae47720579e60c50512f9f56ce2a3670
6
+ metadata.gz: c6850137afe8222d7000d31c481b1a470625c12172493030de3478ff6cdafc0955bb474f114e2385886e2ae289de6c4afa932aab1e5f445b44dedcaa3503c116
7
+ data.tar.gz: 93ed9d34747061ef4b191341879037f8b68c907b8eda2cda58ef6cc4f2fee6418686a5bf6471b4ef9d9206089da6a533abc0de0f007670eae7254279988ed2a3
@@ -26,49 +26,37 @@ class Sinlog
26
26
  # end
27
27
  #
28
28
  module LogExt
29
- # Logs the current object at *debug* level using Sinlog.logger
30
29
  refine Object do
30
+ # Logs the current object at *debug* level using Sinlog.logger
31
31
  def log_dbg
32
32
  Sinlog.logger.debug(self)
33
33
  end
34
- end
35
34
 
36
- # Logs the current object at *information* level using Sinlog.logger
37
- refine Object do
38
- # logger.info
35
+ # Logs the current object at *information* level using Sinlog.logger
39
36
  def log_info
40
37
  Sinlog.logger.info(self)
41
38
  end
42
- end
43
39
 
44
- # Logs the current object at *warning* level using Sinlog.logger
45
- refine Object do
40
+ # Logs the current object at *warning* level using Sinlog.logger
46
41
  def log_warn
47
42
  Sinlog.logger.warn(self)
48
43
  end
49
- end
50
44
 
51
- # Logs the current object at *error* level using Sinlog.logger
52
- refine Object do
45
+ # Logs the current object at *error* level using Sinlog.logger
53
46
  def log_err
54
47
  Sinlog.logger.error(self)
55
48
  end
56
- end
57
49
 
58
- # Logs the current object at *fatal* level using Sinlog.logger
59
- refine Object do
50
+ # Logs the current object at *fatal* level using Sinlog.logger
60
51
  def log_fatal
61
52
  Sinlog.logger.fatal(self)
62
53
  end
63
- end
64
54
 
65
- # Logs the current object at *unknown* level using Sinlog.logger
66
- refine Object do
55
+ # Logs the current object at *unknown* level using Sinlog.logger
67
56
  def log_unk
68
57
  Sinlog.logger.unknown(self)
69
58
  end
59
+ # -----
70
60
  end
71
-
72
- # -----
73
61
  end
74
62
  end
@@ -38,44 +38,32 @@ class Sinlog
38
38
  def dbg
39
39
  Sinlog.logger.debug(self)
40
40
  end
41
- end
42
41
 
43
- # Logs the current object at *information* level using Sinlog.logger
44
- refine Object do
45
- # logger.info
42
+ # Logs the current object at *information* level using Sinlog.logger
46
43
  def info
47
44
  Sinlog.logger.info(self)
48
45
  end
49
- end
50
46
 
51
- # Logs the current object at *warning* level using Sinlog.logger
52
- refine Object do
47
+ # Logs the current object at *warning* level using Sinlog.logger
53
48
  def warn
54
49
  Sinlog.logger.warn(self)
55
50
  end
56
- end
57
51
 
58
- # Logs the current object at *error* level using Sinlog.logger
59
- refine Object do
52
+ # Logs the current object at *error* level using Sinlog.logger
60
53
  def err
61
54
  Sinlog.logger.error(self)
62
55
  end
63
- end
64
56
 
65
- # Logs the current object at *fatal* level using Sinlog.logger
66
- refine Object do
57
+ # Logs the current object at *fatal* level using Sinlog.logger
67
58
  def fatal
68
59
  Sinlog.logger.fatal(self)
69
60
  end
70
- end
71
61
 
72
- # Logs the current object at *unknown* level using Sinlog.logger
73
- refine Object do
62
+ # Logs the current object at *unknown* level using Sinlog.logger
74
63
  def unk
75
64
  Sinlog.logger.unknown(self)
76
65
  end
66
+ # -----
77
67
  end
78
-
79
- # -----
80
68
  end
81
69
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Sinlog
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
@@ -7,29 +7,19 @@ class Sinlog
7
7
  refine Object do
8
8
  sig { void }
9
9
  def log_dbg; end
10
- end
11
10
 
12
- refine Object do
13
11
  sig { void }
14
12
  def log_info; end
15
- end
16
13
 
17
- refine Object do
18
14
  sig { void }
19
15
  def log_warn; end
20
- end
21
16
 
22
- refine Object do
23
17
  sig { void }
24
18
  def log_err; end
25
- end
26
19
 
27
- refine Object do
28
20
  sig { void }
29
21
  def log_fatal; end
30
- end
31
22
 
32
- refine Object do
33
23
  sig { void }
34
24
  def log_unk; end
35
25
  end
@@ -3,33 +3,23 @@
3
3
  # typed: true
4
4
 
5
5
  class Sinlog
6
- module LogExt
6
+ module LogShortExt
7
7
  refine Object do
8
8
  sig { void }
9
9
  def dbg; end
10
- end
11
10
 
12
- refine Object do
13
11
  sig { void }
14
12
  def info; end
15
- end
16
13
 
17
- refine Object do
18
14
  sig { void }
19
15
  def warn; end
20
- end
21
16
 
22
- refine Object do
23
17
  sig { void }
24
18
  def err; end
25
- end
26
19
 
27
- refine Object do
28
20
  sig { void }
29
21
  def fatal; end
30
- end
31
22
 
32
- refine Object do
33
23
  sig { void }
34
24
  def unk; end
35
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 2moe