utils 0.43.0 → 0.44.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: b3583ce3465c67920f1657f0abf6755c0fc9f901bca1c52caa0c87cd9a75ae37
4
- data.tar.gz: 77c44067f0bb95ebdeb1a7fdade018d335b949b63c1727e15f4afb67246b2e20
3
+ metadata.gz: 825b9fd0dbbb5410f80f85ecec639484f6e96bd1c240d8f830a7e85961c6e1c3
4
+ data.tar.gz: 93d42d80cbbf23773c93cc41feaac88f0ae5e7ca44e791ed8faff6363eaa53b2
5
5
  SHA512:
6
- metadata.gz: '09ceb99122db1b754ae147d6ad0f6a002e26b6c21f99554e5f2a448b98cbc5618a74f988ca09138e8528b9ad766430296faa30a59a41c7e38c91ae33945f03ed'
7
- data.tar.gz: 70481a4a7a41bf70546b53b4d2d942682e3f3756d8a4088790ce126a2bfeb2d84c337cfe762dc236a085f37e2b073206b7b1fe31940d32fe026968cbdbaa9b83
6
+ metadata.gz: b33cc91d12d7e0141e08ee7f83bef104ede6fb32df27ab4ecd29575932a4197a3172e6e90acb7647aeac27ef64d24a7969b73e98f32ebf1b4e10c9716ac1f950
7
+ data.tar.gz: fc980bc204f19f9ed4492f15c8b692b1ab3ae98e069a7e0687cb53dbba66e4df866cefe5110e5caa9d7ad69be473b896583b3023660aaa3cbf64700e08e2cba6
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
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.43.0'
3
+ VERSION = '0.44.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.43.0 ruby lib
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.43.0".freeze
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-06-05"
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.9".freeze
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.43.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-06-05 00:00:00.000000000 Z
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.9
284
+ rubygems_version: 3.5.11
285
285
  signing_key:
286
286
  specification_version: 4
287
287
  summary: Some useful command line utilities