lighthouse-ruby 0.2.0 → 0.2.1

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: 5ac8778763d260e57a58b2468562b1aa3e86d0538756b96b4144773b4566e7fc
4
+ data.tar.gz: 5fa07b457f6585ddf2322799a8ab3ef92a9273e9acd0c788d57a9df203c71bc3
5
5
  SHA512:
6
- metadata.gz: b5783e9a99c51ece46c1db022f211f7cb602b646612ad242173f225ca85f4d197092b2cc2a65ae6d0d7427614af3316d17b9b8a23303478fe5b9afffd8c42ffa
7
- data.tar.gz: 815a085b501a55e7bf14f2071e1e50010ac92eaac3fe08c46162a1dbc0a1962f0d80182bf41aafb249b31071c7f3a1ceca1e1634fa4e59519f67e631f504173b
6
+ metadata.gz: 69e2487e4c51ee1ffed921220dd9d4de7ceb645c3f988674aa9594804423fa00740252bc05bfab6bc0e3dc25a00b6b7c61215a0c96547eaca02034c916de6a67
7
+ data.tar.gz: b919dcb91cc55bf9fb680bd4f388ef8f55b37bcab421464f3a9fabbb452df6af5a3ee3ed9672a1c6ba4d9adba1287f695854531f59cfc2f29df33aaa0c4be0dd
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
@@ -35,14 +35,13 @@ module Lighthouse
35
35
 
36
36
  def get_lighthouse_cli
37
37
  system("npm install -g lighthouse") unless File.exist?(lighthouse_bin_locator)
38
- system("lighthouse --help")
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.1"
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.1
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-09-26 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 ~