utils 0.54.1 → 0.56.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: 8b617aa2b1c9f63d35f0c7e09c61b07f819e1b339f6925d9080eb18f71d121b1
4
+ data.tar.gz: 78f4020fac0d79012ea64fa51b233ee4290081a1163e91019c2665ed5654a48d
5
5
  SHA512:
6
- metadata.gz: 7f0a9ce8dfc9adf7683c30939c95fcabc783adf7a973c832db8477f298ae71d15886232c54dce114b76b15c08caf4348f0f38f63cd751a58bd36bd91face275e
7
- data.tar.gz: dbcabf20099490daab40ab68bfcf4f6261ee5086ecff3fa117f59b03d4dade6d6a3216631e697552879a12b0ece9d94923a3e75cf46bd5967b4ced3807325452
6
+ metadata.gz: 2beb3cfeb1399e570ddef18b727dfd4435cc8fc844929ce6f98117f9d918841993492afcb2cb81fc11e09bf7f9a6c8173a75232048a3c7f4e85dab67f0d04958
7
+ data.tar.gz: e72044bed9a982b6e0eed025981bf68758eac26ae00f589b063ae17784f82bf38ff68efaacfa3d2387d5b4dd76e197884165ccd4ac6373f90ef57b19abdc7e90
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.5.0'
31
+ dependency 'ollama-ruby'
32
32
  dependency 'simplecov'
33
33
  dependency 'debug'
34
34
 
data/bin/commit_message CHANGED
@@ -7,6 +7,6 @@ config =
7
7
  File.join(xdg, 'commit_message')
8
8
  end
9
9
 
10
- branch=`git rev-parse --abbrev-ref HEAD`.chomp
10
+ branch = `git rev-parse --abbrev-ref HEAD`.chomp
11
11
  exec 'ollama_cli', '-M', "#{config}/options.json", '-P', "branch=#{branch}",
12
12
  '-s', "#{config}/system.txt", '-p', "#{config}/prompt.txt"
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.56.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.56.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.56.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-30"
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.5.0".freeze])
35
+ s.add_runtime_dependency(%q<ollama-ruby>.freeze, [">= 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.1
4
+ version: 0.56.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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -154,16 +154,16 @@ dependencies:
154
154
  name: ollama-ruby
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 0.5.0
159
+ version: '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.5.0
166
+ version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement