lighthouse-ruby 0.1.1 → 0.1.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: 9e7b870fb6324f0497790a8e4a5b5924e1340aaa4d33465f114e5dfe4d499b44
4
- data.tar.gz: 744b5ed24dae228555193ecf6e0a0f36de24f3d33665e75549f33e657fcc89a4
3
+ metadata.gz: e4fcbcfe84e6da713a30ee7cb5ecf3ff3439903bd541b0b6d0e1b7a400727ba0
4
+ data.tar.gz: 860089ede53ecd28a61f89f3d9d8a3fb951c45b2c91353cfe13d23789f99f0db
5
5
  SHA512:
6
- metadata.gz: 284a6301e0f4f28eac94f8ede197aaaba6e367282edf5eaaa99c2d35b038fe1f991ccc5a4e6b1aed03d3388cf61e962de11436b97d8df6a826a2392cbee8cb20
7
- data.tar.gz: 7646a486ae91c4a7a878558e18160af35b226a586e4d6f1e26b791e7d023e06daf830bd6cfda36955ccaf0a43e0957c46f222bc3030b953db62f93630fba1d85
6
+ metadata.gz: 98fa94e5d230733b4797f6faa12e38fb0945601c5ceb521a9d7d6d8938a1a8f75a9e233780495d4565918cad8134f3ff384ef380be80bf945730c562c37f8ff7
7
+ data.tar.gz: 8a2270362c61611ebd4adf8a7a09a039e798bdde1c4aa1a9d00d2fa2dd80af03b2414d5e2d0633aad3ae8715d46e762af1c0536f9cc5a436d29d8587e623ac62
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lighthouse-ruby (0.1.0)
4
+ lighthouse-ruby (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -5,8 +5,7 @@ module Lighthouse
5
5
  module Ruby
6
6
  class Builder
7
7
 
8
- def initialize(url)
9
- @url = url
8
+ def initialize
10
9
  @runner = Lighthouse::Preferences.runner
11
10
  @cli = Lighthouse::Preferences.lighthouse_cli
12
11
  @port = Lighthouse::Preferences.remote_debugging_port
@@ -14,8 +13,8 @@ module Lighthouse
14
13
  @lighthouse_options = Lighthouse::Preferences.lighthouse_options
15
14
  end
16
15
 
17
- def execute
18
- @response = @runner.call("#{@cli} #{options}")
16
+ def execute(url)
17
+ @response = @runner.call("#{@cli} #{options(url)}")
19
18
  end
20
19
 
21
20
  def test_scores
@@ -24,8 +23,8 @@ module Lighthouse
24
23
 
25
24
  private
26
25
 
27
- def options
28
- "'#{@url}'".tap do |builder|
26
+ def options(url)
27
+ "'#{url}'".tap do |builder|
29
28
  builder << ' --quiet'
30
29
  builder << ' --output=json'
31
30
  builder << " --port=#{@port}" if @port
@@ -1,5 +1,5 @@
1
1
  module Lighthouse
2
2
  module Ruby
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lighthouse-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Budi Sugianto