utils 0.53.1 → 0.54.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/changes +5 -7
- data/bin/commit_message +2 -1
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3153c162816741a4454da641b96f1facc29bd8edb480590772af65d6af60a46
|
4
|
+
data.tar.gz: c2a5ea618f64c22fed9a4ea15ecff2651e5802a87ca58d569f0161e4682fb448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b152b5d1dd597f68d09318cf2658b9abf9379437835d0dfc73072d42627b2d831b641fcf0348a47f02b7752d5ad00bee5d63658e04c5bd188b03e3fcb8efd9
|
7
|
+
data.tar.gz: d603ab21c077f6392bb9b4572aaee845bc77675113cc718edcb3fca1176ce383d98531762223988ac24cc637c4e4d435102a1d7c3dafb1862bf05f7cf313b110
|
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.0 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.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-
|
11
|
+
s.date = "2024-09-26"
|
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])
|
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.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-
|
11
|
+
date: 2024-09-26 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
|