saucer 1.0.0.alpha → 1.0.0.beta

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: 0a0d5ca72570b0c717d295613491312bec954800
4
- data.tar.gz: b12996df6767e459a2746a3eb3dcc7776eb42468
3
+ metadata.gz: 2b5c866fb6e5d8df0c868592d475328681f7ab17
4
+ data.tar.gz: cebe7dd387a677b7cda0e308120b17e70b1845be
5
5
  SHA512:
6
- metadata.gz: 34570556581c60312af0867069b7b3b3080f7e28b5386f44b21bce4124f62c47a37a02c5a00eea0154d95c5b2cd8547a8b37c1cd1bc87bc6bd92c152a8c177f5
7
- data.tar.gz: fad1c1d36deddf108d981c114ae6e50f83bd54e3b61d9b4219470e5b08c6904cba57fa0c6b07d704f609f4f0bd98b7d9058e854ecfc70babb97b030087a9dd71
6
+ metadata.gz: 46f615d4fc54178f619e01537d78682d8fa95a81b9acf177163db612dcec69545aab6a3808aa1f12521c9afc0ad0fb700273a362aa723be62788ca7144c7c65f
7
+ data.tar.gz: f5e7bb799de8bda04a19153674ac645732fdc37276852b8616fffd9dd04d80dc8273617c9cef15f0d5416b98d4b29937a30a31d4112093b1410ac96eab298b1e
data/.rubocop.yml ADDED
@@ -0,0 +1,46 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.4.6
3
+
4
+ require:
5
+ - rubocop-rspec
6
+ - rubocop-performance
7
+
8
+ Layout/SpaceInsideHashLiteralBraces:
9
+ EnforcedStyle: no_space
10
+
11
+ Layout/EndOfLine:
12
+ EnforcedStyle: lf
13
+
14
+ Metrics/LineLength:
15
+ Max: 120
16
+
17
+ Metrics/BlockLength:
18
+ Exclude:
19
+ - 'spec/**/*'
20
+ - 'saucer.gemspec'
21
+
22
+ Style/Documentation:
23
+ Enabled: false
24
+
25
+ RSpec/ExampleLength:
26
+ Enabled: false
27
+
28
+ RSpec/MultipleExpectations:
29
+ Enabled: false
30
+
31
+ Metrics/AbcSize:
32
+ Max: 20
33
+ Exclude:
34
+ - 'lib/saucer/asset_management.rb'
35
+
36
+ Metrics/ClassLength:
37
+ Max: 105
38
+
39
+ Metrics/MethodLength:
40
+ Max: 13
41
+ Exclude:
42
+ - 'lib/saucer/asset_management.rb'
43
+
44
+ Metrics/ModuleLength:
45
+ Exclude:
46
+ - 'spec/**/*'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 1.0.0.beta (2019-05-16)
2
+ * Bug fixes
3
+
1
4
  ### 1.0.0.alpha (2019-05-16)
2
5
  * Complete Revamp of the Project
3
6
  * Implement Options class to set customized values
@@ -15,9 +15,9 @@ module Saucer
15
15
  VALID = W3C + SAUCE
16
16
 
17
17
  attr_accessor :url, :scenario
18
- attr_reader :data_center
18
+ attr_reader :data_center, :remaining
19
19
 
20
- def initialize(**opts)
20
+ def initialize(opts)
21
21
  VALID.each do |option|
22
22
  self.class.__send__(:attr_accessor, option)
23
23
  next unless opts.key?(option)
@@ -33,6 +33,9 @@ module Saucer
33
33
 
34
34
  opts.key?(:url) ? @url = opts[:url] : self.data_center = :US_WEST
35
35
  @scenario = opts[:scenario] if opts.key?(:scenario)
36
+
37
+ # TODO: - validate that these all include `:`
38
+ @remaining = opts
36
39
  end
37
40
 
38
41
  def capabilities
@@ -50,7 +53,7 @@ module Saucer
50
53
  hash[option] = value
51
54
  end
52
55
 
53
- w3c.merge('sauce:options' => sauce)
56
+ w3c.merge('sauce:options' => sauce).merge(remaining)
54
57
  end
55
58
  alias to_h capabilities
56
59
 
@@ -88,6 +88,7 @@ module Saucer
88
88
  save
89
89
  driver.quit
90
90
 
91
+ # TODO: Move this code into asset management for performance
91
92
  wait_until_finished
92
93
  end
93
94
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Saucer
4
- VERSION = '1.0.0.alpha'
4
+ VERSION = '1.0.0.beta'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha
4
+ version: 1.0.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Fortner
@@ -131,6 +131,7 @@ extra_rdoc_files: []
131
131
  files:
132
132
  - ".gitignore"
133
133
  - ".rspec"
134
+ - ".rubocop.yml"
134
135
  - ".travis.yml"
135
136
  - CHANGELOG.md
136
137
  - Gemfile