log 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/log/log_consumer.rb +4 -11
- data/lib/log/version.rb +1 -1
- metadata +5 -10
data/lib/log/log_consumer.rb
CHANGED
@@ -92,17 +92,10 @@ module BBFS
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def consume data
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
Exception
|
100
|
-
puts "Failed to open log file:#{@file_name}"
|
101
|
-
puts $!.class
|
102
|
-
puts $!
|
103
|
-
ensure
|
104
|
-
file_handler.close
|
105
|
-
end
|
95
|
+
FileUtils.mkdir_p(File.dirname(@file_name))
|
96
|
+
file_handler = File.new @file_name, 'a'
|
97
|
+
file_handler.puts data
|
98
|
+
file_handler.close
|
106
99
|
end
|
107
100
|
end
|
108
101
|
end
|
data/lib/log/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-02 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: params
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &19845920 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,12 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
24
|
+
version_requirements: *19845920
|
30
25
|
description: logging data to file, console etc. Data can be pushed using info\warning\error\debug-levels
|
31
26
|
categories
|
32
27
|
email: yaron.dror.bb@gmail.com
|
@@ -58,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
53
|
version: '0'
|
59
54
|
requirements: []
|
60
55
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.8.
|
56
|
+
rubygems_version: 1.8.10
|
62
57
|
signing_key:
|
63
58
|
specification_version: 3
|
64
59
|
summary: Library for logging data.
|