lighthouse-ruby 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/lighthouse/ruby/builder.rb +6 -5
- data/lib/lighthouse/ruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 28d040348d4eea07651f7e41646eacbc6ee7360403dbff011982fa9928551549
|
|
4
|
+
data.tar.gz: 55cfd11b187f358bd27945303886728054f1807bba1cc8911a93913dbe1e4f13
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a03cc1321324f4f6ea5d32f944cacd8a76d6b175c6b4b8a243290c7be3fee2f7c5902199f1b0f9baaa19a94c54a721e428c1f068cfa7ccf02ac06c7bcfafaca
|
|
7
|
+
data.tar.gz: fbad2ebd35847208f5ac44ef4e8cad83de214ca7e5341fca220bfb38321ffc6ef5ce39f9452e910ad70d8440eed202904777898677472fee75829effa69283c3
|
data/Gemfile.lock
CHANGED
|
@@ -5,7 +5,8 @@ module Lighthouse
|
|
|
5
5
|
module Ruby
|
|
6
6
|
class Builder
|
|
7
7
|
|
|
8
|
-
def initialize
|
|
8
|
+
def initialize(url)
|
|
9
|
+
@url = url
|
|
9
10
|
@runner = Lighthouse::Preferences.runner
|
|
10
11
|
@cli = Lighthouse::Preferences.lighthouse_cli
|
|
11
12
|
@port = Lighthouse::Preferences.remote_debugging_port
|
|
@@ -13,8 +14,8 @@ module Lighthouse
|
|
|
13
14
|
@lighthouse_options = Lighthouse::Preferences.lighthouse_options
|
|
14
15
|
end
|
|
15
16
|
|
|
16
|
-
def execute
|
|
17
|
-
@response = @runner.call("#{@cli} #{options
|
|
17
|
+
def execute
|
|
18
|
+
@response = @runner.call("#{@cli} #{options}")
|
|
18
19
|
end
|
|
19
20
|
|
|
20
21
|
def test_scores
|
|
@@ -23,8 +24,8 @@ module Lighthouse
|
|
|
23
24
|
|
|
24
25
|
private
|
|
25
26
|
|
|
26
|
-
def options
|
|
27
|
-
"'#{url}'".tap do |builder|
|
|
27
|
+
def options
|
|
28
|
+
"'#{@url}'".tap do |builder|
|
|
28
29
|
builder << ' --quiet'
|
|
29
30
|
builder << ' --output=json'
|
|
30
31
|
builder << " --port=#{@port}" if @port
|