knowngithub 0.2.2 → 1.0.0

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: b179aef6a88100e383ae0caffd9c4b1010e223b8ca0683eddc08928734721769
4
- data.tar.gz: 9c9805e89638012842cc70fb74e6d7adc12e53d5d2dd7327407441f70241ee97
3
+ metadata.gz: 0e37abdcece8b3a588ab5d786e62d21888ff0b97198c89d7cdcc08c20b34c96c
4
+ data.tar.gz: 99ea610b06a63046115e2f02bc7bef33bcce962be954535d1455a781e369eb34
5
5
  SHA512:
6
- metadata.gz: c64505250918ae8ff1c751c8d6e6350f2f8c5261447dec1f7e19e720a0872aaf29ebcf58fb1eed4e7bef76f45375b332daf9579692a995dc7b3bc2b87846cc5a
7
- data.tar.gz: ef9142db24f1c5c3b196a80fa0911492ad2aa3ddcf80233616e78c95290f669ab215e788e5d0a3c47f9a0dab0576b54a06f38b5109d44e7bb4a39c3193a2c5f3
6
+ metadata.gz: b38f07a0f3efd1e415f8eaf6f6547a3a18e14b093ab8f4839ceb6da67c586c539f6db617c88ea34527a55881a7dc6b5182ab09f78cf142af850de3f0a20dc676
7
+ data.tar.gz: f8d15887f58479426047c14106646792a57398ca01a1890c0178cad3d2e914d0621c44529928002a16586fbb5d6af2f9d55bd9640fb2a854514995098128ce9f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- knowngithub (0.2.2)
4
+ knowngithub (1.0.0)
5
5
  net-ssh (~> 4.2)
6
6
  nokogiri (~> 1.8)
7
7
  thor (~> 0.20)
@@ -11,7 +11,7 @@ GEM
11
11
  specs:
12
12
  mini_portile2 (2.4.0)
13
13
  net-ssh (4.2.0)
14
- nokogiri (1.10.1)
14
+ nokogiri (1.10.2)
15
15
  mini_portile2 (~> 2.4.0)
16
16
  rake (10.5.0)
17
17
  thor (0.20.3)
@@ -1,3 +1,3 @@
1
1
  module Knowngithub
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '1.0.0'.freeze
3
3
  end
data/lib/knowngithub.rb CHANGED
@@ -25,10 +25,11 @@ module Knowngithub
25
25
 
26
26
  # Queries and parses the GitHub help page for the SSH key fingerprints.
27
27
  # @return [Array<String>] SSH key fingerprints as an array of strings.
28
- # @since 0.1.0
28
+ # @since 1.0.0
29
29
  def self.fingerprints
30
30
  pattern = /^(sha256:[a-z0-9\+\/]{43})|([0-9a-f\:]{32,47})$/i
31
- res = safe_call('https://help.github.com/articles/github-s-ssh-key-fingerprints/')
31
+ res = safe_call('https://help.github.com/en/articles/githubs-ssh-key-fingerprints')
32
+
32
33
  output = Nokogiri::HTML(res.body)
33
34
  fields = output.xpath('//code')
34
35
  fields.children.map(&:content).select { |x| pattern =~ x }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knowngithub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Vanier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-27 00:00:00.000000000 Z
11
+ date: 2019-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,7 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.0.1
123
+ rubyforge_project:
124
+ rubygems_version: 2.7.6
124
125
  signing_key:
125
126
  specification_version: 4
126
127
  summary: Don't blindly trust GitHub hosts