lighthouse-ruby 0.2.2 → 0.2.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/lib/lighthouse/preferences.rb +3 -2
- 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: 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
|
|
@@ -34,14 +34,15 @@ module Lighthouse
|
|
|
34
34
|
private
|
|
35
35
|
|
|
36
36
|
def get_lighthouse_cli
|
|
37
|
-
system("npm install lighthouse")
|
|
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
|