bauxite 0.6.14 → 0.6.15
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 +4 -4
- data/doc/Bauxite.html +1 -1
- data/doc/Bauxite/Action.html +1 -1
- data/doc/Bauxite/ActionModule.html +1 -1
- data/doc/Bauxite/Application.html +1 -1
- data/doc/Bauxite/Context.html +1 -1
- data/doc/Bauxite/Errors.html +1 -1
- data/doc/Bauxite/Errors/AssertionError.html +1 -1
- data/doc/Bauxite/Errors/FileNotFoundError.html +1 -1
- data/doc/Bauxite/Errors/FormatError.html +1 -1
- data/doc/Bauxite/Loggers.html +1 -1
- data/doc/Bauxite/Loggers/CompositeLogger.html +1 -1
- data/doc/Bauxite/Loggers/EchoLogger.html +1 -1
- data/doc/Bauxite/Loggers/FileLogger.html +55 -4
- data/doc/Bauxite/Loggers/HtmlLogger.html +1 -1
- data/doc/Bauxite/Loggers/NullLogger.html +1 -1
- data/doc/Bauxite/Loggers/ReportLogger.html +1 -1
- data/doc/Bauxite/Loggers/TerminalLogger.html +1 -1
- data/doc/Bauxite/Loggers/XtermLogger.html +1 -1
- data/doc/Bauxite/Parser.html +1 -1
- data/doc/Bauxite/ParserModule.html +1 -1
- data/doc/Bauxite/Selector.html +1 -1
- data/doc/Bauxite/SelectorModule.html +1 -1
- data/doc/README_md.html +1 -1
- data/doc/created.rid +3 -3
- data/doc/index.html +1 -1
- data/doc/js/jquery.js +4 -18
- data/doc/js/search_index.js +1 -1
- data/doc/table_of_contents.html +65 -60
- data/lib/bauxite.rb +1 -1
- data/lib/bauxite/loggers/file.rb +15 -0
- metadata +3 -3
data/lib/bauxite.rb
CHANGED
data/lib/bauxite/loggers/file.rb
CHANGED
@@ -27,6 +27,7 @@
|
|
27
27
|
#
|
28
28
|
# File logger options include:
|
29
29
|
# [<tt>file</tt>] Output file name.
|
30
|
+
# [<tt>verbose</tt>] Output all log (e.g. errors) to the file.
|
30
31
|
#
|
31
32
|
#
|
32
33
|
class Bauxite::Loggers::FileLogger < Bauxite::Loggers::NullLogger
|
@@ -38,6 +39,7 @@ class Bauxite::Loggers::FileLogger < Bauxite::Loggers::NullLogger
|
|
38
39
|
unless @file and @file != ''
|
39
40
|
raise ArgumentError, "FileLogger configuration error: Undefined 'file' option."
|
40
41
|
end
|
42
|
+
@verbose = options[:verbose]
|
41
43
|
@lines = []
|
42
44
|
end
|
43
45
|
|
@@ -51,4 +53,17 @@ class Bauxite::Loggers::FileLogger < Bauxite::Loggers::NullLogger
|
|
51
53
|
@lines << action.text
|
52
54
|
yield
|
53
55
|
end
|
56
|
+
|
57
|
+
# Logs the specified string.
|
58
|
+
#
|
59
|
+
# +type+, if specified, should be one of +:error+, +:warning+,
|
60
|
+
# +:info+ (default), +:debug+.
|
61
|
+
#
|
62
|
+
def log(s, type = :info)
|
63
|
+
if @verbose
|
64
|
+
@lines << s
|
65
|
+
else
|
66
|
+
super
|
67
|
+
end
|
68
|
+
end
|
54
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bauxite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patricio Zavolinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: selenium-webdriver
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
version: '0'
|
266
266
|
requirements: []
|
267
267
|
rubyforge_project:
|
268
|
-
rubygems_version: 2.2.
|
268
|
+
rubygems_version: 2.2.2
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: Bauxite is a façade over Selenium intended for non-developers
|