lighthouse-ruby 0.1.4 → 0.1.5

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: 18470aaf1e02625cc7623dd4eec4406d54a748d88e0c8053694aa0fec0b64a13
4
- data.tar.gz: 2a85003187142f768f4a6b18918f92b0812a88737e74c4bb64546e0e171cd885
3
+ metadata.gz: d1ca3844c3413f05c11059a98490eddfd08a9c7e3adf59379cade79dc326f989
4
+ data.tar.gz: 30d942de593720dd36694f3e82b2e179f318597893b5fe30f4dee895957b2ada
5
5
  SHA512:
6
- metadata.gz: 7efe4a8608436d3af69640b20ff5d6f5e0b0a64877db23af17e2589d4a45dafdcdfb3b4c4e8efd6c8b14c99a89c513e9fba29fdfef960eabf5952b262f14386c
7
- data.tar.gz: 0b2332ac37de52f263aa4ae8d66ee4945263092da6182a3abe187160ce1bf353f2fcaa3d2e068fd3219782bcb4eb3ff4d34338b0692ba13a0ca4c9892535681f
6
+ metadata.gz: 6afebb5ecd2f6f4eb9fc681319bb1e597491e4e4b0e2fec5712415c19ade2bec348fe99281c9c6b2208d877f28f8776ab848e5a0467fd0e7c208653a14a4e0fa
7
+ data.tar.gz: 70b9758b20661eb5a17880aa98f90259d854913392b47fa0a1ddb167bf11af127589978a88ae5b0fb7f2db9bfb715148c1486c2b1ac832ef7e2edbc55c0dd510
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lighthouse-ruby (0.1.3)
4
+ lighthouse-ruby (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -40,10 +40,10 @@ module Lighthouse
40
40
  def get_test_scores(response)
41
41
  @test_scores = { url: @url}
42
42
  @test_scores[:run_time] = Time.now
43
- @test_scores[:performance] = response.dig("categories", "performance" , "score") * 100
44
- @test_scores[:accessibility] = response.dig("categories", "accessibility" , "score") * 100
45
- @test_scores[:best_practices] = response.dig("categories", "best-practices" , "score") * 100
46
- @test_scores[:seo] = response.dig("categories", "seo" , "score") * 100
43
+ @test_scores[:performance] = response.dig("categories", "performance" , "score").to_f * 100
44
+ @test_scores[:accessibility] = response.dig("categories", "accessibility" , "score").to_f * 100
45
+ @test_scores[:best_practices] = response.dig("categories", "best-practices" , "score").to_f * 100
46
+ @test_scores[:seo] = response.dig("categories", "seo" , "score").to_f * 100
47
47
  @test_scores
48
48
  end
49
49
 
@@ -1,5 +1,5 @@
1
1
  module Lighthouse
2
2
  module Ruby
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Budi Sugianto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-15 00:00:00.000000000 Z
11
+ date: 2020-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler