utils 0.29.0 → 0.30.2

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: 6767d2a9ea94b1d9bcc05d7113d0b2dcb046d44ce1118cc1cbabee38f54710ef
4
- data.tar.gz: 700c63a1c1d2593a96547e36149e8b8954a5df6b4fc3b21e4b387c814aacec65
3
+ metadata.gz: 2cfceff8cca1b56b989aaa48528f55bec815bfed29c7dbb3a4fee5cc78632c66
4
+ data.tar.gz: fb3a9b0378b3cd615d03212bbd798580536f657072f9cd5d8761d1320fedb9e2
5
5
  SHA512:
6
- metadata.gz: b58819a0923c071472987f59f562035b2405fe50adee161eaf8f6b93a472d7b5adf6338e267dda844c4d9590b0264cdd30dbb7a8073411cdc2e3c052d5bbdede
7
- data.tar.gz: a0dd3932b0913c77a3cc2200ff167b2c7928e6619866e5cd3897a6c1b01dae83606c5bfe5f6484974e6ef7a4e89a10b3f3677a203302dc4ad8116fd9f4f5f707
6
+ metadata.gz: a3f92d1df1bc8063a633b05b79eef4f61beb2160c34e1477d1bca5d0da3ad81e1aab923fff9de3857e88604df67104ce8b6de5f5b385c1301ed5585994ddd3ab
7
+ data.tar.gz: db10e0cab3f2ebc199f109bd203299684b2a5f5a978bd8f460063e75641a2cc9139b21b0a2f18f27637695bfdd3542d76b01d1da2cf03c95b946cadfcf66e911
data/Rakefile CHANGED
@@ -24,7 +24,7 @@ GemHadar do
24
24
  dependency 'infobar'
25
25
  dependency 'mize'
26
26
  dependency 'search_ui'
27
- dependency 'all_images'
27
+ dependency 'all_images', '>=0.0.2'
28
28
 
29
29
  install_library do
30
30
  libdir = CONFIG["sitelibdir"]
data/bin/search CHANGED
@@ -116,6 +116,7 @@ Options are
116
116
  -B NUMBER displays NUMBER lines of context before the match
117
117
  -C NUMBER displays NUMBER lines of context around the match
118
118
  -f just list the paths of the files that would be searched
119
+ -F just consider real files when searching
119
120
  -l just list the paths of the files with matches
120
121
  -L list only the path:linenumber of the files with matches
121
122
  -pX interpret PATTERN argument as X=f fuzzy or X=r for regexp
@@ -136,7 +137,7 @@ Version is #{File.basename($0)} #{Utils::VERSION}.
136
137
  exit 1
137
138
  end
138
139
 
139
- args = go 'r:p:I:A:B:C:s:S:n:N:a:i:cflLeEvbgh'
140
+ args = go 'r:p:I:A:B:C:s:S:n:N:a:i:cfFlLeEvbgh'
140
141
  args[?h] and usage
141
142
  pattern = ARGV.shift or usage
142
143
  roots = (ARGV.empty? ? [ Dir.pwd ] : ARGV).map { |f| File.expand_path(f) }
data/lib/utils/grepper.rb CHANGED
@@ -156,11 +156,12 @@ class Utils::Grepper
156
156
  def search
157
157
  suffixes = Array(@args[?I])
158
158
  visit = -> filename {
159
- s = filename.stat
159
+ s = filename.lstat
160
160
  bn = filename.pathname.basename
161
161
  if !s ||
162
162
  s.directory? && @config.search.prune?(bn) ||
163
- s.file? && @config.search.skip?(bn)
163
+ (s.file? || s.symlink?) && @config.search.skip?(bn) ||
164
+ @args[?F] && s.symlink?
164
165
  then
165
166
  @args[?v] and warn "Pruning #{filename.inspect}."
166
167
  prune
data/lib/utils/irb.rb CHANGED
@@ -276,7 +276,7 @@ module Utils
276
276
  expired = Time.now - start
277
277
  diffs = cur.zip(pre).map { |c, p| c - p }
278
278
  rates = diffs.map { |d| d / duration }
279
- warn "#{expired} #{cur.zip(rates, diffs).map(&:inspect) * ' '} # / per sec."
279
+ warn "#{expired} #{cur.zip(diffs, rates).map(&:inspect) * ' '} 𝝙 / per sec."
280
280
  pre = cur.map(&:to_f)
281
281
  sleep duration
282
282
  end
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.29.0'
3
+ VERSION = '0.30.2'
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.29.0 ruby lib
2
+ # stub: utils 0.30.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.29.0"
6
+ s.version = "0.30.2"
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 = "2022-05-19"
11
+ s.date = "2022-07-11"
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, "check-yaml".freeze, "classify".freeze, "create_cstags".freeze, "create_tags".freeze, "discover".freeze, "edit".freeze, "edit_wait".freeze, "enum".freeze, "fix-brew".freeze, "git-empty".freeze, "git-versions".freeze, "irb_connect".freeze, "json_check".freeze, "long_lines".freeze, "myex".freeze, "number_files".freeze, "on_change".freeze, "path".freeze, "probe".freeze, "rd2md".freeze, "search".freeze, "sedit".freeze, "serve".freeze, "ssh-tunnel".freeze, "ssl_cert_info".freeze, "strip_spaces".freeze, "untest".freeze, "utils-utilsrc".freeze, "vcf2alias".freeze]
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.homepage = "http://github.com/flori/utils".freeze
18
18
  s.licenses = ["GPL-2.0".freeze]
19
19
  s.rdoc_options = ["--title".freeze, "Utils - Some useful command line utilities".freeze, "--main".freeze, "README.md".freeze]
20
- s.rubygems_version = "3.3.13".freeze
20
+ s.rubygems_version = "3.3.7".freeze
21
21
  s.summary = "Some useful command line utilities".freeze
22
22
 
23
23
  if s.respond_to? :specification_version then
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  s.add_runtime_dependency(%q<infobar>.freeze, [">= 0"])
33
33
  s.add_runtime_dependency(%q<mize>.freeze, [">= 0"])
34
34
  s.add_runtime_dependency(%q<search_ui>.freeze, [">= 0"])
35
- s.add_runtime_dependency(%q<all_images>.freeze, [">= 0"])
35
+ s.add_runtime_dependency(%q<all_images>.freeze, [">= 0.0.2"])
36
36
  else
37
37
  s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
38
38
  s.add_dependency(%q<tins>.freeze, ["~> 1.14"])
@@ -41,6 +41,6 @@ Gem::Specification.new do |s|
41
41
  s.add_dependency(%q<infobar>.freeze, [">= 0"])
42
42
  s.add_dependency(%q<mize>.freeze, [">= 0"])
43
43
  s.add_dependency(%q<search_ui>.freeze, [">= 0"])
44
- s.add_dependency(%q<all_images>.freeze, [">= 0"])
44
+ s.add_dependency(%q<all_images>.freeze, [">= 0.0.2"])
45
45
  end
46
46
  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.29.0
4
+ version: 0.30.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-19 00:00:00.000000000 Z
11
+ date: 2022-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.0.2
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.0.2
125
125
  description: This ruby gem provides some useful command line utilities
126
126
  email: flori@ping.de
127
127
  executables:
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  - !ruby/object:Gem::Version
253
253
  version: '0'
254
254
  requirements: []
255
- rubygems_version: 3.3.13
255
+ rubygems_version: 3.3.7
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: Some useful command line utilities