rack-custom_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 +4 -4
- data/Gemfile +1 -1
- data/rack-custom_logger.gemspec +1 -1
- data/spec/rack-custom_logger_spec.rb +4 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29f7e87caf00044a7159423f4491eec2e78a0fdd
|
4
|
+
data.tar.gz: a79ef8730bc758514bf87dcb81ef6c827dca08ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23076fd81c358e68c5cfc0c3efa1c7613ef8d81b821237178495e21f55e3e8d79ad92942dea447fd52ed5b44a9ffc61d34dc96f7eae813c985c8660e8442d831
|
7
|
+
data.tar.gz: 65a3786af1c5cbda396f766d048fca8a8a34335650cb4cbc320abdce32d31c643a737a701846e01557693227bde045f59d7b275d639929342678ef7b7ba36b05
|
data/Gemfile
CHANGED
data/rack-custom_logger.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "rack-custom_logger"
|
6
|
-
spec.version = '0.0.
|
6
|
+
spec.version = '0.0.3'
|
7
7
|
spec.authors = ["SpringMT"]
|
8
8
|
spec.email = ["today.is.sky.blue.sky@gmail.com"]
|
9
9
|
spec.description = %q{Write a gem description}
|
@@ -3,6 +3,7 @@ require 'rack/mock'
|
|
3
3
|
require 'daily_logger'
|
4
4
|
require 'timecop'
|
5
5
|
require 'rack/custom_logger'
|
6
|
+
require 'fileutils'
|
6
7
|
require 'logger'
|
7
8
|
|
8
9
|
require File.dirname(__FILE__) + '/spec_helper'
|
@@ -23,22 +24,12 @@ describe Rack::CustomLogger do
|
|
23
24
|
let(:now) {Time.now.strftime "%Y/%m/%d %H:%M:%S"}
|
24
25
|
|
25
26
|
before do
|
26
|
-
Dir.mkdir
|
27
|
-
Timecop.freeze
|
27
|
+
Dir.mkdir log_dir
|
28
|
+
Timecop.freeze Time.now
|
28
29
|
end
|
29
30
|
|
30
31
|
after do
|
31
|
-
|
32
|
-
dirlist = Dir::glob(log_dir + "**/").sort do |a,b|
|
33
|
-
b.split('/').size <=> a.split('/').size
|
34
|
-
end
|
35
|
-
|
36
|
-
dirlist.each do |d|
|
37
|
-
Dir::foreach(d) do |f|
|
38
|
-
File::delete(d+f) if ! (/\.+$/ =~ f)
|
39
|
-
end
|
40
|
-
Dir::rmdir(d)
|
41
|
-
end
|
32
|
+
FileUtils.rm_rf log_dir
|
42
33
|
Timecop.return
|
43
34
|
end
|
44
35
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-custom_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SpringMT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|