daily_logger 0.0.1 → 0.0.2

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: 1ae66ffd5b9886b69f59226a9adea89dd3f6b7b9
4
- data.tar.gz: 69aa1d917eee5b8d8ab5d66ab741f71eedf548ed
3
+ metadata.gz: 8a9a08f69d3bd9d8db9ff3c5c1845f367bea1049
4
+ data.tar.gz: 2650b245669c57b748c4530f50f276710f76fbd4
5
5
  SHA512:
6
- metadata.gz: fe9e39ee297d205696f91ca6be3c50b9047883743c15270c0c644381bc1b718d2e87a984220cc1c8b8985aa991d9e67ac31b92110cd4b7805f0993375b1d605a
7
- data.tar.gz: 6b3980e648aa0873335633002d9b92eed6fbc7ac4aaef5ad6b2f6c5e7ba495ed1fb7dc1aa4f83bd5e8ee2e89fd9ba1b1748bd052872253e49741f615f5d82d02
6
+ metadata.gz: 6581d190d89cacc52505daf6177c621ea6ecae7e07df310b269458bee489901fc4f2598e1ea1e4e5edb78c213ac293dc1dc803641208f2c07f000ba9ed55085e
7
+ data.tar.gz: 2fca6b640aa77fcdd4ffd130e284a7d710ecd40e6c0a4a1349c32e81f8ac622180117486aaf147e0bea5140d8053cb5b4e40049c4b21e17c0f01b9cbb3eb2fd1
data/daily_logger.gemspec CHANGED
@@ -1,19 +1,22 @@
1
- # -*- encoding: utf-8 -*-
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
 
5
4
  Gem::Specification.new do |gem|
6
5
  gem.name = "daily_logger"
7
- gem.version = "0.0.1"
6
+ gem.version = "0.0.2"
8
7
  gem.authors = ["Spring_MT"]
9
8
  gem.email = ["today.is.sky.blue.sky@gmail.com"]
10
9
  gem.description = %q{Write a gem description}
11
10
  gem.summary = %q{daily lotate logger}
12
11
  gem.homepage = "https://github.com/SpringMT/daily_logger"
12
+ gem.license = "MIT"
13
13
 
14
14
  gem.files = `git ls-files`.split($/)
15
15
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
16
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
17
17
  gem.require_paths = ["lib"]
18
+
19
+ gem.add_development_dependency "bundler", "~> 1.3"
20
+ gem.add_development_dependency "rake"
18
21
  end
19
22
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  require File.dirname(__FILE__) + '/spec_helper'
4
4
  require 'daily_logger'
5
+ require 'fileutils'
5
6
 
6
7
  describe DailyLogger do
7
8
  let(:default_instance) { described_class.new }
@@ -15,17 +16,7 @@ describe DailyLogger do
15
16
  end
16
17
 
17
18
  after do
18
- # サブディレクトリを階層が深い順にソートした配列を作成
19
- dirlist = Dir::glob(log_dir + "**/").sort do |a,b|
20
- b.split('/').size <=> a.split('/').size
21
- end
22
-
23
- dirlist.each do |d|
24
- Dir::foreach(d) do |f|
25
- File::delete(d+f) if ! (/\.+$/ =~ f)
26
- end
27
- Dir::rmdir(d)
28
- end
19
+ FileUtils.rm_rf log_dir
29
20
  Timecop.return
30
21
  end
31
22
 
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daily_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spring_MT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-13 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2013-11-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  description: Write a gem description
14
42
  email:
15
43
  - today.is.sky.blue.sky@gmail.com
@@ -35,7 +63,8 @@ files:
35
63
  - spec/daily_logger_spec.rb
36
64
  - spec/spec_helper.rb
37
65
  homepage: https://github.com/SpringMT/daily_logger
38
- licenses: []
66
+ licenses:
67
+ - MIT
39
68
  metadata: {}
40
69
  post_install_message:
41
70
  rdoc_options: []