logbert 0.6.15 → 0.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b9c6e7cee9ea7cc78ff9fffdac0d78200909876e
4
- data.tar.gz: a47fa209a40fb1186cc1317ac9b98670b5534d14
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTA3NTAyMGJlNDFkYjE0Y2U5NzBmMWZhZmE4NjYwNWRkN2FkYzBhZA==
5
+ data.tar.gz: !binary |-
6
+ ZDYwOTA3Y2E2YjA3MTU2MzQxZTcxNjRkMGQ3NzMyNzA1Y2YxNTkxNg==
5
7
  SHA512:
6
- metadata.gz: c84631b1cdb64102253b875c728c75592b03336bc261f93526aa11abb42135f10d513ea17a07d2b0895e4f5010a4111d8c08333af31f4aa85bc891583da32cda
7
- data.tar.gz: f3dd689d7c3b4c25d27bfef241279153bd1ddb113c29d74ebf0884dc425b2b39787df79596a46a64664884b3f78fe0c083a6aead47058f0a8f29a7a8006f34a4
8
+ metadata.gz: !binary |-
9
+ MWU5ZGU4MmUyM2UyOTc5NmU2ZTI4YzY1M2Q4N2MxZjg2YTgzNWRmMDIwNTgy
10
+ ZWQ1OGQ0OThmNTRiODYxZWZlZmE4MjE5Y2NjZmUzOTUwYzQ4MWVmZWVkYmM4
11
+ NGU0ZTcxZDQ5NmE1ODU5ODhjYzY2YmEzZmM1ZTIxN2Q0ZTIwZGY=
12
+ data.tar.gz: !binary |-
13
+ OTE0ZjNjZTJiMjYyODFjNWFmMTcxNzM5MTlkMGI1ZGFkZmZiOGNiZTBmMTRk
14
+ MDMyMDYwOWQ0YTU4NzdhNjg4YjMxZjBiYWM2MzNiOWJiNGYyMjAyZWFlMzAx
15
+ Mzk5MWVjMzQ3N2QzZDdmMDYwNWExMzQ4OTY4NTk4NzZmMGM1NGM=
@@ -1,4 +1,5 @@
1
1
 
2
+ require 'fileutils'
2
3
  require 'logbert/handlers/base_handler'
3
4
 
4
5
  module Logbert
@@ -13,6 +14,9 @@ module Logbert
13
14
  end
14
15
 
15
16
  def self.for_path(path)
17
+ dirname = File.dirname(File.absolute_path(path))
18
+ FileUtils.mkdir_p dirname unless File.exists? dirname
19
+
16
20
  fout = File.open(path, "ab")
17
21
  StreamHandler.new fout
18
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logbert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.15
4
+ version: 0.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lauber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-15 00:00:00.000000000 Z
11
+ date: 2013-11-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Change your logging behaviors without mucking with your code!
14
14
  email: constructible.truth@gmail.com
@@ -16,17 +16,17 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/logbert/formatters.rb
20
- - lib/logbert/handlers/base_handler.rb
21
- - lib/logbert/handlers/stream_handler.rb
22
- - lib/logbert/handlers/time_rotator.rb
23
- - lib/logbert/handlers.rb
24
- - lib/logbert/levels.rb
25
- - lib/logbert/logger.rb
19
+ - lib/logbert.rb
26
20
  - lib/logbert/logger_factory.rb
27
- - lib/logbert/message.rb
21
+ - lib/logbert/handlers.rb
28
22
  - lib/logbert/naming.rb
29
- - lib/logbert.rb
23
+ - lib/logbert/message.rb
24
+ - lib/logbert/handlers/time_rotator.rb
25
+ - lib/logbert/handlers/stream_handler.rb
26
+ - lib/logbert/handlers/base_handler.rb
27
+ - lib/logbert/logger.rb
28
+ - lib/logbert/formatters.rb
29
+ - lib/logbert/levels.rb
30
30
  homepage:
31
31
  licenses:
32
32
  - MIT
@@ -37,17 +37,17 @@ require_paths:
37
37
  - lib
38
38
  required_ruby_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ! '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  requirements: []
49
49
  rubyforge_project:
50
- rubygems_version: 2.0.3
50
+ rubygems_version: 2.1.10
51
51
  signing_key:
52
52
  specification_version: 4
53
53
  summary: Logging for winners.