utils 0.54.0 → 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: b3153c162816741a4454da641b96f1facc29bd8edb480590772af65d6af60a46
4
- data.tar.gz: c2a5ea618f64c22fed9a4ea15ecff2651e5802a87ca58d569f0161e4682fb448
3
+ metadata.gz: 8f07d933f0464526f29b4b4151b376865e89c63f4f40fd1dbd65b0b36a12fa72
4
+ data.tar.gz: 864ba5603c075ea2a7424002d165c8b3461ded167cc58392cb552640f300e9c9
5
5
  SHA512:
6
- metadata.gz: d3b152b5d1dd597f68d09318cf2658b9abf9379437835d0dfc73072d42627b2d831b641fcf0348a47f02b7752d5ad00bee5d63658e04c5bd188b03e3fcb8efd9
7
- data.tar.gz: d603ab21c077f6392bb9b4572aaee845bc77675113cc718edcb3fca1176ce383d98531762223988ac24cc637c4e4d435102a1d7c3dafb1862bf05f7cf313b110
6
+ metadata.gz: 0b751f8f2ae8df4b5a6bef44f72c9231b0e902dcdee1e6b3591b4544bea2085de5560e14df3b59c51025067cca766036d97f12e98537f4a402c8655c841fd92e
7
+ data.tar.gz: 20dc4b302be41455dbc19f95140c56d25cd10993ea93a4fd55201c1b672c3163ed2fd93c96bb8aa88a29ea27b904a16c47626a71d6b14c935aafd16de8b007d0
data/Rakefile CHANGED
@@ -28,7 +28,7 @@ GemHadar do
28
28
  dependency 'mize', '~> 0.6'
29
29
  dependency 'search_ui', '~> 0.0'
30
30
  dependency 'all_images', '~> 0.5.0'
31
- dependency 'ollama-ruby', '~> 0.4.0'
31
+ dependency 'ollama-ruby', '~> 0.5.0'
32
32
  dependency 'simplecov'
33
33
  dependency 'debug'
34
34
 
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.0'
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.0 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.0".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-26"
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]
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  s.add_runtime_dependency(%q<mize>.freeze, ["~> 0.6".freeze])
33
33
  s.add_runtime_dependency(%q<search_ui>.freeze, ["~> 0.0".freeze])
34
34
  s.add_runtime_dependency(%q<all_images>.freeze, ["~> 0.5.0".freeze])
35
- s.add_runtime_dependency(%q<ollama-ruby>.freeze, ["~> 0.4.0".freeze])
35
+ s.add_runtime_dependency(%q<ollama-ruby>.freeze, ["~> 0.5.0".freeze])
36
36
  s.add_runtime_dependency(%q<simplecov>.freeze, [">= 0".freeze])
37
37
  s.add_runtime_dependency(%q<debug>.freeze, [">= 0".freeze])
38
38
  end
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.0
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-26 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
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.4.0
159
+ version: 0.5.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.4.0
166
+ version: 0.5.0
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement