bovem 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/Bovem.html +1 -1
- data/doc/Bovem/Configuration.html +1 -1
- data/doc/Bovem/Console.html +1 -1
- data/doc/Bovem/Errors.html +1 -1
- data/doc/Bovem/Errors/InvalidConfiguration.html +1 -1
- data/doc/Bovem/Errors/InvalidLogger.html +1 -1
- data/doc/Bovem/Logger.html +1 -1
- data/doc/Bovem/Shell.html +1 -1
- data/doc/Bovem/Version.html +2 -2
- data/doc/_index.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/top-level-namespace.html +1 -1
- data/lib/bovem/version.rb +1 -1
- data/spec/bovem/logger_spec.rb +12 -6
- metadata +3 -3
data/doc/Bovem.html
CHANGED
@@ -176,7 +176,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on Mon Oct 22
|
179
|
+
Generated on Mon Oct 22 09:30:26 2012 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
181
|
0.8.2.1 (ruby-1.9.2).
|
182
182
|
</div>
|
@@ -589,7 +589,7 @@ config.property = "VALUE"
|
|
589
589
|
</div>
|
590
590
|
|
591
591
|
<div id="footer">
|
592
|
-
Generated on Mon Oct 22
|
592
|
+
Generated on Mon Oct 22 09:30:27 2012 by
|
593
593
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
594
594
|
0.8.2.1 (ruby-1.9.2).
|
595
595
|
</div>
|
data/doc/Bovem/Console.html
CHANGED
@@ -4841,7 +4841,7 @@
|
|
4841
4841
|
</div>
|
4842
4842
|
|
4843
4843
|
<div id="footer">
|
4844
|
-
Generated on Mon Oct 22
|
4844
|
+
Generated on Mon Oct 22 09:30:27 2012 by
|
4845
4845
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
4846
4846
|
0.8.2.1 (ruby-1.9.2).
|
4847
4847
|
</div>
|
data/doc/Bovem/Errors.html
CHANGED
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on Mon Oct 22
|
119
|
+
Generated on Mon Oct 22 09:30:26 2012 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.8.2.1 (ruby-1.9.2).
|
122
122
|
</div>
|
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on Mon Oct 22
|
127
|
+
Generated on Mon Oct 22 09:30:27 2012 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.2.1 (ruby-1.9.2).
|
130
130
|
</div>
|
@@ -124,7 +124,7 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on Mon Oct 22
|
127
|
+
Generated on Mon Oct 22 09:30:27 2012 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
129
|
0.8.2.1 (ruby-1.9.2).
|
130
130
|
</div>
|
data/doc/Bovem/Logger.html
CHANGED
@@ -887,7 +887,7 @@
|
|
887
887
|
</div>
|
888
888
|
|
889
889
|
<div id="footer">
|
890
|
-
Generated on Mon Oct 22
|
890
|
+
Generated on Mon Oct 22 09:30:27 2012 by
|
891
891
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
892
892
|
0.8.2.1 (ruby-1.9.2).
|
893
893
|
</div>
|
data/doc/Bovem/Shell.html
CHANGED
@@ -2283,7 +2283,7 @@
|
|
2283
2283
|
</div>
|
2284
2284
|
|
2285
2285
|
<div id="footer">
|
2286
|
-
Generated on Mon Oct 22
|
2286
|
+
Generated on Mon Oct 22 09:30:27 2012 by
|
2287
2287
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2288
2288
|
0.8.2.1 (ruby-1.9.2).
|
2289
2289
|
</div>
|
data/doc/Bovem/Version.html
CHANGED
@@ -149,7 +149,7 @@
|
|
149
149
|
|
150
150
|
</div>
|
151
151
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='int'>
|
152
|
+
<dd><pre class="code"><span class='int'>6</span></pre></dd>
|
153
153
|
|
154
154
|
<dt id="STRING-constant" class="">STRING =
|
155
155
|
<div class="docstring">
|
@@ -180,7 +180,7 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on Mon Oct 22
|
183
|
+
Generated on Mon Oct 22 09:30:26 2012 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
185
|
0.8.2.1 (ruby-1.9.2).
|
186
186
|
</div>
|
data/doc/_index.html
CHANGED
@@ -205,7 +205,7 @@
|
|
205
205
|
</div>
|
206
206
|
|
207
207
|
<div id="footer">
|
208
|
-
Generated on Mon Oct 22
|
208
|
+
Generated on Mon Oct 22 09:30:26 2012 by
|
209
209
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
210
210
|
0.8.2.1 (ruby-1.9.2).
|
211
211
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -96,7 +96,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
96
96
|
</div></div>
|
97
97
|
|
98
98
|
<div id="footer">
|
99
|
-
Generated on Mon Oct 22
|
99
|
+
Generated on Mon Oct 22 09:30:26 2012 by
|
100
100
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
101
101
|
0.8.2.1 (ruby-1.9.2).
|
102
102
|
</div>
|
data/doc/index.html
CHANGED
@@ -96,7 +96,7 @@ Licensed under the MIT license, which can be found at <a href="http://www.openso
|
|
96
96
|
</div></div>
|
97
97
|
|
98
98
|
<div id="footer">
|
99
|
-
Generated on Mon Oct 22
|
99
|
+
Generated on Mon Oct 22 09:30:26 2012 by
|
100
100
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
101
101
|
0.8.2.1 (ruby-1.9.2).
|
102
102
|
</div>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div id="footer">
|
106
|
-
Generated on Mon Oct 22
|
106
|
+
Generated on Mon Oct 22 09:30:26 2012 by
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
108
108
|
0.8.2.1 (ruby-1.9.2).
|
109
109
|
</div>
|
data/lib/bovem/version.rb
CHANGED
data/spec/bovem/logger_spec.rb
CHANGED
@@ -43,34 +43,40 @@ describe Bovem::Logger do
|
|
43
43
|
buffer.string.split("\n").last.strip.gsub(/ T\+\d+\.\d+/, "")
|
44
44
|
end
|
45
45
|
|
46
|
+
before(:each) do
|
47
|
+
now = Time.now
|
48
|
+
Time.stub(:now).and_return(now)
|
49
|
+
@time = now.strftime("%Y/%b/%d %H:%M:%S")
|
50
|
+
end
|
51
|
+
|
46
52
|
it "should correctly format a DEBUG message" do
|
47
53
|
logger.debug("Message.")
|
48
|
-
expect(get_last_line(output)).to eq("\e[1m\e[36m[#{
|
54
|
+
expect(get_last_line(output)).to eq("\e[1m\e[36m[#{@time}] DEBUG:\e[0m Message.")
|
49
55
|
end
|
50
56
|
|
51
57
|
it "should correctly format a INFO message" do
|
52
58
|
logger.info("Message.")
|
53
|
-
expect(get_last_line(output)).to eq("\e[1m\e[32m[#{
|
59
|
+
expect(get_last_line(output)).to eq("\e[1m\e[32m[#{@time}] INFO:\e[0m Message.")
|
54
60
|
end
|
55
61
|
|
56
62
|
it "should correctly format a WARN message" do
|
57
63
|
logger.warn("Message.")
|
58
|
-
expect(get_last_line(output)).to eq("\e[1m\e[33m[#{
|
64
|
+
expect(get_last_line(output)).to eq("\e[1m\e[33m[#{@time}] WARN:\e[0m Message.")
|
59
65
|
end
|
60
66
|
|
61
67
|
it "should correctly format a ERROR message" do
|
62
68
|
logger.error("Message.")
|
63
|
-
expect(get_last_line(output)).to eq("\e[1m\e[31m[#{
|
69
|
+
expect(get_last_line(output)).to eq("\e[1m\e[31m[#{@time}] ERROR:\e[0m Message.")
|
64
70
|
end
|
65
71
|
|
66
72
|
it "should correctly format a FATAL message" do
|
67
73
|
logger.fatal("Message.")
|
68
|
-
expect(get_last_line(output)).to eq("\e[1m\e[35m[#{
|
74
|
+
expect(get_last_line(output)).to eq("\e[1m\e[35m[#{@time}] FATAL:\e[0m Message.")
|
69
75
|
end
|
70
76
|
|
71
77
|
it "should correctly format a INVALID message" do
|
72
78
|
logger.log(::Logger::UNKNOWN, "Message.")
|
73
|
-
expect(get_last_line(output)).to eq("\e[1m\e[37m[#{
|
79
|
+
expect(get_last_line(output)).to eq("\e[1m\e[37m[#{@time}] ANY:\e[0m Message.")
|
74
80
|
end
|
75
81
|
end
|
76
82
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bovem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -220,7 +220,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
segments:
|
222
222
|
- 0
|
223
|
-
hash:
|
223
|
+
hash: 1890320634245801331
|
224
224
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
225
|
none: false
|
226
226
|
requirements:
|
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
229
|
version: '0'
|
230
230
|
segments:
|
231
231
|
- 0
|
232
|
-
hash:
|
232
|
+
hash: 1890320634245801331
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project: bovem
|
235
235
|
rubygems_version: 1.8.24
|