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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a676cc9dfd18420e4778a37abe7a2fe93b8297f
4
- data.tar.gz: a463025326a5378dcbf698130faeb81107f03b34
3
+ metadata.gz: 29f7e87caf00044a7159423f4491eec2e78a0fdd
4
+ data.tar.gz: a79ef8730bc758514bf87dcb81ef6c827dca08ef
5
5
  SHA512:
6
- metadata.gz: 449b24b4feb5f13c3441fadb4027eb1706d11ee965df27e547f236d7c420b431cecf031f3f04ff4538ca4a8aaff54b6b0a3c2d0dbcc1cbd8577b19895a3e6377
7
- data.tar.gz: e30d9bdbae1d52ace5c793090cf4b18efc07b5e3e705c76479a9e096e2fa4d073653dc0d343502ef8b302b8043963c0c95564768be7a0c571790b11daf8d4cea
6
+ metadata.gz: 23076fd81c358e68c5cfc0c3efa1c7613ef8d81b821237178495e21f55e3e8d79ad92942dea447fd52ed5b44a9ffc61d34dc96f7eae813c985c8660e8442d831
7
+ data.tar.gz: 65a3786af1c5cbda396f766d048fca8a8a34335650cb4cbc320abdce32d31c643a737a701846e01557693227bde045f59d7b275d639929342678ef7b7ba36b05
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ group :test do
9
9
  gem 'coveralls', require: false
10
10
  gem 'rspec'
11
11
  gem 'timecop'
12
- gem 'daily_logger', git: 'https://github.com/SpringMT/daily_logger.git'
12
+ gem 'daily_logger'
13
13
  end
14
14
 
15
15
 
@@ -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.2'
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(log_dir)
27
- Timecop.freeze(Time.now)
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.2
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-14 00:00:00.000000000 Z
11
+ date: 2013-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack