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 +4 -4
- data/.rubocop.yml +46 -0
- data/CHANGELOG.md +3 -0
- data/lib/saucer/options.rb +6 -3
- data/lib/saucer/session.rb +1 -0
- data/lib/saucer/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b5c866fb6e5d8df0c868592d475328681f7ab17
|
4
|
+
data.tar.gz: cebe7dd387a677b7cda0e308120b17e70b1845be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/saucer/options.rb
CHANGED
@@ -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(
|
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
|
|
data/lib/saucer/session.rb
CHANGED
data/lib/saucer/version.rb
CHANGED
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.
|
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
|