xlogin 0.16.9 → 0.16.10

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: 30e3ea483b43232b7348ba27fc60753704fb36a43492696b35f34a7fdbda3e1a
4
- data.tar.gz: e625d9412f05af3b850170f67209af887caf6536302e71f03172bb2f6912fa4c
3
+ metadata.gz: 8ef34ad0c1f2f9c13dadd62e4f7d9e95117b98565a262b706dd55a74a9a0cb9e
4
+ data.tar.gz: 1da17b4bfd7a42d8e8ce7089a8ad1848b305540f9c962737517a62f617b50de0
5
5
  SHA512:
6
- metadata.gz: 219b1821b33530bccc218807537b8ce4c8292fdb12030c661b1577e4c0d08d37bac3fe0d683a9ab0ac47f5f9e233e322de6664f6529fa850c8639d2ce3370483
7
- data.tar.gz: 3149a77ee6783a90a7af454999a8ac24fe0d3786275a80cc610e30ce80d8e2e27ca8b5ca4bf217b7372d32cf8f673b5f56f1c2e84c9c4580fdf0cb4696e13c07
6
+ metadata.gz: d689b9d6346ce14fd12c4c1d6eaa374a6c0165902efa94b359aee64cc46a27af4077524c0b8d93934c18aacee8281d3030a0d149739d4f041a39c5f04d5ff4e8
7
+ data.tar.gz: 95de7d124224a551cc7286a6627d688ee6e991330f79ddc1818c755bde0efb5d90162ae0b14e6df8f1413d590154861ba1aada49e13157386be0bb7f90c06cac
@@ -1,3 +1,3 @@
1
1
  module Xlogin
2
- VERSION = "0.16.9"
2
+ VERSION = "0.16.10"
3
3
  end
data/lib/xlogin.rb CHANGED
@@ -29,9 +29,9 @@ module Xlogin
29
29
  factory.list_hostinfo(*patterns)
30
30
  end
31
31
 
32
- def get(args, **opts, &block)
32
+ def get(args = nil, **opts, &block)
33
33
  case args
34
- when Hash then factory.build(**args.merge(**opts), &block)
34
+ when nil then factory.build(**opts, &block)
35
35
  when String then factory.build_from_hostname(args, **opts, &block)
36
36
  else
37
37
  raise Xlogin::Error.new("Invalid argument: '#{args}'")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlogin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.9
4
+ version: 0.16.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - haccht
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-telnet
@@ -178,7 +178,7 @@ licenses:
178
178
  - MIT
179
179
  metadata:
180
180
  allowed_push_host: https://rubygems.org
181
- post_install_message:
181
+ post_install_message:
182
182
  rdoc_options: []
183
183
  require_paths:
184
184
  - lib
@@ -193,8 +193,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.1.6
197
- signing_key:
196
+ rubygems_version: 3.3.7
197
+ signing_key:
198
198
  specification_version: 4
199
199
  summary: rancid clogin alternative
200
200
  test_files: []