utils 0.38.0 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/classify +0 -1
- data/bin/sync_dir +5 -2
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +13 -13
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ed46aaf96e35ad1bfbdd629037b3abf7dafb67da47c8eaebdebd690de70c5d6
|
4
|
+
data.tar.gz: 0670a855e0cf46391bf9565a51202a6892378e548acdc7e6d42de055d330a71a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0efd5b1b15920f65dad2c8395a3b4da2867d428c18e7dfc903c382b46143d14cf6dd1635e981f14d3c5af87f97f1ae5f4775b81bbbc3e3c406d45b1420f4506
|
7
|
+
data.tar.gz: 778638ba30208713f7738a958041ca9c9444760995826552e35ab82f8f24660ce6a6086f84d8b56ffae9a3f4d2fd6ba0aae323064238d60d9732d0af1d2a2d08
|
data/bin/classify
CHANGED
data/bin/sync_dir
CHANGED
@@ -5,6 +5,8 @@ require 'tins/xt'
|
|
5
5
|
require 'fileutils'
|
6
6
|
include FileUtils::Verbose
|
7
7
|
require 'utils'
|
8
|
+
require 'term/ansicolor'
|
9
|
+
include Term::ANSIColor
|
8
10
|
|
9
11
|
$config = Utils::ConfigFile.new
|
10
12
|
$config.configure_from_paths
|
@@ -21,7 +23,7 @@ end
|
|
21
23
|
|
22
24
|
def ask?(prompt:)
|
23
25
|
print prompt
|
24
|
-
|
26
|
+
gets.chomp
|
25
27
|
end
|
26
28
|
|
27
29
|
$src = ARGV.shift or fail "need source directory as first argument"
|
@@ -41,7 +43,7 @@ diff_dir.each_line do |line|
|
|
41
43
|
dd = [ $src, $dst ].find { _1 != sd }
|
42
44
|
d = local_path(File.join(dd, d))
|
43
45
|
if File.file?(s) and File.ascii?(s)
|
44
|
-
puts File.read(s)
|
46
|
+
puts color(214, File.read(s))
|
45
47
|
end
|
46
48
|
puts " Only found in #{s.inspect} ".center(Tins::Terminal.cols, ?*)
|
47
49
|
puts <<~end
|
@@ -72,6 +74,7 @@ diff_dir.each_line do |line|
|
|
72
74
|
end
|
73
75
|
ask?(prompt: 'action? ') =~ /\Av/i or next
|
74
76
|
system "vimdiff #{s.inspect} #{d.inspect}"
|
77
|
+
redo
|
75
78
|
end
|
76
79
|
rescue Interrupt
|
77
80
|
exit
|
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.40.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.40.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 = "
|
11
|
+
s.date = "2024-03-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, "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,18 +17,18 @@ 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.
|
20
|
+
s.rubygems_version = "3.5.6".freeze
|
21
21
|
s.summary = "Some useful command line utilities".freeze
|
22
22
|
|
23
23
|
s.specification_version = 4
|
24
24
|
|
25
|
-
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.
|
26
|
-
s.add_development_dependency(%q<debug>.freeze, [">= 0"])
|
27
|
-
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14"])
|
28
|
-
s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
|
29
|
-
s.add_runtime_dependency(%q<pstree>.freeze, ["~> 0.3"])
|
30
|
-
s.add_runtime_dependency(%q<infobar>.freeze, [">= 0"])
|
31
|
-
s.add_runtime_dependency(%q<mize>.freeze, [">= 0"])
|
32
|
-
s.add_runtime_dependency(%q<search_ui>.freeze, [">= 0"])
|
33
|
-
s.add_runtime_dependency(%q<all_images>.freeze, [">= 0.0.2"])
|
25
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.15.0".freeze])
|
26
|
+
s.add_development_dependency(%q<debug>.freeze, [">= 0".freeze])
|
27
|
+
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14".freeze])
|
28
|
+
s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3".freeze])
|
29
|
+
s.add_runtime_dependency(%q<pstree>.freeze, ["~> 0.3".freeze])
|
30
|
+
s.add_runtime_dependency(%q<infobar>.freeze, [">= 0".freeze])
|
31
|
+
s.add_runtime_dependency(%q<mize>.freeze, [">= 0".freeze])
|
32
|
+
s.add_runtime_dependency(%q<search_ui>.freeze, [">= 0".freeze])
|
33
|
+
s.add_runtime_dependency(%q<all_images>.freeze, [">= 0.0.2".freeze])
|
34
34
|
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.40.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:
|
11
|
+
date: 2024-03-22 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.15.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.15.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
- !ruby/object:Gem::Version
|
268
268
|
version: '0'
|
269
269
|
requirements: []
|
270
|
-
rubygems_version: 3.
|
270
|
+
rubygems_version: 3.5.6
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: Some useful command line utilities
|