utils 0.53.1 → 0.54.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/bin/changes +5 -7
- data/bin/commit_message +2 -1
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 803ecd0f9ce7e8bf85c2661b846ead779758b25a61044135afc9508b7bd7cc2c
|
4
|
+
data.tar.gz: d8a58db9bf5eb7af8e4ad84ee0a632e1b10daf546454fcc8838ada437335d870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f0a9ce8dfc9adf7683c30939c95fcabc783adf7a973c832db8477f298ae71d15886232c54dce114b76b15c08caf4348f0f38f63cd751a58bd36bd91face275e
|
7
|
+
data.tar.gz: dbcabf20099490daab40ab68bfcf4f6261ee5086ecff3fa117f59b03d4dade6d6a3216631e697552879a12b0ece9d94923a3e75cf46bd5967b4ced3807325452
|
data/Rakefile
CHANGED
data/bin/changes
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'ollama'
|
4
4
|
include Ollama
|
5
|
-
require 'tins'
|
5
|
+
require 'tins/xt'
|
6
6
|
|
7
7
|
def x(cmd)
|
8
8
|
output=`#{cmd}`
|
@@ -18,9 +18,7 @@ def find_highest_version_tag(filename)
|
|
18
18
|
tags << $1
|
19
19
|
end
|
20
20
|
end
|
21
|
-
tags.map
|
22
|
-
Tins::StringVersion::Version.new(_1)
|
23
|
-
}.max
|
21
|
+
tags.map(&:verion).max
|
24
22
|
end
|
25
23
|
end
|
26
24
|
|
@@ -97,7 +95,7 @@ x("git fetch --tags")
|
|
97
95
|
case command = ARGV.shift
|
98
96
|
when 'pending'
|
99
97
|
last_version = x("git tag").lines.grep(/^v?\d+\.\d+\.\d+$/).map(&:chomp).map {
|
100
|
-
|
98
|
+
_1.sub(/\Av/, '').version
|
101
99
|
}.max
|
102
100
|
if last_version
|
103
101
|
puts compute_change(last_version, :HEAD)
|
@@ -106,7 +104,7 @@ when 'pending'
|
|
106
104
|
end
|
107
105
|
when 'current'
|
108
106
|
version1, version2 = x("git tag").lines.grep(/^v?\d+\.\d+\.\d+$/).map(&:chomp).map {
|
109
|
-
|
107
|
+
_1.sub(/\Av/, '').version
|
110
108
|
}.sort.last(2)
|
111
109
|
if version1 and version2
|
112
110
|
puts compute_change(version1, version2)
|
@@ -124,7 +122,7 @@ when 'range'
|
|
124
122
|
when 'full', 'add'
|
125
123
|
ary = []
|
126
124
|
tags = x("git tag").lines.grep(/^v?\d+\.\d+\.\d+$/).map(&:chomp).map {
|
127
|
-
|
125
|
+
_1.sub(/\Av/, '').version
|
128
126
|
}.sort
|
129
127
|
if command == 'full'
|
130
128
|
date=x("git log -n1 --pretty='format:%cd' --date=short v#{tags.first}").chomp
|
data/bin/commit_message
CHANGED
@@ -7,5 +7,6 @@ config =
|
|
7
7
|
File.join(xdg, 'commit_message')
|
8
8
|
end
|
9
9
|
|
10
|
-
|
10
|
+
branch=`git rev-parse --abbrev-ref HEAD`.chomp
|
11
|
+
exec 'ollama_cli', '-M', "#{config}/options.json", '-P', "branch=#{branch}",
|
11
12
|
'-s', "#{config}/system.txt", '-p', "#{config}/prompt.txt"
|
data/lib/utils/version.rb
CHANGED
data/utils.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: utils 0.
|
2
|
+
# stub: utils 0.54.1 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "utils".freeze
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.54.1".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-
|
11
|
+
s.date = "2024-09-27"
|
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]
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.specification_version = 4
|
24
24
|
|
25
|
-
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.
|
25
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.18.0".freeze])
|
26
26
|
s.add_runtime_dependency(%q<drb>.freeze, [">= 0".freeze])
|
27
27
|
s.add_runtime_dependency(%q<webrick>.freeze, [">= 0".freeze])
|
28
28
|
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14".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.
|
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.
|
4
|
+
version: 0.54.1
|
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-
|
11
|
+
date: 2024-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.18.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.18.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: drb
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 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.
|
166
|
+
version: 0.5.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: simplecov
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|