mini_autobot 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6417d99fd4a102db43c41453567b9ed7cc4ef823
4
- data.tar.gz: e9da097f1bd3cae4b2ce9750b74919f6e1b1ba6e
3
+ metadata.gz: c46572e0a7623be341c8951c346094a53b03eec8
4
+ data.tar.gz: 749afd19dc500414d2be8053b6c3d456cfb8f3d6
5
5
  SHA512:
6
- metadata.gz: 3e9fd9501edf5e4d2c6d9c22d4133e922a2b341fcb10a7b30e9661d3bc940f4a7baa6e6b104e295e01d8d34edf9065ccd5969685f260d80b3db2c784ccfd0713
7
- data.tar.gz: 2e28a8e77cfd5af9ec18af2f5654aa05883122b6f463590b8747e667d7d98c3064278584961352c316ba713730887e5ee002fbebc280443a98713b5727fb4bc5
6
+ metadata.gz: bc7584e0d8f989b7148a0858e8b741290bc14ad79b01a39307406bfb18b43ca5cb0fa9e3cc333cb64788c0c37d762dd1c3575f66f13b0fc8bb6e0ff670fbbc07
7
+ data.tar.gz: f6a4eb16bd447f51ba153ab818f62bbe248f6517957a9f18a47283ac93ad4ac1dd2f6f8569690bc919299b970a2773ab4a53049769e115ac7604a5b4c22126b6
@@ -68,15 +68,28 @@ module MiniAutobot
68
68
  desired_browser_string = nil
69
69
  case connector
70
70
  when /chrome/
71
- desired_browser_string = 'Chrome'
71
+ desired_browser_string = 'Chrome (Automated)'
72
72
  when /ff/
73
- desired_browser_string = 'FF'
73
+ desired_browser_string = 'FF (Automated)'
74
74
  when /firefox/
75
- desired_browser_string = 'FF'
75
+ desired_browser_string = 'FF (Automated)'
76
76
  when /ie11/
77
- desired_browser_string = 'IE11'
77
+ desired_browser_string = 'IE11 (Automated)'
78
+ when /iphone/
79
+ desired_browser_string = 'iPhone (Automated)'
80
+ when /android/
81
+ desired_browser_string = 'Android (Automated)'
78
82
  end
79
- (1..@worksheet.num_cols).find { |col| @worksheet[1, col] == desired_browser_string }
83
+ column = (1..@worksheet.num_cols).find { |col| @worksheet[1, col] == desired_browser_string }
84
+ if column.nil?
85
+ create_column(desired_browser_string)
86
+ column = (1..@worksheet.num_cols).find { |col| @worksheet[1, col] == desired_browser_string }
87
+ end
88
+ column
89
+ end
90
+
91
+ def create_column(desired_browser_string)
92
+ @worksheet[1, @worksheet.num_cols] = desired_browser_string
80
93
  end
81
94
 
82
95
  def target_rows(key)
@@ -24,6 +24,9 @@ module MiniAutobot
24
24
  if MiniAutobot.settings.google_sheets?
25
25
  @static_run_command += " -g #{MiniAutobot.settings.google_sheet}"
26
26
  end
27
+ if MiniAutobot.settings.feature_flips
28
+ @static_run_command += " -f #{MiniAutobot.settings.feature_flips}"
29
+ end
27
30
  tap_reporter_path = MiniAutobot.gem_root.join('lib/tapout/custom_reporters/fancy_tap_reporter.rb')
28
31
  @pipe_tap = "--tapy | tapout --no-color -r #{tap_reporter_path.to_s} fancytap"
29
32
  end
@@ -101,6 +101,10 @@ module MiniAutobot
101
101
  hsh[:google_sheets]
102
102
  end
103
103
 
104
+ def feature_flips
105
+ hsh[:feature_flips]
106
+ end
107
+
104
108
  private
105
109
  attr_reader :hsh
106
110
 
@@ -1,3 +1,3 @@
1
1
  module MiniAutobot
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
@@ -83,6 +83,11 @@ module Minitest
83
83
  parser.on('-g', '--google-sheets SHEET', 'Report results to specified Google Sheets spreadsheet') do |value|
84
84
  options[:google_sheets] = value
85
85
  end
86
+
87
+ options[:feature_flips] = false
88
+ parser.on('-f', '--feature-flips FEATURE', 'Flip tests to run against a different feature set') do |value|
89
+ options[:feature_flips] = value
90
+ end
86
91
  end
87
92
 
88
93
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_autobot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ripta Pasay
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-02-25 00:00:00.000000000 Z
14
+ date: 2016-08-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport