lighthouse-ruby 0.2.0 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22bd5c62329623e9b0a7ab9bddcd704f48f727127371ea979ee3c493ad780dd1
4
- data.tar.gz: c1dd2f4792502b3e2924452d268c580b8d0a024b209284041318d23ba1ee68c8
3
+ metadata.gz: be323740074a9617846503eb3a2fe605a1c9a090283ac6961a623d359d4bc432
4
+ data.tar.gz: '069238b59e16f956bd89effd4a57eb19e6cbd404d9c8fb8572ac3d2e8cb328b5'
5
5
  SHA512:
6
- metadata.gz: b5783e9a99c51ece46c1db022f211f7cb602b646612ad242173f225ca85f4d197092b2cc2a65ae6d0d7427614af3316d17b9b8a23303478fe5b9afffd8c42ffa
7
- data.tar.gz: 815a085b501a55e7bf14f2071e1e50010ac92eaac3fe08c46162a1dbc0a1962f0d80182bf41aafb249b31071c7f3a1ceca1e1634fa4e59519f67e631f504173b
6
+ metadata.gz: 26fe6c28bc515f41a7fdd857370f16a230c415c601c143d77db423a93135ca9943324f76ef1339c2a068c002114c58c611fb351184709da3a461a7aa5030e1f1
7
+ data.tar.gz: be6dc116b86e818686b8c05b1c42375eeed877c4add716ce148cc89a1f117bc64dc4a3c0eec02ec93824d881347035a78f6212572c999c3edf9db862693159f7
data/README.md CHANGED
@@ -55,7 +55,7 @@ Capybara.register_driver :chrome do |app|
55
55
  end
56
56
 
57
57
  Capybara.javascript_driver = :chrome
58
- Lighthouse::Matchers.remote_debugging_port = 9222
58
+ Lighthouse::Preferences.remote_debugging_port = 9222
59
59
  ```
60
60
 
61
61
  #### For Rspec
@@ -14,7 +14,7 @@ module Lighthouse
14
14
  end
15
15
 
16
16
  def runner
17
- @runner ||= proc { |cmd| `#{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 -g lighthouse") unless File.exist?(lighthouse_bin_locator)
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`.chomp("\n")
44
+ `which lighthouse`.gsub!("\n", " ")
46
45
  end
47
46
 
48
47
  end
@@ -1,5 +1,5 @@
1
1
  module Lighthouse
2
2
  module Ruby
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  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.0
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-09-14 00:00:00.000000000 Z
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.4.19
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 ~