brake 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +5 -2
  2. data/lib/brake.rb +3 -6
  3. metadata +1 -1
data/README CHANGED
@@ -8,7 +8,6 @@ Usage: brake <task> [options]
8
8
 
9
9
  Global options:
10
10
  -e, --enviroment release String: The enviroment to run the tests against eg Release
11
- -p, --platform brandwatchWeb String: The platform to run the tests on eg brandwatchWeb
12
11
  -t, --tags @high,@login Array: A list of all tagged test to be run
13
12
  -l, --log_level debug String: The log output level debug|info
14
13
 
@@ -24,7 +23,7 @@ Browser options:
24
23
  -H, --[no-]highlight Bool: To turn off the highlight of elements
25
24
 
26
25
  -u, --[no-]untangle Bool: Turns Debug on/off
27
- -h, --help Show this message
26
+ -h, --help You'r looking at it
28
27
  For furthur assistance please contact Ben Slaughter or Jonathan Chrisp
29
28
  bens@brandwatch.com or jonathan@brandwatch.com
30
29
 
@@ -51,4 +50,8 @@ Ben - Added -s as default (removes source)
51
50
  0.2.2
52
51
  Jon - Updated API task to run release as default
53
52
 
53
+ 2.2.3
54
+ Ben - Removed '--require features' from the default args so now only -P disable profiles and -s disable source code line numbers
55
+ Ben - Removed platform, this is no longer required
56
+
54
57
  END
data/lib/brake.rb CHANGED
@@ -44,7 +44,6 @@ class Brake
44
44
  opts.separator ""
45
45
  opts.separator "Global options:"
46
46
  opts.on("-e", "--enviroment release", String, "String: The enviroment to run the tests against eg Release" ) { |o| options.push([:env, o]) }
47
- opts.on("-p", "--platform brandwatchWeb", String, "String: The platform to run the tests on eg brandwatchWeb" ) { |o| options.push([:platform, o]) }
48
47
  opts.on("-t", "--tags @high,@login", Array, "Array: A list of all tagged test to be run" ) { |o| options.push([:tags, o]) }
49
48
  opts.on("-l", "--log_level debug", String, "String: The log output level debug|info" ) { |o| options.push([:log_level, o]) }
50
49
  opts.on("-d", "--dru-run", "Bool: turns on the selenium dry run feature" ) { |o| options.push([:dry_run, o]) }
@@ -77,14 +76,12 @@ class Brake
77
76
  # creates the default arguments
78
77
  # --require features Ensures that all features are included
79
78
  # -P Disables profiles, we no longer need it as all data is given at command line
80
- arguments = { :req => "--require features -P -s" }
79
+ arguments = { :req => "-P -s" }
81
80
 
82
81
  # takes the parsed options and turns them into meaningful data
83
82
  # the data is later read by the automation code
84
83
  options.each do | value |
85
84
  case value[0]
86
- when :platform
87
- arguments[:platform] = "PLATFORM=#{value[1].downcase}"
88
85
  when :env
89
86
  arguments[:env] = "ENVIRONMENT=#{value[1].downcase}"
90
87
  when :tags
@@ -121,10 +118,10 @@ class Brake
121
118
  puts "WARNING: No Defaults set for default task"
122
119
  Rake::Task['default'].execute( arguments.values.join( ' ' ) )
123
120
  when 'brandwatchweb', 'bw'
124
- arguments = { :platform => "PLATFORM=brandwatchweb", :env => 'ENVIRONMENT=release', :controller => 'CONTROLLER=chrome' }.merge(arguments)
121
+ arguments = { :env => 'ENVIRONMENT=release', :controller => 'CONTROLLER=chrome' }.merge(arguments)
125
122
  Rake::Task['brandwatchweb'].execute( arguments.values.join( ' ' ) )
126
123
  when 'brandwatchapi', 'api'
127
- arguments = { :platform => "PLATFORM=brandwatchapi", :env => 'ENVIRONMENT=release', :controller => 'CONTROLLER=api', :version => 'VERSION=1' }.merge(arguments)
124
+ arguments = { :env => 'ENVIRONMENT=release', :controller => 'CONTROLLER=api', :version => 'VERSION=1' }.merge(arguments)
128
125
  Rake::Task['brandwatchapi'].execute( arguments.values.join( ' ' ) )
129
126
  else
130
127
  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.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: