rumbrl 0.4.0 → 0.4.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
  SHA1:
3
- metadata.gz: cd9b50771e691f739d4907afd96ae6b815b81d54
4
- data.tar.gz: f3daec85e76d030a6e2488e3455ef1db3070d637
3
+ metadata.gz: 0df055b4af744d97da183e1350071437dcba98b6
4
+ data.tar.gz: b83298184b9a0dc615c0476dfc395a9578dec996
5
5
  SHA512:
6
- metadata.gz: 0dd5b8a4dc6e5f7ec89ae9d384ed6f154265ddabaa7f5c3dd53112ac16dfa408dbed3cbdf393a304183f9930c85e468f367ea5dfdb8c61318a520a0be9ff8952
7
- data.tar.gz: c6c46e5cf46ab53b4f87167104117d77aafb920fcb8638791c4ceea4052b323beb5c33fc32c369114f4909635e4e3cb8902d6993a0d9475f983bf140ece3ee65
6
+ metadata.gz: 48172172ffcfa1529d4f3eb9e2ff52119ccb0b4abef4e189fd96544f34c006cd9959b7f7f494ac9b712f550eda9eb20617bde5751a336d3625865594812d414b
7
+ data.tar.gz: e021ee39c6f6496cc8ad83f88436bc18fb7402214fe67e40418d6fa96192db68743ecdf5420fe1c3ba7191f2dec0b2f456dbea369478636f5c441ad3b6f2684d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rumbrl (0.4.0)
4
+ rumbrl (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -21,7 +21,11 @@ module Rumbrl
21
21
  @size ||= (size || Env.shift_size)
22
22
  @age ||= (age || Env.shift_age)
23
23
  @level ||= (level || ::Logger::INFO)
24
- @dest = log_dest path, nm
24
+ if path.class == ::IO
25
+ @dest = path
26
+ else
27
+ @dest = log_dest(path, nm)
28
+ end
25
29
  end
26
30
 
27
31
  def generate
@@ -45,6 +49,7 @@ module Rumbrl
45
49
  end
46
50
 
47
51
  def init_path(path)
52
+ return if path.class == ::IO
48
53
  dir = ::File.dirname path
49
54
  ::Dir.mkdir(dir) unless ::File.directory? dir
50
55
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version const for gem
4
4
  module Rumbrl
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumbrl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - chr0n1x
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-05 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop