loog 0.5.0 → 0.5.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
  SHA256:
3
- metadata.gz: cea04c3238de13e46a75055d845151bc907c33e7f50c34a48574f66f7cf27f07
4
- data.tar.gz: f6024f8ed1224ae10c09e280d9948ab5a0a1d04e92ac58aed1f198b4beb934a7
3
+ metadata.gz: e1ff618d0107b8ec12ffd303cee8926274b2a8a37593ba60eeece9a1c071a7b3
4
+ data.tar.gz: 44cee88f20b6da00bbd425d9faf718295613bd9e786d0344228c054e4d819373
5
5
  SHA512:
6
- metadata.gz: 3bf3a37ccbcaa2f9569622329dbd1134851571151fb56701a1f5bd151deec3e514f2120a39f43892b629450b4a5fb7574dcd87526d0ff65d5bc093c3524b5da5
7
- data.tar.gz: 8994f5542b0a63ed5f7526e47884e30163df2f081a7c0524cb746294af7c2f5d68b16d4befe55ab88fd5144e60d86329522424a8567c17682e33ab280fbf14a7
6
+ metadata.gz: 3d5d4f85a2281ed8348bd4cb871d4903fc49eed43d3221592f8d5ed9f89a16fa49d5c493e1e691ffabc182fd4ba33ba911ef903411faf8f0d8d2c5cdfab431d9
7
+ data.tar.gz: 7e6a683fa912743f79d479fef4ae75d7248015158a947aeff80d8705de100499239841185daaf6e4d296eff7a78644bc8bda677a4dc2ddff9cb3e9c608c18d3a
data/lib/loog.rb CHANGED
@@ -105,7 +105,7 @@ module Loog
105
105
  end
106
106
 
107
107
  def to_s
108
- @lines.join("\n")
108
+ @lines.join
109
109
  end
110
110
  end
111
111
  end
data/loog.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
28
28
  s.required_ruby_version = '>=2.3'
29
29
  s.name = 'loog'
30
- s.version = '0.5.0'
30
+ s.version = '0.5.1'
31
31
  s.license = 'MIT'
32
32
  s.summary = 'Object-oriented logging wrapper'
33
33
  s.description = 'Object-oriented wrapper for Ruby default logging facility'
data/test/test_loog.rb CHANGED
@@ -48,8 +48,9 @@ class LoogTest < Minitest::Test
48
48
 
49
49
  def test_quiet_buffering
50
50
  b = Loog::Buffer.new
51
- msg = 'Hey, друг!'
52
- b.info(msg)
53
- assert_equal(b.to_s, "#{msg}\n")
51
+ b.info('Hey, друг!')
52
+ b.info('Bye!')
53
+ b.info('+')
54
+ assert_equal("Hey, друг!\nBye!\n+\n", b.to_s)
54
55
  end
55
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko