utils 0.50.0 → 0.51.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: dadd4a293214a787936b14864d1dd05c0808ac65d257f19d67bfdd1226509293
4
- data.tar.gz: 6d3b76168a3a581c40090a7cd5b9405ccd20c808c0aff3b7459effa39b003170
3
+ metadata.gz: 4e185acac664741314fb5a1f58266668dbb52aa2658d1ded38fd81c28de31871
4
+ data.tar.gz: 45275a54c3ae135e6414093aeb3b954b5bcc2eb5bfcfe34aecbb624a8d7c79a9
5
5
  SHA512:
6
- metadata.gz: 488fd24d4c446bf86f4b13ed5091701d8e411dee6a884dd9a86fb7f0392c6cd623d75c1f7bd0e997305cad59755404bc8acb2edcce04e1c727f5952220f7c314
7
- data.tar.gz: 617b678a20a2d41a08cb8d070d7052bb022a50f3cde0864f37910e656d8c18e8c8e2df9137021c447957efaf8021d5d022303b276b933591a3ad6db4242302eb
6
+ metadata.gz: f10fced5595d91ec7f9dd873cfb94634f13e1871c428a7ea8f25e63ea71e054946600aa042e1a2739e99a57bee6d2cae79b3cb4e9f2722aa788e0b7c6c695123
7
+ data.tar.gz: c5f1327f9b910cfe137835356c7e42736e88c01348861a3962e333519040b7783fd01672473ac697f4e43ea612fba539b6db85df501474f51999496056acae3a
data/Rakefile CHANGED
@@ -19,18 +19,18 @@ GemHadar do
19
19
  readme 'README.md'
20
20
  licenses << 'GPL-2.0'
21
21
 
22
- dependency 'drb'
23
- dependency 'webrick'
24
- dependency 'tins', '~> 1.14'
25
- dependency 'term-ansicolor', '~> 1.3'
26
- dependency 'pstree', '~> 0.3'
27
- dependency 'infobar', '~> 0.8'
28
- dependency 'mize', '~> 0.6'
29
- dependency 'search_ui', '~> 0.0'
30
- dependency 'all_images', '~> 0.5.0'
31
- dependency 'ollama-ruby', '~> 0.3.0'
32
- dependency 'simplecov'
33
- development_dependency 'debug'
22
+ dependency 'drb'
23
+ dependency 'webrick'
24
+ dependency 'tins', '~> 1.14'
25
+ dependency 'term-ansicolor', '~> 1.3'
26
+ dependency 'pstree', '~> 0.3'
27
+ dependency 'infobar', '~> 0.8'
28
+ dependency 'mize', '~> 0.6'
29
+ dependency 'search_ui', '~> 0.0'
30
+ dependency 'all_images', '~> 0.5.0'
31
+ dependency 'ollama-ruby', '~> 0.3.0'
32
+ dependency 'simplecov'
33
+ dependency 'debug'
34
34
 
35
35
  install_library do
36
36
  libdir = CONFIG["sitelibdir"]
data/bin/discover CHANGED
@@ -53,7 +53,7 @@ Version is #{File.basename($0)} #{Utils::VERSION}.
53
53
  exit 1
54
54
  end
55
55
 
56
- args = go 'n:I:i:a:p:creEvdsDh', defaults: { ?a => '\\w' }
56
+ args = go 'n:I:i:a:p:lcreEvdsDh', defaults: { ?a => '\\w' }
57
57
  args[?h] and usage
58
58
 
59
59
  Term::ANSIColor.coloring = (STDIN.tty? && ENV['TERM'] !~ /dumb/) && !args[?c]
@@ -61,7 +61,7 @@ STDOUT.sync = true
61
61
  config = Utils::ConfigFile.new
62
62
  config.configure_from_paths
63
63
  args[?b] ||= config.discover.binary
64
- args[?n] ||= config.discover.max_matches
64
+ args[?n] ||= args[?l] ? 1 << 60 : config.discover.max_matches
65
65
 
66
66
  if args[?s]
67
67
  pattern = ''
@@ -111,6 +111,8 @@ search = -> * {
111
111
  }
112
112
 
113
113
  case
114
+ when args[?l]
115
+ puts finder.().search_index.output
114
116
  when args[?s]
115
117
  search.()
116
118
  when args[?E]
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.50.0'
3
+ VERSION = '0.51.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.50.0 ruby lib
2
+ # stub: utils 0.51.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.50.0".freeze
6
+ s.version = "0.51.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-15"
11
+ s.date = "2024-09-22"
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-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]
@@ -23,7 +23,6 @@ Gem::Specification.new do |s|
23
23
  s.specification_version = 4
24
24
 
25
25
  s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.17.1".freeze])
26
- s.add_development_dependency(%q<debug>.freeze, [">= 0".freeze])
27
26
  s.add_runtime_dependency(%q<drb>.freeze, [">= 0".freeze])
28
27
  s.add_runtime_dependency(%q<webrick>.freeze, [">= 0".freeze])
29
28
  s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14".freeze])
@@ -35,4 +34,5 @@ Gem::Specification.new do |s|
35
34
  s.add_runtime_dependency(%q<all_images>.freeze, ["~> 0.5.0".freeze])
36
35
  s.add_runtime_dependency(%q<ollama-ruby>.freeze, ["~> 0.3.0".freeze])
37
36
  s.add_runtime_dependency(%q<simplecov>.freeze, [">= 0".freeze])
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.50.0
4
+ version: 0.51.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-15 00:00:00.000000000 Z
11
+ date: 2024-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.17.1
27
- - !ruby/object:Gem::Dependency
28
- name: debug
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: drb
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -192,6 +178,20 @@ dependencies:
192
178
  - - ">="
193
179
  - !ruby/object:Gem::Version
194
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: debug
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
195
  description: This ruby gem provides some useful command line utilities
196
196
  email: flori@ping.de
197
197
  executables: