xlogin 0.5.5 → 0.5.6

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: 830365e620be1a1b5043e7b40dfab88e8f0b5c3b
4
- data.tar.gz: c537530058744002657035c75a5398718817acb0
3
+ metadata.gz: 2be188c26cbf628e71b5eaf1cb10f7ddc3ffc334
4
+ data.tar.gz: fe373f5b3d3f7cc1693cb0ebd3bfe982987e9a67
5
5
  SHA512:
6
- metadata.gz: 245fcf8f8f570c065c31ac70e885c3100ca9b39787399c7ac2ce59199b15d2b251c82cbd7cea2e5e68947a231cf51fa25d08c99dba3112c34c778fa291f784bb
7
- data.tar.gz: 917a35f80e9ae837be5678335ae5ae2ffa6373d367c0d468c921922238619489cefdf01df60689733c6f8e6284c3220c82d0d09978cfff30db37b8e66360ca82
6
+ metadata.gz: afe158fb986690afa66c0aecb5854f95049ad26b1d080b24b56343bb925844a83900cb47a30b65dac90eabacadc87bd66884bded360f8dbc87f33657ed09c978
7
+ data.tar.gz: 0c30870ce6e156a5bc7ab030945d3b62cee1acdd2d5a00bfedaf02cb4a6b8732b705f6b3a703a909b50f0cdc99a886a5b7156fdf4a581a1cc6e1d57ada1fc63a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xlogin (0.5.5)
4
+ xlogin (0.5.6)
5
5
  net-ssh
6
6
  net-ssh-gateway
7
7
  net-ssh-telnet
data/bin/xlogin CHANGED
@@ -7,7 +7,7 @@ ENV['BUNDLE_GEMFILE'] = File.join(appdir, '..', 'Gemfile')
7
7
 
8
8
  Bundler.require
9
9
 
10
- require File.join(appdir, '..', 'lib', 'xlogin.rb')
11
- require File.join(appdir, '..', 'lib', 'xlogin', 'cli.rb')
10
+ require 'xlogin'
11
+ require 'xlogin/cli'
12
12
 
13
13
  Xlogin::CLI.run
data/lib/xlogin/cli.rb CHANGED
@@ -82,7 +82,7 @@ module Xlogin
82
82
  end
83
83
 
84
84
  def tty(config)
85
- Xlogin::CLI.usage('Invalid parametors') if config.hostlist.empty?
85
+ Xlogin::CLI.usage('Invalid parametors: ' + config.hostexprs.join(' ')) if config.hostlist.empty?
86
86
 
87
87
  puts "Trying #{config.hostlist.first[:name]}..."
88
88
  puts "Escape character is '^]'."
@@ -17,6 +17,7 @@ module Xlogin
17
17
 
18
18
  def load_template_files(*files)
19
19
  files.each do |file|
20
+ file = File.expand_path(file)
20
21
  next unless File.exist?(file) && file =~ /.rb$/
21
22
  require file
22
23
  end
@@ -41,6 +42,7 @@ module Xlogin
41
42
  end
42
43
 
43
44
  def source(file)
45
+ file = File.expand_path(file)
44
46
  return unless File.exist?(file)
45
47
  instance_eval(IO.read(file))
46
48
  end
@@ -1,3 +1,3 @@
1
1
  module Xlogin
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
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.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - haccht
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2017-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-telnet