lamian 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: af55048dfae57a8cb4c142cc91a3e184a840df54
4
- data.tar.gz: 259f504ea8d043659adfa66a736974e6f1c0d344
3
+ metadata.gz: 24d1164d3841568b5d07b718edc019cf42f4f313
4
+ data.tar.gz: 332746b08ccdd3aee52866ce5ad96742691fa553
5
5
  SHA512:
6
- metadata.gz: 605dcc50b3472cd341dd9ea3f8aceae8a0c180679f19bf86189d1c02783d61eba98ef6ce7096cf25851de11bbfb5137633e3cd544793bf5999d388dafc73e949
7
- data.tar.gz: a5b1b27b04d6bcb2a184c8a4acb4e1dec2f2f99f650fb605ca5e7c49e57ad408c23fc9cda35dbdd013d24d780021520bc056b734549ae65ab2ffecb14246fa90
6
+ metadata.gz: f4728316cf6c95f5e858da5488557e56176d9ed01df8df086b9f6aa97e68aaa45f309927466621a4ba1091b6d32542c720aa5025def966799148faa3d3a91857
7
+ data.tar.gz: 835a846f044e921f0b8fbf239a99063c46170812c37fcadc061418bba68c2abe165788fbb76fe58a4d7138df0681b7a37eb11316fc3a7ab7d0653ecbdbd3f91b
data/lib/lamian.rb CHANGED
@@ -29,8 +29,8 @@ module Lamian
29
29
  logger.run { yield }
30
30
  end
31
31
 
32
- def dump
33
- logger.dump
32
+ def dump(format: nil)
33
+ logger.dump(format: format)
34
34
  end
35
35
  end
36
36
  end
data/lib/lamian/logger.rb CHANGED
@@ -27,7 +27,7 @@ module Lamian
27
27
 
28
28
  def dump(format: nil)
29
29
  result = logdevs[-1].string.dup
30
- formatter ? apply_format(format, result) : result
30
+ format ? apply_format(format, result) : result
31
31
  end
32
32
 
33
33
  private
@@ -35,7 +35,7 @@ module Lamian
35
35
  attr_accessor :level, :logdevs, :formatter
36
36
 
37
37
  def apply_format(_format, result)
38
- result.gsub!(/\[\d{1,2}m/)
38
+ result.gsub!(/\[\d{1,2}m/, '')
39
39
  result
40
40
  end
41
41
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Lamian
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lamian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JelF