lighthouse-ruby 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/lighthouse/preferences.rb +3 -4
- data/lib/lighthouse/ruby/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be323740074a9617846503eb3a2fe605a1c9a090283ac6961a623d359d4bc432
|
4
|
+
data.tar.gz: '069238b59e16f956bd89effd4a57eb19e6cbd404d9c8fb8572ac3d2e8cb328b5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26fe6c28bc515f41a7fdd857370f16a230c415c601c143d77db423a93135ca9943324f76ef1339c2a068c002114c58c611fb351184709da3a461a7aa5030e1f1
|
7
|
+
data.tar.gz: be6dc116b86e818686b8c05b1c42375eeed877c4add716ce148cc89a1f117bc64dc4a3c0eec02ec93824d881347035a78f6212572c999c3edf9db862693159f7
|
data/README.md
CHANGED
@@ -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,15 +34,14 @@ module Lighthouse
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def get_lighthouse_cli
|
37
|
-
system("npm install
|
38
|
-
system("lighthouse --help")
|
37
|
+
system("npm install lighthouse") unless File.exist?(lighthouse_bin_locator)
|
39
38
|
print("Lighthouse Version:")
|
40
39
|
system("lighthouse --version")
|
41
40
|
lighthouse_bin_locator
|
42
41
|
end
|
43
42
|
|
44
43
|
def lighthouse_bin_locator
|
45
|
-
`which lighthouse`.
|
44
|
+
`which lighthouse`.gsub!("\n", " ")
|
46
45
|
end
|
47
46
|
|
48
47
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Budi Sugianto
|
8
|
-
autorequire:
|
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
|
@@ -82,7 +82,7 @@ metadata:
|
|
82
82
|
homepage_uri: https://github.com/mcbuddy/lighthouse-ruby
|
83
83
|
source_code_uri: https://github.com/mcbuddy/lighthouse-ruby
|
84
84
|
changelog_uri: https://github.com/mcbuddy/lighthouse-ruby/blob/master/CHANGELOG.md
|
85
|
-
post_install_message:
|
85
|
+
post_install_message:
|
86
86
|
rdoc_options: []
|
87
87
|
require_paths:
|
88
88
|
- lib
|
@@ -97,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
101
|
-
signing_key:
|
100
|
+
rubygems_version: 3.0.3.1
|
101
|
+
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Ruby wrapper for lighthouse-cli command by execute and evaluate for Lighthouse-cli
|
104
104
|
test JSON report ~ inspired from lighthouse-matchers gem by Ackama Group ~
|