knowngithub 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: da83b7fc26d3247240a895d3eb259e5f8a35c584
4
- data.tar.gz: fbdbd6faf466d7f5c5c90296f6dd1afd17a8345b
3
+ metadata.gz: b5181201682fe30d2116da0e210d154d2d43b1c5
4
+ data.tar.gz: 9c36851ce8907e3a2e17f12239a5f8d69d32786f
5
5
  SHA512:
6
- metadata.gz: d482a72e19bb7a1300d47673d1cc59efd5b9f03295cc61cad7201039490f0847ac47c9cbe38d49c234097dd60960f764bb230970a2731fbd9afefef3c894b486
7
- data.tar.gz: f527558ce3648335beb704c45c413480886cf046ab093de4d8751d6721ca43a109afe238214d2e12d6a6313c161c852f48b9fc7d3f37f545a9b1e89f6ddd2caf
6
+ metadata.gz: ade648f31c5016ba43fb48bcd5d6812388417e5e921811dc141298b7c660d6358383b80b42337f3bafb7311f3cfd4ce84eafc0bc937e5994315bcf5d73c21108
7
+ data.tar.gz: a12272bdcd31e82f1ad52378bc49ecedf15703fb348ddd52c29d3f98f9243965411fa14cb8113262f88efa789dff7f3d3a59a8928702b8fd85508541a6672c73
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- knowngithub (0.2.0)
4
+ knowngithub (0.2.1)
5
5
  net-ssh (~> 4.2)
6
6
  nokogiri (~> 1.8)
7
7
  thor (~> 0.20)
data/lib/knowngithub.rb CHANGED
@@ -78,7 +78,7 @@ module Knowngithub
78
78
  known_hosts = []
79
79
  cidr_ranges.each do |range|
80
80
  IPAddr.new(range).to_range.to_a.map(&:to_s).each do |ip|
81
- known_hosts << 'github.com,' + ip + ' ' + h['base64_key']
81
+ known_hosts << ["github.com,#{ip}", h['ssh_type'], h['base64_key']].join(' ')
82
82
  end
83
83
  end
84
84
  known_hosts
@@ -1,3 +1,3 @@
1
1
  module Knowngithub
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knowngithub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Vanier