lighthouse-ruby 0.1.8 → 0.2.0

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: 22af57ad86348f3461e430da52497878b1234839d4d8e436b4668ce0da21e2ff
4
- data.tar.gz: 47d325f1197e2b4df8483cfb2338d9b482ce9ce6698060604e6efc86e7e5db7c
3
+ metadata.gz: 22bd5c62329623e9b0a7ab9bddcd704f48f727127371ea979ee3c493ad780dd1
4
+ data.tar.gz: c1dd2f4792502b3e2924452d268c580b8d0a024b209284041318d23ba1ee68c8
5
5
  SHA512:
6
- metadata.gz: a4bcc3c7e9202a5d94b949a80fbfd40f293a33d233b7d7a790ff4f9903e0a79e629428853e9878695f4852b74e630b17b91c586d356696aa5e3ffffd5acb66a0
7
- data.tar.gz: 9619d29f305570b33e8ede4836d255340795dddac528d27bd01d59d1bcc3ab66f2a28e17833cdb8016c7b3d405c69c9cce220dfe85e0ca768013394560b1b863
6
+ metadata.gz: b5783e9a99c51ece46c1db022f211f7cb602b646612ad242173f225ca85f4d197092b2cc2a65ae6d0d7427614af3316d17b9b8a23303478fe5b9afffd8c42ffa
7
+ data.tar.gz: 815a085b501a55e7bf14f2071e1e50010ac92eaac3fe08c46162a1dbc0a1962f0d80182bf41aafb249b31071c7f3a1ceca1e1634fa4e59519f67e631f504173b
data/Gemfile.lock CHANGED
@@ -1,26 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lighthouse-ruby (0.1.7)
4
+ lighthouse-ruby (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- diff-lcs (1.3)
9
+ diff-lcs (1.5.0)
10
10
  rake (12.3.3)
11
- rspec (3.9.0)
12
- rspec-core (~> 3.9.0)
13
- rspec-expectations (~> 3.9.0)
14
- rspec-mocks (~> 3.9.0)
15
- rspec-core (3.9.2)
16
- rspec-support (~> 3.9.3)
17
- rspec-expectations (3.9.2)
11
+ rspec (3.12.0)
12
+ rspec-core (~> 3.12.0)
13
+ rspec-expectations (~> 3.12.0)
14
+ rspec-mocks (~> 3.12.0)
15
+ rspec-core (3.12.2)
16
+ rspec-support (~> 3.12.0)
17
+ rspec-expectations (3.12.3)
18
18
  diff-lcs (>= 1.2.0, < 2.0)
19
- rspec-support (~> 3.9.0)
20
- rspec-mocks (3.9.1)
19
+ rspec-support (~> 3.12.0)
20
+ rspec-mocks (3.12.6)
21
21
  diff-lcs (>= 1.2.0, < 2.0)
22
- rspec-support (~> 3.9.0)
23
- rspec-support (3.9.3)
22
+ rspec-support (~> 3.12.0)
23
+ rspec-support (3.12.1)
24
24
 
25
25
  PLATFORMS
26
26
  ruby
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/lighthouse/ruby`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
@@ -35,6 +35,9 @@ 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
+ print("Lighthouse Version:")
40
+ system("lighthouse --version")
38
41
  lighthouse_bin_locator
39
42
  end
40
43
 
@@ -21,7 +21,11 @@ module Lighthouse
21
21
  end
22
22
 
23
23
  def parsed_response
24
- get_test_scores(JSON.parse(@response))
24
+ get_test_scores(raw_response)
25
+ end
26
+
27
+ def raw_response
28
+ JSON.parse(@response)
25
29
  end
26
30
 
27
31
  private
@@ -1,5 +1,5 @@
1
1
  module Lighthouse
2
2
  module Ruby
3
- VERSION = "0.1.8"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  spec.name = "lighthouse-ruby"
5
5
  spec.version = Lighthouse::Ruby::VERSION
6
6
  spec.authors = ["Budi Sugianto"]
7
- spec.email = ["budi@teachable.com"]
7
+ spec.email = ["hi@budisugianto.com"]
8
8
 
9
9
  spec.summary = <<~DESC
10
10
  Ruby wrapper for lighthouse-cli command by
@@ -13,13 +13,13 @@ Gem::Specification.new do |spec|
13
13
  DESC
14
14
 
15
15
  spec.description = "Ruby wrapper for lighthouse-cli"
16
- spec.homepage = "https://github.com/UseFedora/lighthouse-ruby"
16
+ spec.homepage = "https://github.com/mcbuddy/lighthouse-ruby"
17
17
  spec.license = "MIT"
18
18
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
19
19
 
20
- spec.metadata["homepage_uri"] = "https://github.com/UseFedora/lighthouse-ruby"
21
- spec.metadata["source_code_uri"] = "https://github.com/UseFedora/lighthouse-ruby"
22
- spec.metadata["changelog_uri"] = "https://github.com/UseFedora/lighthouse-ruby/blob/master/CHANGELOG.md"
20
+ spec.metadata["homepage_uri"] = "https://github.com/mcbuddy/lighthouse-ruby"
21
+ spec.metadata["source_code_uri"] = "https://github.com/mcbuddy/lighthouse-ruby"
22
+ spec.metadata["changelog_uri"] = "https://github.com/mcbuddy/lighthouse-ruby/blob/master/CHANGELOG.md"
23
23
 
24
24
  # Specify which files should be added to the gem when it is released.
25
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
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.8
4
+ version: 0.2.0
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-07-06 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3'
55
55
  description: Ruby wrapper for lighthouse-cli
56
56
  email:
57
- - budi@teachable.com
57
+ - hi@budisugianto.com
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
@@ -75,13 +75,13 @@ files:
75
75
  - lib/lighthouse/ruby/builder.rb
76
76
  - lib/lighthouse/ruby/version.rb
77
77
  - lighthouse-ruby.gemspec
78
- homepage: https://github.com/UseFedora/lighthouse-ruby
78
+ homepage: https://github.com/mcbuddy/lighthouse-ruby
79
79
  licenses:
80
80
  - MIT
81
81
  metadata:
82
- homepage_uri: https://github.com/UseFedora/lighthouse-ruby
83
- source_code_uri: https://github.com/UseFedora/lighthouse-ruby
84
- changelog_uri: https://github.com/UseFedora/lighthouse-ruby/blob/master/CHANGELOG.md
82
+ homepage_uri: https://github.com/mcbuddy/lighthouse-ruby
83
+ source_code_uri: https://github.com/mcbuddy/lighthouse-ruby
84
+ changelog_uri: https://github.com/mcbuddy/lighthouse-ruby/blob/master/CHANGELOG.md
85
85
  post_install_message:
86
86
  rdoc_options: []
87
87
  require_paths:
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.0.8
100
+ rubygems_version: 3.4.19
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Ruby wrapper for lighthouse-cli command by execute and evaluate for Lighthouse-cli