lighthouse-ruby 0.2.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lighthouse/preferences.rb +4 -3
- data/lib/lighthouse/ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 462f6ddbdc20c71c6892a31257fe43f6c3da666ada1733b9736c39c0120e7146
|
4
|
+
data.tar.gz: f38e71e24f1cd0a50ae1ce58cf2c85f9c235cd30b58e895f44aec5da678b67f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00d10a6a984ebb4cc27237552528dea23690dc23c7e7390a1805f595841750e04835bb2875a1dbfc314d136c887b0af26b15670cd14959562cfcfcb597e46222
|
7
|
+
data.tar.gz: d5ce8855d4cf97d3cc15311ebe37ad2ae28990afd5cea435d344e52cc2ad4af632243868194a03a90a629d8a7f030b41c6485069331d427e1dd75afc46a4c0e7
|
@@ -14,7 +14,7 @@ module Lighthouse
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def runner
|
17
|
-
@runner ||= proc { |cmd|
|
17
|
+
@runner ||= proc { |cmd| `npx #{cmd}` }
|
18
18
|
end
|
19
19
|
|
20
20
|
def lighthouse_options
|
@@ -34,14 +34,15 @@ module Lighthouse
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def get_lighthouse_cli
|
37
|
-
system("npm install
|
37
|
+
system("npm install lighthouse") if lighthouse_bin_locator.nil?
|
38
38
|
print("Lighthouse Version:")
|
39
39
|
system("lighthouse --version")
|
40
40
|
lighthouse_bin_locator
|
41
41
|
end
|
42
42
|
|
43
43
|
def lighthouse_bin_locator
|
44
|
-
`which lighthouse
|
44
|
+
lighthouse_bin = `which lighthouse`
|
45
|
+
lighthouse_bin.gsub!("\n", " ")
|
45
46
|
end
|
46
47
|
|
47
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lighthouse-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Budi Sugianto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|