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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rumbrl/factory.rb +6 -1
- data/lib/rumbrl/version.rb +1 -1
- 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: 0df055b4af744d97da183e1350071437dcba98b6
|
4
|
+
data.tar.gz: b83298184b9a0dc615c0476dfc395a9578dec996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48172172ffcfa1529d4f3eb9e2ff52119ccb0b4abef4e189fd96544f34c006cd9959b7f7f494ac9b712f550eda9eb20617bde5751a336d3625865594812d414b
|
7
|
+
data.tar.gz: e021ee39c6f6496cc8ad83f88436bc18fb7402214fe67e40418d6fa96192db68743ecdf5420fe1c3ba7191f2dec0b2f456dbea369478636f5c441ad3b6f2684d
|
data/Gemfile.lock
CHANGED
data/lib/rumbrl/factory.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/rumbrl/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|