utils 0.42.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/create_tags +1 -1
- data/bin/sync_dir +12 -2
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 825b9fd0dbbb5410f80f85ecec639484f6e96bd1c240d8f830a7e85961c6e1c3
|
4
|
+
data.tar.gz: 93d42d80cbbf23773c93cc41feaac88f0ae5e7ca44e791ed8faff6363eaa53b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b33cc91d12d7e0141e08ee7f83bef104ede6fb32df27ab4ecd29575932a4197a3172e6e90acb7647aeac27ef64d24a7969b73e98f32ebf1b4e10c9716ac1f950
|
7
|
+
data.tar.gz: fc980bc204f19f9ed4492f15c8b692b1ab3ae98e069a7e0687cb53dbba66e4df866cefe5110e5caa9d7ad69be473b896583b3023660aaa3cbf64700e08e2cba6
|
data/bin/create_tags
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'infobar'
|
4
4
|
|
5
5
|
paths = %w[ . ] + `bundle list --paths`.lines.map(&:chomp)
|
6
|
-
cmd = %w[ ctags --recurse=yes --languages=Ruby,C ] + paths
|
6
|
+
cmd = %w[ ctags --recurse=yes --exclude=pkg --languages=Ruby,C ] + paths
|
7
7
|
Infobar.busy(label: 'Creating tags') { system(*cmd) }
|
8
8
|
if megabytes = File.size('tags').to_f / 1024 ** 2 rescue nil
|
9
9
|
infobar.puts 'Created %.3fM of tags.' % megabytes
|
data/bin/sync_dir
CHANGED
@@ -51,6 +51,7 @@ diff_dir.each_line do |line|
|
|
51
51
|
(E)dit #{s.inspect}
|
52
52
|
(D)elete #{s.inspect}
|
53
53
|
(S)kip
|
54
|
+
(Q)uit
|
54
55
|
end
|
55
56
|
case ask?(prompt: 'action? ')
|
56
57
|
when /\Ac/i
|
@@ -60,6 +61,8 @@ diff_dir.each_line do |line|
|
|
60
61
|
redo
|
61
62
|
when /\Ad/i
|
62
63
|
rm s
|
64
|
+
when /\Aq/i
|
65
|
+
exit
|
63
66
|
end
|
64
67
|
when /^Files (.*?) and (.*?) differ$/
|
65
68
|
s, d = $~.captures
|
@@ -71,9 +74,16 @@ diff_dir.each_line do |line|
|
|
71
74
|
puts <<~end
|
72
75
|
(V)imdiff
|
73
76
|
(S)kip
|
77
|
+
(Q)uit
|
78
|
+
end
|
79
|
+
case ask?(prompt: 'action? ')
|
80
|
+
when /\Av/i
|
81
|
+
system "vimdiff #{s.inspect} #{d.inspect}"
|
82
|
+
when /\Aq/i
|
83
|
+
exit
|
84
|
+
else
|
85
|
+
next
|
74
86
|
end
|
75
|
-
ask?(prompt: 'action? ') =~ /\Av/i or next
|
76
|
-
system "vimdiff #{s.inspect} #{d.inspect}"
|
77
87
|
redo
|
78
88
|
end
|
79
89
|
rescue Interrupt
|
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.44.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.44.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-
|
11
|
+
s.date = "2024-07-03"
|
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, "strip_spaces".freeze, "sync_dir".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.5.
|
20
|
+
s.rubygems_version = "3.5.11".freeze
|
21
21
|
s.summary = "Some useful command line utilities".freeze
|
22
22
|
|
23
23
|
s.specification_version = 4
|
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.44.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-
|
11
|
+
date: 2024-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -281,7 +281,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
281
281
|
- !ruby/object:Gem::Version
|
282
282
|
version: '0'
|
283
283
|
requirements: []
|
284
|
-
rubygems_version: 3.5.
|
284
|
+
rubygems_version: 3.5.11
|
285
285
|
signing_key:
|
286
286
|
specification_version: 4
|
287
287
|
summary: Some useful command line utilities
|