tiny_log 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_log.rb +1 -1
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7775d02acbd568f1139deb0b52e0abbe0e35b1cad644ca690b3c90b18f78b838
4
- data.tar.gz: 884a5941287b46bb187db70a0812e2e4ee3a254ca7839479b37892eed90e4d99
3
+ metadata.gz: 6b0c929818f43c13ea0abc76b487773fffaa9a41dfc9457260f39d5c53c42de5
4
+ data.tar.gz: 782f6be926f8be3420ad06a90df545946a2e94ab5e09a079bbe04d86e6ef20f7
5
5
  SHA512:
6
- metadata.gz: 79a8295c22b0755d18884b77d4d8ab437143b4549b8c608ef44b3980ffc4508e07786bb00d97300df4691f8710a1bade3376348d0914e7d1db1f1f1704d2b2a0
7
- data.tar.gz: 958dcb44bc4dc6c0d114680868014c51b4e1c7875c24f76d2eaf23526a3aa93bcec7dabee1f25be5060b60b7a8668cd1e5843ad7384aa2c2bcc827d41249b758
6
+ metadata.gz: e7fcaeb0db49141f2a37c1619146564541ff4457db10aebc1a68470865bf669d98d355e9194cada4c47614e0ee52c35063a92a2218b756c21cf6eb0cc16d7409
7
+ data.tar.gz: 6893fd027e3d9b7443216385ab4e04169d1c55447af72ee8d7a64ec052356b2af336364859af47362e237f66ce73dc8b384c8e242ba405e954e555282af47fce
data/lib/tiny_log.rb CHANGED
@@ -24,7 +24,7 @@ class TinyLog
24
24
  # timestamp
25
25
  def method_missing(prefix, *msgs)
26
26
  msgs.each do |m|
27
- m.lines.each do |l|
27
+ m.to_s.lines.each do |l|
28
28
  @io.puts "#{Time.now.utc.iso8601(6)} #{Process.pid.to_s.rjust(6)} #{prefix.to_s.upcase} #{l}"
29
29
  end
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt
@@ -10,9 +10,7 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: want to log stuff to a file or $stdout with timestamps in UTC, and be
14
- able to add a logger level to log lines, and absolutely nothing else? then this
15
- library is for you.
13
+ description: a tiny logger with almost no features
16
14
  email: jefflunt@gmail.com
17
15
  executables: []
18
16
  extensions: []
@@ -41,5 +39,7 @@ requirements: []
41
39
  rubygems_version: 3.3.7
42
40
  signing_key:
43
41
  specification_version: 4
44
- summary: a tiny logger with almost no features
42
+ summary: want to log stuff to a file or $stdout with timestamps in UTC, and be able
43
+ to add a logger level to log lines, and absolutely nothing else? then this library
44
+ is for you.
45
45
  test_files: []