brake 0.3.1 → 0.3.2
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.
- data/lib/brake.rb +14 -4
- metadata +2 -2
data/lib/brake.rb
CHANGED
@@ -73,15 +73,27 @@ class Brake
|
|
73
73
|
@arguments[:tags] ||= []
|
74
74
|
@arguments[:tags].push( "--tags #{opt.join(',')}" )
|
75
75
|
end
|
76
|
-
opts.on("-d", "--dry-run", "Bool:
|
76
|
+
opts.on("-d", "--dry-run", "Bool: Invokes the formatters without executing steps" ) do |opt|
|
77
77
|
@arguments[:dry_run] = "--dry-run"
|
78
78
|
end
|
79
79
|
opts.on("-v", "--verbose", "Bool: Show the files and features loaded" ) do |opt|
|
80
80
|
@arguments[:verbose] = "--verbose"
|
81
81
|
end
|
82
|
-
opts.on("-f", "--format pretty", String, "String: How to format the
|
82
|
+
opts.on("-f", "--format pretty", String, "String: How to format the output (Default: pretty)" ) do |opt|
|
83
83
|
@arguments[:format] = "--format #{opt}"
|
84
84
|
end
|
85
|
+
opts.on("-S", "--strict", "Bool: Fail if there are and undefined or pending steps" ) do |opt|
|
86
|
+
@arguments[:strict] = "--strict"
|
87
|
+
end
|
88
|
+
opts.on("-n", "--name featureName", String, "String: Only execute features with a partial match to the given name" ) do |opt|
|
89
|
+
@arguments[:format] = "--name #{opt}"
|
90
|
+
end
|
91
|
+
opts.on("-g", "--guess", "Bool: Guess best match for ambiguous steps" ) do |opt|
|
92
|
+
@arguments[:guess] = "--guess"
|
93
|
+
end
|
94
|
+
opts.on("-x", "--expand", "Bool: Expand scenario outline tables in output" ) do |opt|
|
95
|
+
@arguments[:expand] = "--expand"
|
96
|
+
end
|
85
97
|
|
86
98
|
opts.separator ""
|
87
99
|
opts.separator "Global options:"
|
@@ -154,8 +166,6 @@ class Brake
|
|
154
166
|
|
155
167
|
# Runs the given rake task with the given arguments
|
156
168
|
# @param [string] task This is the name of the rake task to be invoked
|
157
|
-
# @param [hash] arguments a hash containing the arguments to be passed to the task
|
158
|
-
# @note There are 2 pre built tasks bw/brandwatchWeb and api/brandwatchapi
|
159
169
|
def run_rake_task( task )
|
160
170
|
puts "running task: " + task
|
161
171
|
self.debug( @arguments )
|
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.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-11-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|