brake 0.1.4 → 0.1.5
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 +10 -9
- metadata +2 -2
data/lib/brake.rb
CHANGED
@@ -46,21 +46,22 @@ class Brake
|
|
46
46
|
opts.on("-t", "--tags @high,@login", Array, "Array: A list of all tagged test to be run" ) { |o| options.push([:tags, o]) }
|
47
47
|
opts.on("-l", "--log_level debug", String, "String: The log output level debug|info" ) { |o| options.push([:log_level, o]) }
|
48
48
|
opts.separator ""
|
49
|
-
opts.separator "Browser options:"
|
50
|
-
opts.on("-H", "--[no-]highlight", "Bool: To turn off the highlight of elements" ) { |o| options.push([:highlight, o]) }
|
51
|
-
opts.separator ""
|
52
49
|
opts.separator "BrandwatchWeb options:"
|
53
|
-
opts.on("-
|
50
|
+
opts.on("-c", "--controller chrome", String, "String: The type of controller to run (API, Chrome, Safari)" ) { |o| options.push([:controller, o]) }
|
54
51
|
opts.on("-s", "--screen 1280,1024", Array, "Array: The width,hight of the browser window" ) { |o| options.push([:screen, o]) }
|
55
52
|
opts.on("--pos", "--position 0,0", Array, "Array: The x,y coords of the browser 0,0 top left" ) { |o| options.push([:position, o]) }
|
56
53
|
opts.separator ""
|
57
54
|
opts.separator "API options:"
|
58
55
|
opts.on("-v", "--version 00", String, "String: API Version number" ) { |o| options.push([:version, o]) }
|
59
56
|
opts.separator ""
|
60
|
-
opts.separator "
|
57
|
+
opts.separator "Browser options:"
|
58
|
+
opts.on("-H", "--[no-]highlight", "Bool: To turn off the highlight of elements" ) { |o| options.push([:highlight, o]) }
|
59
|
+
opts.separator ""
|
61
60
|
opts.on("-u", "--[no-]untangle", "Bool: Turns Debug on/off" ) { |o| untangle = o }
|
62
61
|
opts.on_tail("-h", "--help", "Show this message") do
|
63
62
|
puts opts
|
63
|
+
puts "For furthur assistance please contact Ben Slaughter or Jonathan Chrisp"
|
64
|
+
puts "bens@brandwatch.com or jonathan@brandwatch.com"
|
64
65
|
exit
|
65
66
|
end
|
66
67
|
end.parse!
|
@@ -90,8 +91,8 @@ class Brake
|
|
90
91
|
arguments[:log_level] = "LOGLEVEL=#{value[1].downcase}"
|
91
92
|
when :highlight
|
92
93
|
arguments[:highlight] = "HIGHLIGHT=true"
|
93
|
-
when :
|
94
|
-
arguments[:
|
94
|
+
when :controller
|
95
|
+
arguments[:controller] = "CONTROLLER=#{value[1].downcase}"
|
95
96
|
when :screen
|
96
97
|
arguments.push( "SCREENWIDTH=#{value[1][0].downcase} SCREENHEIGHT=#{value[1][1].downcase}" )
|
97
98
|
when :position
|
@@ -113,10 +114,10 @@ class Brake
|
|
113
114
|
puts "WARNING: No Defaults set for default task"
|
114
115
|
Rake::Task[:default].invoke( arguments.values.join( ' ' ) )
|
115
116
|
when 'brandwatchweb', 'bw'
|
116
|
-
arguments =
|
117
|
+
arguments = { :platform => "PLATFORM=brandwatchweb", :env => 'ENVIRONMENT=release', :controller => 'CONTROLLER=chrome' }.merge(arguments)
|
117
118
|
Rake::Task[:brandwatchWeb].invoke( arguments.values.join( ' ' ) )
|
118
119
|
when 'brandwatchapi', 'api'
|
119
|
-
arguments =
|
120
|
+
arguments = { :platform => "PLATFORM=brandwatchapi", :env => 'ENVIRONMENT=int', :controller => 'CONTROLLER=api', :version => 'VERSION=1' }.merge(arguments)
|
120
121
|
Rake::Task[:brandwatchAPI].invoke( arguments.values.join( ' ' ) )
|
121
122
|
else
|
122
123
|
puts "WARNING: No Defaults set for custom task"
|
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.1.
|
4
|
+
version: 0.1.5
|
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-09-
|
13
|
+
date: 2012-09-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|