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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/knowngithub/version.rb +1 -1
- data/lib/knowngithub.rb +3 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e37abdcece8b3a588ab5d786e62d21888ff0b97198c89d7cdcc08c20b34c96c
|
4
|
+
data.tar.gz: 99ea610b06a63046115e2f02bc7bef33bcce962be954535d1455a781e369eb34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
14
|
+
nokogiri (1.10.2)
|
15
15
|
mini_portile2 (~> 2.4.0)
|
16
16
|
rake (10.5.0)
|
17
17
|
thor (0.20.3)
|
data/lib/knowngithub/version.rb
CHANGED
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
|
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/
|
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.
|
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-
|
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
|
-
|
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
|