utils 0.47.0 → 0.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/probe +3 -27
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 677af95701a972ced43473bd9c67461ccf2641d85b8f65261ba96c6a0ec04cb7
|
4
|
+
data.tar.gz: 57fae4a1824ae33ed64b1f2a3b4cbc735f3b34fd37b6e104ba446c9cf396b0b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d0d4b3ee0cbf6d07ca290afb51cb4ca5c7ba5ed97a168d5aba902cd9adb8706a1c858d75be752affee555c4cc749203c250d9453962bd6c4e8ceca603f0583
|
7
|
+
data.tar.gz: ff0a2476df783d8beb89797675a59b1a6f17661dfbf08c97e68a0a1e54e7e56c0658c3c05030a862186679c4bb574d15c734272966096653087d50b752928b20
|
data/bin/probe
CHANGED
@@ -5,10 +5,6 @@ require 'tins/xt'
|
|
5
5
|
require 'tins/lines_file'
|
6
6
|
include Tins::GO
|
7
7
|
require 'utils'
|
8
|
-
begin
|
9
|
-
require 'utils/line_formatter'
|
10
|
-
rescue LoadError
|
11
|
-
end
|
12
8
|
include Utils
|
13
9
|
require 'drb'
|
14
10
|
|
@@ -45,19 +41,8 @@ def find_cmd(*cmds, on_fail: -> *cmds { raise fail "no #{cmds * '|'} command fou
|
|
45
41
|
cmds.map { |c| `which #{c}`.full?(:chomp) }.compact.first or on_fail.(*cmds)
|
46
42
|
end
|
47
43
|
|
48
|
-
def spring?
|
49
|
-
`bin/spring status`.lines.first =~ /^Spring is running:/
|
50
|
-
rescue Errno::ENOENT
|
51
|
-
false
|
52
|
-
end
|
53
|
-
singleton_class.class_eval do
|
54
|
-
memoize_function :spring?
|
55
|
-
end
|
56
|
-
|
57
44
|
def start_server
|
58
45
|
Thread.abort_on_exception = $DEBUG
|
59
|
-
spring? and
|
60
|
-
puts "Found spring running, I'll try to use it for running tests."
|
61
46
|
|
62
47
|
begin
|
63
48
|
DRb.start_service
|
@@ -82,7 +67,7 @@ def connect_server
|
|
82
67
|
end
|
83
68
|
end
|
84
69
|
if $opts[?c]
|
85
|
-
opts = $opts.subhash(*%w[n t
|
70
|
+
opts = $opts.subhash(*%w[n t]).each_with_object([]) { |(k, v), a|
|
86
71
|
v.full? and a.concat [ "-#{k}", v ]
|
87
72
|
}
|
88
73
|
probe_server.enqueue opts + $args
|
@@ -99,7 +84,7 @@ if i = ARGV.index('--')
|
|
99
84
|
else
|
100
85
|
$args = ARGV.dup
|
101
86
|
end
|
102
|
-
$opts = go 'lct:n:u:C:
|
87
|
+
$opts = go 'lct:n:u:C:h', $args
|
103
88
|
$opts[?h] and usage
|
104
89
|
|
105
90
|
$uri = $opts[?u] || 'drbunix:probe.socket'
|
@@ -117,16 +102,7 @@ puts "Running tests in #{$args.inspect}"
|
|
117
102
|
|
118
103
|
case ($opts[?t] || $config.probe.test_framework).to_sym
|
119
104
|
when :rspec
|
120
|
-
|
121
|
-
when spring?
|
122
|
-
rspec = %w[ bin/spring rspec ]
|
123
|
-
else
|
124
|
-
rspec = [ find_cmd('rspec', 'spec') ]
|
125
|
-
end
|
126
|
-
rspec << '-rutils'
|
127
|
-
unless $args.any? { |a| a.start_with?('-f') }
|
128
|
-
rspec << '-f' << ($opts[?f] || 'Utils::LineFormatter')
|
129
|
-
end
|
105
|
+
rspec = [ find_cmd('rspec', 'spec') ]
|
130
106
|
$args = $args.map do |a|
|
131
107
|
if Utils::Editor::FILE_LINENUMBER_REGEXP =~ a
|
132
108
|
$~.captures.compact * ':'
|
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.48.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.48.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-09-
|
11
|
+
s.date = "2024-09-09"
|
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, "changes".freeze, "check-yaml".freeze, "classify".freeze, "code_comment".freeze, "commit_message".freeze, "create_cstags".freeze, "create_tags".freeze, "discover".freeze, "edit".freeze, "edit_wait".freeze, "enum".freeze, "git-empty".freeze, "git-versions".freeze, "json_check".freeze, "long_lines".freeze, "myex".freeze, "number_files".freeze, "on_change".freeze, "path".freeze, "print_method".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]
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.specification_version = 4
|
24
24
|
|
25
|
-
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.17.
|
25
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.17.1".freeze])
|
26
26
|
s.add_development_dependency(%q<debug>.freeze, [">= 0".freeze])
|
27
27
|
s.add_runtime_dependency(%q<drb>.freeze, [">= 0".freeze])
|
28
28
|
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.14".freeze])
|
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.48.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-09-
|
11
|
+
date: 2024-09-09 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.17.
|
19
|
+
version: 1.17.1
|
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.17.
|
26
|
+
version: 1.17.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|