lighthouse-ruby 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4fcbcfe84e6da713a30ee7cb5ecf3ff3439903bd541b0b6d0e1b7a400727ba0
4
- data.tar.gz: 860089ede53ecd28a61f89f3d9d8a3fb951c45b2c91353cfe13d23789f99f0db
3
+ metadata.gz: 28d040348d4eea07651f7e41646eacbc6ee7360403dbff011982fa9928551549
4
+ data.tar.gz: 55cfd11b187f358bd27945303886728054f1807bba1cc8911a93913dbe1e4f13
5
5
  SHA512:
6
- metadata.gz: 98fa94e5d230733b4797f6faa12e38fb0945601c5ceb521a9d7d6d8938a1a8f75a9e233780495d4565918cad8134f3ff384ef380be80bf945730c562c37f8ff7
7
- data.tar.gz: 8a2270362c61611ebd4adf8a7a09a039e798bdde1c4aa1a9d00d2fa2dd80af03b2414d5e2d0633aad3ae8715d46e762af1c0536f9cc5a436d29d8587e623ac62
6
+ metadata.gz: 3a03cc1321324f4f6ea5d32f944cacd8a76d6b175c6b4b8a243290c7be3fee2f7c5902199f1b0f9baaa19a94c54a721e428c1f068cfa7ccf02ac06c7bcfafaca
7
+ data.tar.gz: fbad2ebd35847208f5ac44ef4e8cad83de214ca7e5341fca220bfb38321ffc6ef5ce39f9452e910ad70d8440eed202904777898677472fee75829effa69283c3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lighthouse-ruby (0.1.1)
4
+ lighthouse-ruby (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -5,7 +5,8 @@ module Lighthouse
5
5
  module Ruby
6
6
  class Builder
7
7
 
8
- def initialize
8
+ def initialize(url)
9
+ @url = url
9
10
  @runner = Lighthouse::Preferences.runner
10
11
  @cli = Lighthouse::Preferences.lighthouse_cli
11
12
  @port = Lighthouse::Preferences.remote_debugging_port
@@ -13,8 +14,8 @@ module Lighthouse
13
14
  @lighthouse_options = Lighthouse::Preferences.lighthouse_options
14
15
  end
15
16
 
16
- def execute(url)
17
- @response = @runner.call("#{@cli} #{options(url)}")
17
+ def execute
18
+ @response = @runner.call("#{@cli} #{options}")
18
19
  end
19
20
 
20
21
  def test_scores
@@ -23,8 +24,8 @@ module Lighthouse
23
24
 
24
25
  private
25
26
 
26
- def options(url)
27
- "'#{url}'".tap do |builder|
27
+ def options
28
+ "'#{@url}'".tap do |builder|
28
29
  builder << ' --quiet'
29
30
  builder << ' --output=json'
30
31
  builder << " --port=#{@port}" if @port
@@ -1,5 +1,5 @@
1
1
  module Lighthouse
2
2
  module Ruby
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Budi Sugianto