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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0124d1fabcb7124f92daf86d2f5eadf0b4b7028ac3bf13c6c866856324c5f33
4
- data.tar.gz: 30e3b9b5d50d23fc37bf824d3dcd011bdd9e5bbd263436f16cca18aced0fb271
3
+ metadata.gz: 677af95701a972ced43473bd9c67461ccf2641d85b8f65261ba96c6a0ec04cb7
4
+ data.tar.gz: 57fae4a1824ae33ed64b1f2a3b4cbc735f3b34fd37b6e104ba446c9cf396b0b2
5
5
  SHA512:
6
- metadata.gz: 8c7e64ba2acc8e6d609d5f0ca5d3f7293baaa577aea9303493064662b1b376b34c6880fe57ea24d083c5ca96adfce031ef25f70ad941828c37c6886bc6e1a91a
7
- data.tar.gz: a109c008631bcd14976ff48aa2a5b4fb0553d00abca7a875aeafd21f737e08d3498408043a732f8d0771e54a1e20af9029d1e9f2049c385e6a6a331800dcdcf2
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 f]).each_with_object([]) { |(k, v), a|
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:f:h', $args
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
- case
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
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.47.0'
3
+ VERSION = '0.48.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.47.0 ruby lib
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.47.0".freeze
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-06"
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.0".freeze])
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.47.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-06 00:00:00.000000000 Z
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.0
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.0
26
+ version: 1.17.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement