strftime_logger 0.0.2 → 0.0.3

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: 5ccf12099be5e2b587c5afc7748143358284427b
4
- data.tar.gz: 1e8e3a223b1cf6e18fa7257dec026577dc84f6b7
3
+ metadata.gz: ece65b475f10961a1676f2ee93267fb74cb95cf1
4
+ data.tar.gz: 844f73b09c506445694540aa28d0d53fad80e97f
5
5
  SHA512:
6
- metadata.gz: b433ff7022ecb60477351c6ecbbe371c08aa1fbe7c0fd8f2e753bb69b1608940b6d33698583e1ed863d86b8469c02bfc894dcea1d412dc2afa78bd606ecb7917
7
- data.tar.gz: 7b91de115753c90f49af546a072cf76ebd656e1ae9d32ab7654fe062a7c03e527658ab74910349113d03614ea271e034df36070c1167a6aa214d4e6c8fc2e92f
6
+ metadata.gz: 96c9dfac4de0c32c19b26bf6154bb3b410d8b76dd326e99f29ea1b4f0de571cecba193f85da6eb09598398320adbc5ea21f05de669baf9833a3ef5084b791879
7
+ data.tar.gz: 8efa1dd12b595043c7b2e8351ed5f136086cbbdfc57da12ef5f98c004059bd6b23d41703974a59ac266f3e187cfaff007601229c6b7c7711d32bafce8f7657c7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.0.3 (2014/07/25)
2
+
3
+ Changes:
4
+
5
+ * Shaw all backtrace lines when the logger received an error instance
6
+
1
7
  # 0.0.2 (2014/07/14)
2
8
 
3
9
  Enhancements:
@@ -36,7 +36,7 @@ class StrftimeLogger
36
36
  case message
37
37
  when ::Exception
38
38
  e = message
39
- "#{e.class} #{e.message} #{e.backtrace.first}"
39
+ "#{e.class} (#{e.message})\\n #{e.backtrace.join("\\n ")}}"
40
40
  else
41
41
  message.to_s.gsub(/\n/, "\\n")
42
42
  end
@@ -27,7 +27,7 @@ describe StrftimeLogger do
27
27
  end
28
28
  File.open("#{log_dir}/application.log.#{today}") do |f|
29
29
  expect(f.gets).to eq "#{now} [INFO] test\n"
30
- expect(f.gets).to match(/#{Regexp.escape(now)} \[INFO\] ArgumentError test/)
30
+ expect(f.gets).to match(/#{Regexp.escape(now)} \[INFO\] ArgumentError \(test\)\\n.*formatter_spec\.rb/)
31
31
  end
32
32
  end
33
33
 
@@ -40,7 +40,7 @@ describe StrftimeLogger do
40
40
  end
41
41
  File.open("#{log_dir}/application.log.#{today}") do |f|
42
42
  expect(f.gets).to eq "test\n"
43
- expect(f.gets).to match(/ArgumentError test/)
43
+ expect(f.gets).to match(/ArgumentError \(test\)\\n.*formatter_spec\.rb/)
44
44
  end
45
45
  end
46
46
  end
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "strftime_logger"
7
- gem.version = "0.0.2"
7
+ gem.version = "0.0.3"
8
8
  gem.authors = ["Naotoshi Seo"]
9
9
  gem.email = ["sonots@gmail.com"]
10
10
  gem.description = %q{A logger treats log rotation in strftime fashion}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strftime_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A logger treats log rotation in strftime fashion
14
14
  email: