ssh-host-lister 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: ce058471e2ec59c5b9202c826360b178a7612bc0
4
- data.tar.gz: f85f777d8f8f15a4f555fce5bc23dfcc755cb9e9
3
+ metadata.gz: 702affa345f01f04a1d19f1082b799f15072807c
4
+ data.tar.gz: 0d80852e5c8b00c4f271e0676e114a9acdbf18cd
5
5
  SHA512:
6
- metadata.gz: 2d525de1eaafb3b4e110828ebe1f496429ceccd3813ffbb7369bb9b530ca99e6a39ec58d42441203dfe1818f5974dff659ec2918d71c302d2fa675e83387ec92
7
- data.tar.gz: 4ae0fab334e92979a186ff6909a7a8370756f52d8f3736f69e972e3376d6c3da710c0aa8ee513ac3385b2815ea0ab34e5a4e236f6f51a299dd871d00e7af1e05
6
+ metadata.gz: 1a512e8a326ec81a0417d82cf91f6eef580e6d0266e56196c095f585f92ceda4b181b6e11b3e7123213638235d482e9de2cb4d497d0ebef1c807f83f5699e0ed
7
+ data.tar.gz: 72fe87223649a8f3af001b3596513bc78a63a115c4eb836e84c0e55f31a0777707265d241f2a06c4790ff86be1dbf733cf1e111bb65ba3d50743fd5e94587e2f
@@ -12,7 +12,7 @@ module SshConfig
12
12
  def distinct_names
13
13
  @distinct_names ||= begin
14
14
  no_ips = @names
15
- .sort(&:count)
15
+ .sort_by(&:length)
16
16
  .reject { |name| name =~ /\A\d+\.\d+\.\d+\.\d+\Z/ }
17
17
 
18
18
  no_ips
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'ssh-host-lister'
6
- spec.version = '0.2.0'
6
+ spec.version = '0.2.1'
7
7
  spec.authors = ['Christian Höltje']
8
8
  spec.email = ['docwhat@gerf.org']
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssh-host-lister
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
  - Christian Höltje
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-08 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler