brake 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +10 -3
- data/lib/brake.rb +8 -5
- metadata +6 -11
data/README
CHANGED
@@ -20,6 +20,8 @@ Global options:
|
|
20
20
|
-c, --controller chrome String: The type of controller to run (API, Chrome, Safari)
|
21
21
|
--[no-]headless Bool: To turn on/off headless mode (only works on Linux!)
|
22
22
|
--[no-]cleanup Bool: To turn on/off setup cleanup
|
23
|
+
--[no-]database Bool: Defines whether to log out to the database
|
24
|
+
--[no-]jenkins Bool: Defines whether to log out to the jenkins specific database
|
23
25
|
--retries 3 String: The number of retries to perform on element methods
|
24
26
|
--timeouts 10 String: The length of the timeouts on element methods
|
25
27
|
|
@@ -29,14 +31,14 @@ Web options:
|
|
29
31
|
|
30
32
|
Browser options:
|
31
33
|
-H, --[no-]highlight Bool: To turn on/off the highlight of elements
|
32
|
-
Brake options:
|
33
34
|
|
35
|
+
Brake options:
|
34
36
|
-V, --version Bool: Output the current version of brake
|
35
|
-
-I, --iterate
|
37
|
+
-I, --iterate 5 Int: Number of times to run the task
|
36
38
|
-U, --[no-]untangle Bool: Turns Debug on/off
|
37
39
|
-h, --help You're Looking at it
|
38
40
|
|
39
|
-
For
|
41
|
+
For further assistance please contact Ben Slaughter or Jonathan Chrisp
|
40
42
|
bens@brandwatch.com or jonathan@brandwatch.com
|
41
43
|
|
42
44
|
Release Notes:
|
@@ -91,4 +93,9 @@ Ben - Added brake version option
|
|
91
93
|
Ben - Added the exit code to mimic what is returned from the task
|
92
94
|
Ben - Fixed test iterate
|
93
95
|
|
96
|
+
0.3.5
|
97
|
+
Jon - Added the database option
|
98
|
+
Jon - Added the jenkins option
|
99
|
+
Jon - Cleaned up spelling errors
|
100
|
+
|
94
101
|
END
|
data/lib/brake.rb
CHANGED
@@ -67,14 +67,14 @@ class Brake
|
|
67
67
|
# Parses the options from the command line
|
68
68
|
# Converts the parsed information into a Hash
|
69
69
|
# The Hash is then returned
|
70
|
-
# @return [hash]
|
70
|
+
# @return [hash] arguments a hash containg the parsed and data
|
71
71
|
def parse_command_line_options
|
72
72
|
begin
|
73
73
|
# parses the options from the command line
|
74
74
|
OptionParser.new do |opts|
|
75
75
|
opts.banner = "\nBrake, A Cucumber options parser wrapper for Rake, because, cake was already taken!, Give Rake a Brake.\nUsage: brake <task> [options]"
|
76
76
|
opts.separator ""
|
77
|
-
opts.separator "
|
77
|
+
opts.separator "Cucumber options:"
|
78
78
|
opts.on("-t", "--tags @high,@login", Array, "Array: A list of all tagged test to be run" ) do |opt|
|
79
79
|
@arguments[:tags] ||= []
|
80
80
|
@arguments[:tags].push( "--tags #{opt.join(',')}" )
|
@@ -118,9 +118,12 @@ class Brake
|
|
118
118
|
opts.on("--[no-]cleanup", "Bool: To turn on/off setup cleanup" ) do |opt|
|
119
119
|
@arguments[:cleanup] = "CLEANUP=#{opt.to_s}"
|
120
120
|
end
|
121
|
-
opts.on("--[no-]
|
121
|
+
opts.on("--[no-]database", "Bool: Defines whether to log out to the database" ) do |opt|
|
122
122
|
@arguments[:database] = "DATABASE=#{opt}"
|
123
|
-
end
|
123
|
+
end
|
124
|
+
opts.on("--[no-]jenkins", "Bool: Defines whether to log out to the jenkins specific database" ) do |opt|
|
125
|
+
@arguments[:jenkins] = "JENKINS=#{opt}"
|
126
|
+
end
|
124
127
|
opts.on("--retries 3", String, "String: The number of retries to perform on element methods" ) do |opt|
|
125
128
|
@arguments[:retries] = "RETRIES=#{opt.downcase}"
|
126
129
|
end
|
@@ -164,7 +167,7 @@ class Brake
|
|
164
167
|
end
|
165
168
|
opts.on_tail("-h", "--help", "You're Looking at it") do
|
166
169
|
puts opts
|
167
|
-
puts "\nFor
|
170
|
+
puts "\nFor further assistance please contact Ben Slaughter or Jonathan Chrisp"
|
168
171
|
puts "bens@brandwatch.com or jonathan@brandwatch.com"
|
169
172
|
exit
|
170
173
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,24 +10,19 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-12-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &70128126068120 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - =
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 0.9.2.2
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
none: false
|
27
|
-
requirements:
|
28
|
-
- - '='
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
version: 0.9.2.2
|
25
|
+
version_requirements: *70128126068120
|
31
26
|
description: A Cucumber options parser wrapper for Rake, because, cake was already
|
32
27
|
taken!
|
33
28
|
email: bens@brandwatch.com
|
@@ -60,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
55
|
version: '0'
|
61
56
|
requirements: []
|
62
57
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.8.
|
58
|
+
rubygems_version: 1.8.10
|
64
59
|
signing_key:
|
65
60
|
specification_version: 3
|
66
61
|
summary: A Cucumber options parser wrapper for Rake.
|