utils 0.54.1 → 0.55.0

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: 803ecd0f9ce7e8bf85c2661b846ead779758b25a61044135afc9508b7bd7cc2c
4
- data.tar.gz: d8a58db9bf5eb7af8e4ad84ee0a632e1b10daf546454fcc8838ada437335d870
3
+ metadata.gz: 8f07d933f0464526f29b4b4151b376865e89c63f4f40fd1dbd65b0b36a12fa72
4
+ data.tar.gz: 864ba5603c075ea2a7424002d165c8b3461ded167cc58392cb552640f300e9c9
5
5
  SHA512:
6
- metadata.gz: 7f0a9ce8dfc9adf7683c30939c95fcabc783adf7a973c832db8477f298ae71d15886232c54dce114b76b15c08caf4348f0f38f63cd751a58bd36bd91face275e
7
- data.tar.gz: dbcabf20099490daab40ab68bfcf4f6261ee5086ecff3fa117f59b03d4dade6d6a3216631e697552879a12b0ece9d94923a3e75cf46bd5967b4ced3807325452
6
+ metadata.gz: 0b751f8f2ae8df4b5a6bef44f72c9231b0e902dcdee1e6b3591b4544bea2085de5560e14df3b59c51025067cca766036d97f12e98537f4a402c8655c841fd92e
7
+ data.tar.gz: 20dc4b302be41455dbc19f95140c56d25cd10993ea93a4fd55201c1b672c3163ed2fd93c96bb8aa88a29ea27b904a16c47626a71d6b14c935aafd16de8b007d0
data/bin/ssh-tunnel CHANGED
@@ -95,11 +95,7 @@ user, remote, rport =
95
95
  ssh_dir = File.expand_path('~/.ssh')
96
96
  mkdir_p ssh_dir
97
97
  sock_file = "#{ssh_dir}/#{user}@#{remote}:#{rport}.sock"
98
- if env_user = ENV['USER']
99
- opts[?n] ||= env_user
100
- else
101
- opts[?n] ||= 'session'
102
- end
98
+ opts[?n] ||= config.ssh_tunnel.login_session
103
99
  if opts[?N]
104
100
  cmd "ssh -p #{rport} -S #{sock_file} #{user}@#{remote} #{config.ssh_tunnel.multiplexer_list}"
105
101
  else
@@ -179,6 +179,10 @@ class Utils::ConfigFile
179
179
 
180
180
  config :env, {}
181
181
 
182
+ config :login_session do
183
+ ENV.fetch('HOME', 'session')
184
+ end
185
+
182
186
  def initialize
183
187
  super
184
188
  self.terminal_multiplexer = terminal_multiplexer
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.54.1'
3
+ VERSION = '0.55.0'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
data/utils.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: utils 0.54.1 ruby lib
2
+ # stub: utils 0.55.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.54.1".freeze
6
+ s.version = "0.55.0".freeze
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2024-09-27"
11
+ s.date = "2024-09-28"
12
12
  s.description = "This ruby gem provides some useful command line utilities".freeze
13
13
  s.email = "flori@ping.de".freeze
14
14
  s.executables = ["ascii7".freeze, "blameline".freeze, "changes".freeze, "classify".freeze, "code_comment".freeze, "commit_message".freeze, "create_cstags".freeze, "create_tags".freeze, "discover".freeze, "edit".freeze, "edit_wait".freeze, "enum".freeze, "git-empty".freeze, "git-md".freeze, "git-versions".freeze, "json_check".freeze, "long_lines".freeze, "myex".freeze, "number_files".freeze, "on_change".freeze, "path".freeze, "print_method".freeze, "probe".freeze, "rd2md".freeze, "search".freeze, "sedit".freeze, "serve".freeze, "ssh-tunnel".freeze, "strip_spaces".freeze, "sync_dir".freeze, "untest".freeze, "utils-utilsrc".freeze, "vcf2alias".freeze, "yaml_check".freeze]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.1
4
+ version: 0.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-27 00:00:00.000000000 Z
11
+ date: 2024-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar