utils 0.12.0 → 0.13.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: 30ee29850e1dd83ba2674daf3545174878b20425fe225e97e831b77ce6d161f5
4
- data.tar.gz: d223fd2dde07b9610a59465a356df56e6043b8a71cd32aa3921ececd1c380227
3
+ metadata.gz: 4f9559e8cae17bda05942f9920fdeaecab75436390c8921978a1c947b362b3ac
4
+ data.tar.gz: be5cc51f837ee7a5ee87323ce50a07cbd2254b2de65d32d2fbc3f0064141a71e
5
5
  SHA512:
6
- metadata.gz: 4a88f6dfd850e88ecae6881dc60e2d31ba6e88b700f455fedf5fe6a3d60ccad82d56c8461d0206d35e6f3369710d4a902922f0aa97bdde5404a0dcd9df0240ed
7
- data.tar.gz: 7bd475966ada4a6a5f292d8a8af1c220c784e28a5c8b60dc10aa98e22dff62824eb37d1b8d46ef93ba4fe6f74015283167cf757213c330ab0f01b918f23a39a7
6
+ metadata.gz: 9076a9ac6ee3a8c7a49ec229b320a591542d397ea754c5b9267fe133ac3b82b8c3bfb03cc75030af152ad29c5da7d9202885c46433a132a13de6909dde3a5fd6
7
+ data.tar.gz: be8c92a59aa0928f4bf00e26827ecfec96eaaa9cfda8cbbbd8a11a3ece920c3644610e40ae17f87aa4dd79a39c5b5efbc8c94049600a9e2e837863ba4d0e8101
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.13.0
data/bin/discover CHANGED
@@ -50,7 +50,7 @@ Version is #{File.basename($0)} #{Utils::VERSION}.
50
50
  exit 1
51
51
  end
52
52
 
53
- args = go 'n:I:i:a:p:creEvdsh'
53
+ args = go 'n:I:i:a:p:creEvdsDh'
54
54
  args[?h] and usage
55
55
 
56
56
  Term::ANSIColor.coloring = (STDIN.tty? && ENV['TERM'] !~ /dumb/) && !args[?c]
@@ -107,6 +107,17 @@ when args[?E]
107
107
  edit_files *finder.().paths, pick: true
108
108
  when args[?e]
109
109
  edit_files *finder.().search.paths
110
+ when args[?D]
111
+ args[?d] = true
112
+ paths = finder.().load_paths.select { |p| File.directory?(p) }.reverse
113
+ leaf_dirs = []
114
+ until paths.empty?
115
+ path = paths.shift
116
+ unless leaf_dirs.any? { |ld| ld.start_with?(path) }
117
+ leaf_dirs.push path
118
+ end
119
+ end
120
+ puts leaf_dirs
110
121
  when pattern.empty? && args[?r]
111
122
  exit
112
123
  when pattern.empty?
data/lib/utils/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.12.0'
3
+ VERSION = '0.13.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.12.0 ruby lib
2
+ # stub: utils 0.13.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "utils".freeze
6
- s.version = "0.12.0"
6
+ s.version = "0.13.0"
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 = "2019-03-04"
11
+ s.date = "2019-04-05"
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 = ["discover".freeze, "classify".freeze, "sedit".freeze, "irb_connect".freeze, "ascii7".freeze, "path".freeze, "enum".freeze, "unquarantine_apps".freeze, "ssh-tunnel".freeze, "xmp".freeze, "brakeman2err".freeze, "search".freeze, "chroot-exec".freeze, "edit".freeze, "tmproc".freeze, "json_check".freeze, "edit_wait".freeze, "errf".freeze, "untest".freeze, "blameline".freeze, "remote_copy".freeze, "git-empty".freeze, "vacuum_firefox_sqlite".freeze, "same_files".freeze, "chroot-libs".freeze, "git-versions".freeze, "strip_spaces".freeze, "number_files".freeze, "rssr".freeze, "serve".freeze, "vcf2alias".freeze, "on_change".freeze, "utils-utilsrc".freeze, "myex".freeze, "long_lines".freeze, "dialog-pick".freeze, "probe".freeze, "create_tags".freeze]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.files = [".gitignore".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/ascii7".freeze, "bin/blameline".freeze, "bin/brakeman2err".freeze, "bin/chroot-exec".freeze, "bin/chroot-libs".freeze, "bin/classify".freeze, "bin/create_tags".freeze, "bin/dialog-pick".freeze, "bin/discover".freeze, "bin/edit".freeze, "bin/edit_wait".freeze, "bin/enum".freeze, "bin/errf".freeze, "bin/git-empty".freeze, "bin/git-versions".freeze, "bin/irb_connect".freeze, "bin/json_check".freeze, "bin/long_lines".freeze, "bin/myex".freeze, "bin/number_files".freeze, "bin/on_change".freeze, "bin/path".freeze, "bin/probe".freeze, "bin/remote_copy".freeze, "bin/rssr".freeze, "bin/same_files".freeze, "bin/search".freeze, "bin/sedit".freeze, "bin/serve".freeze, "bin/ssh-tunnel".freeze, "bin/strip_spaces".freeze, "bin/tmproc".freeze, "bin/unquarantine_apps".freeze, "bin/untest".freeze, "bin/utils-utilsrc".freeze, "bin/vacuum_firefox_sqlite".freeze, "bin/vcf2alias".freeze, "bin/xmp".freeze, "lib/utils.rb".freeze, "lib/utils/config_file.rb".freeze, "lib/utils/editor.rb".freeze, "lib/utils/file_xt.rb".freeze, "lib/utils/finder.rb".freeze, "lib/utils/grepper.rb".freeze, "lib/utils/interactive_search.rb".freeze, "lib/utils/irb.rb".freeze, "lib/utils/irb/service.rb".freeze, "lib/utils/line_blamer.rb".freeze, "lib/utils/line_formatter.rb".freeze, "lib/utils/md5.rb".freeze, "lib/utils/patterns.rb".freeze, "lib/utils/probe_server.rb".freeze, "lib/utils/ssh_tunnel_specification.rb".freeze, "lib/utils/version.rb".freeze, "lib/utils/xt/source_location_extension.rb".freeze, "utils.gemspec".freeze]
17
17
  s.homepage = "http://github.com/flori/utils".freeze
18
18
  s.rdoc_options = ["--title".freeze, "Utils - Some useful command line utilities".freeze, "--main".freeze, "README.md".freeze]
19
- s.rubygems_version = "3.0.2".freeze
19
+ s.rubygems_version = "3.0.3".freeze
20
20
  s.summary = "Some useful command line utilities".freeze
21
21
 
22
22
  if s.respond_to? :specification_version then
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.12.0
4
+ version: 0.13.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: 2019-03-04 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  - !ruby/object:Gem::Version
255
255
  version: '0'
256
256
  requirements: []
257
- rubygems_version: 3.0.2
257
+ rubygems_version: 3.0.3
258
258
  signing_key:
259
259
  specification_version: 4
260
260
  summary: Some useful command line utilities