itz_logger 0.1.2 → 0.2.0

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
  SHA256:
3
- metadata.gz: 261717f12ab5bd582561d88f1dd6d643743b1c01adc731072f91784c5091761a
4
- data.tar.gz: 6095b52b9f640f11fe4c38030b2489914c6b225a5269bd1d3dd6de648dc3eb1b
3
+ metadata.gz: 54fac3c5d4fdf043150db6594822de8af822a8720e13f5ee8a0c3c942e77b508
4
+ data.tar.gz: b70197329a6a3c23f1d6b9839ad9557231b5f76a4d14f9c3eea802058fccaec9
5
5
  SHA512:
6
- metadata.gz: ba78c6fd1bf58732cb9c2424491a505d852462fe23495153fb6d58f8ddfb7c68654be5a89b2a999e7c3bad5769ff8bb21050d174a84d5c403c578c90804333a4
7
- data.tar.gz: 6c5034589768897294f06f9fad9fe67e0f4792bdd50394c9bd8b314e1df8c1323aa6beaacdd9155407877a951970efaf30148473299616e7b988bbdf3c0b22a9
6
+ metadata.gz: 1e243a025c4234fe9fcd1353e1373394b6e024223af4db7d30fe7293ce0f9920319e3c5a5ddcf277055476c0e0194c57a9bf87deb36f3c520f1a895ec9183ac3
7
+ data.tar.gz: 86626b83505fa9be59bfb31f697f04c32a12c4b9ff0278bc4f39d0f472b49278c391190e8ee3e4433443c554e4e3f152414602c9f59abaab217577d366de74d3
@@ -9,9 +9,11 @@ module ItzLogger
9
9
  class Formatter
10
10
 
11
11
  def self.format(message)
12
- puts "#{message.type.to_s.upcase} |" +
13
- " #{message.created_at} |" +
14
- " #{message.message}"
12
+ printf(
13
+ "%-8s | %-26 | %s\n",
14
+ message.type.to_s.upcase,
15
+ message.created_at,
16
+ message.message)
15
17
  end
16
18
 
17
19
  end
@@ -1,3 +1,3 @@
1
1
  module ItzLogger
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itz_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Schaarschmidt