xlogin 0.16.8 → 0.16.10

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
  SHA256:
3
- metadata.gz: 930939a4963bb9965bf46dc7b9483ce005162a7617afd5c72bafa601b9b68450
4
- data.tar.gz: 70208dee6029554aff44bc6d69a2b0b827bd0a202e59a00227bc7372fb16baa7
3
+ metadata.gz: 8ef34ad0c1f2f9c13dadd62e4f7d9e95117b98565a262b706dd55a74a9a0cb9e
4
+ data.tar.gz: 1da17b4bfd7a42d8e8ce7089a8ad1848b305540f9c962737517a62f617b50de0
5
5
  SHA512:
6
- metadata.gz: 76123781d2d14c27071ac279bb70628566a67e1c0a6f642e1593f2a9497ca18870ec1abb401bf34eef8304d7e3a441820fafb7e6d261f77469f2f04a2952151e
7
- data.tar.gz: c75f987ace037ea7701180e1e46aea9979ae7810e2bac8febe09b781c106e829e97e956e22c9b515c32edd985e6abc22ba943579d5e1bd3ec1ca94e6a6dfc6c8
6
+ metadata.gz: d689b9d6346ce14fd12c4c1d6eaa374a6c0165902efa94b359aee64cc46a27af4077524c0b8d93934c18aacee8281d3030a0d149739d4f041a39c5f04d5ff4e8
7
+ data.tar.gz: 95de7d124224a551cc7286a6627d688ee6e991330f79ddc1818c755bde0efb5d90162ae0b14e6df8f1413d590154861ba1aada49e13157386be0bb7f90c06cac
@@ -101,7 +101,7 @@ module Xlogin
101
101
  template = get_template(type)
102
102
  raise Xlogin::Error.new("Template not found: '#{type}'") unless template
103
103
 
104
- session = template.build(uri(opts), **opts)
104
+ session = template.build(uri(**opts), **opts)
105
105
  return session unless block
106
106
  begin block.call(session) ensure session.close end
107
107
  end
@@ -1,3 +1,3 @@
1
1
  module Xlogin
2
- VERSION = "0.16.8"
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.8
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: 2021-07-21 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.0.3
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: []