qbash 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +43 -36
  3. data/lib/qbash.rb +15 -4
  4. data/qbash.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2a0a13831a026a1ae954bd80eaab01b20c47f2b4c07e5d05ecc4d94103b691d
4
- data.tar.gz: 3207083283c1806b3840cb764b9acf70ee05cc617382c3512d4538c20164b55b
3
+ metadata.gz: bfbe9e8c880783b970efb497e26883936c8a021e0ebe1bab1f9f2ba8a252f499
4
+ data.tar.gz: 8131c19fdca82d8ab3a0f85742f5a98a4264e854fdd8e3b375ea21ff1a7a9809
5
5
  SHA512:
6
- metadata.gz: 2a027dfef2965ed65840633dc77252a9e83006cb2c00ab3aa89191514ef0e0a42c19f19c300ed66bd1fd65d806ba989ada97faa40017d2ae14dbad64ad8ca27c
7
- data.tar.gz: 610ab8fca2dff68b7b4aabae1b5bf834acba3b1b2cc99f71c9389446a68040761c6b860a7e90ace85092b6e358ea35e54b87d967db1adabf4b72376ed65c3c4b
6
+ metadata.gz: e8c44e3e4ab1506bdc5154bb36bd6ba8a522bf9cbb9aa5b360f67341f688a4b8bb70677fe29ff495f6397907c1103455f4450b3068a1c1a2166feb072ec256c5
7
+ data.tar.gz: bc3a63f02403f6c5bea07a6c35123f22e9c024cf55a3cabd92682975f67c8ede236b9dc8cf7c22484d6cfc01e9d913fb5f7e1fd450580838322e285c1b079d65
data/Gemfile.lock CHANGED
@@ -10,13 +10,13 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.8.8)
13
+ addressable (2.9.0)
14
14
  public_suffix (>= 2.0.2, < 8.0)
15
- ansi (1.5.0)
15
+ ansi (1.6.0)
16
16
  ast (2.4.3)
17
17
  backtrace (0.4.1)
18
18
  base64 (0.3.0)
19
- bigdecimal (4.0.1)
19
+ bigdecimal (4.1.1)
20
20
  builder (3.3.0)
21
21
  crack (1.0.1)
22
22
  bigdecimal
@@ -40,29 +40,30 @@ GEM
40
40
  cucumber-tag-expressions (> 6, < 9)
41
41
  cucumber-cucumber-expressions (19.0.0)
42
42
  bigdecimal
43
- cucumber-gherkin (38.0.0)
43
+ cucumber-gherkin (39.0.0)
44
44
  cucumber-messages (>= 31, < 33)
45
45
  cucumber-html-formatter (22.3.0)
46
46
  cucumber-messages (> 23, < 33)
47
- cucumber-messages (32.0.1)
47
+ cucumber-messages (32.3.1)
48
48
  cucumber-tag-expressions (8.1.0)
49
49
  date (3.5.1)
50
50
  diff-lcs (1.6.2)
51
51
  docile (1.4.1)
52
+ drb (2.2.3)
52
53
  elapsed (0.3.1)
53
54
  loog (~> 0.6)
54
55
  tago (~> 0.1)
55
56
  ellipsized (0.3.0)
56
- erb (6.0.1)
57
- ffi (1.17.3-aarch64-linux-gnu)
58
- ffi (1.17.3-arm-linux-gnu)
59
- ffi (1.17.3-arm64-darwin)
60
- ffi (1.17.3-x64-mingw-ucrt)
61
- ffi (1.17.3-x86-linux-gnu)
62
- ffi (1.17.3-x86_64-darwin)
63
- ffi (1.17.3-x86_64-linux-gnu)
57
+ erb (6.0.2)
58
+ ffi (1.17.4-aarch64-linux-gnu)
59
+ ffi (1.17.4-arm-linux-gnu)
60
+ ffi (1.17.4-arm64-darwin)
61
+ ffi (1.17.4-x64-mingw-ucrt)
62
+ ffi (1.17.4-x86-linux-gnu)
63
+ ffi (1.17.4-x86_64-darwin)
64
+ ffi (1.17.4-x86_64-linux-gnu)
64
65
  hashdiff (1.2.1)
65
- json (2.18.1)
66
+ json (2.19.3)
66
67
  language_server-protocol (3.17.0.5)
67
68
  lint_roller (1.1.0)
68
69
  logger (1.7.0)
@@ -72,65 +73,66 @@ GEM
72
73
  memoist3 (1.0.0)
73
74
  mini_mime (1.1.5)
74
75
  mini_portile2 (2.8.9)
75
- minitest (6.0.1)
76
+ minitest (6.0.3)
77
+ drb (~> 2.0)
76
78
  prism (~> 1.5)
77
- minitest-reporters (1.7.1)
79
+ minitest-reporters (1.8.0)
78
80
  ansi
79
81
  builder
80
- minitest (>= 5.0)
82
+ minitest (>= 5.0, < 7)
81
83
  ruby-progressbar
82
84
  multi_test (1.1.0)
83
85
  net-ping (2.0.8)
84
- nokogiri (1.19.0)
86
+ nokogiri (1.19.2)
85
87
  mini_portile2 (~> 2.8.2)
86
88
  racc (~> 1.4)
87
- nokogiri (1.19.0-aarch64-linux-gnu)
89
+ nokogiri (1.19.2-aarch64-linux-gnu)
88
90
  racc (~> 1.4)
89
- nokogiri (1.19.0-arm-linux-gnu)
91
+ nokogiri (1.19.2-arm-linux-gnu)
90
92
  racc (~> 1.4)
91
- nokogiri (1.19.0-arm64-darwin)
93
+ nokogiri (1.19.2-arm64-darwin)
92
94
  racc (~> 1.4)
93
- nokogiri (1.19.0-x64-mingw-ucrt)
95
+ nokogiri (1.19.2-x64-mingw-ucrt)
94
96
  racc (~> 1.4)
95
- nokogiri (1.19.0-x86_64-darwin)
97
+ nokogiri (1.19.2-x86_64-darwin)
96
98
  racc (~> 1.4)
97
- nokogiri (1.19.0-x86_64-linux-gnu)
99
+ nokogiri (1.19.2-x86_64-linux-gnu)
98
100
  racc (~> 1.4)
99
- parallel (1.27.0)
100
- parser (3.3.10.1)
101
+ parallel (2.0.1)
102
+ parser (3.3.11.1)
101
103
  ast (~> 2.4.1)
102
104
  racc
103
105
  prism (1.9.0)
104
106
  psych (5.3.1)
105
107
  date
106
108
  stringio
107
- public_suffix (7.0.2)
109
+ public_suffix (7.0.5)
108
110
  racc (1.8.1)
109
111
  rainbow (3.1.1)
110
- rake (13.3.1)
112
+ rake (13.4.1)
111
113
  random-port (0.8.2)
112
114
  tago (~> 0.0)
113
115
  rdoc (7.2.0)
114
116
  erb
115
117
  psych (>= 4.0.0)
116
118
  tsort
117
- regexp_parser (2.11.3)
119
+ regexp_parser (2.12.0)
118
120
  rexml (3.4.4)
119
- rubocop (1.84.2)
121
+ rubocop (1.86.1)
120
122
  json (~> 2.3)
121
123
  language_server-protocol (~> 3.17.0.2)
122
124
  lint_roller (~> 1.1.0)
123
- parallel (~> 1.10)
125
+ parallel (>= 1.10)
124
126
  parser (>= 3.3.0.2)
125
127
  rainbow (>= 2.2.2, < 4.0)
126
128
  regexp_parser (>= 2.9.3, < 3.0)
127
129
  rubocop-ast (>= 1.49.0, < 2.0)
128
130
  ruby-progressbar (~> 1.7)
129
131
  unicode-display_width (>= 2.4.0, < 4.0)
130
- rubocop-ast (1.49.0)
132
+ rubocop-ast (1.49.1)
131
133
  parser (>= 3.3.7.2)
132
134
  prism (~> 1.7)
133
- rubocop-minitest (0.38.2)
135
+ rubocop-minitest (0.39.1)
134
136
  lint_roller (~> 1.1)
135
137
  rubocop (>= 1.75.0, < 2.0)
136
138
  rubocop-ast (>= 1.38.0, < 2.0)
@@ -152,9 +154,13 @@ GEM
152
154
  simplecov-html (0.13.2)
153
155
  simplecov_json_formatter (0.1.4)
154
156
  stringio (3.2.0)
155
- sys-uname (1.4.1)
157
+ sys-uname (1.5.1)
156
158
  ffi (~> 1.1)
157
159
  memoist3 (~> 1.0.0)
160
+ sys-uname (1.5.1-universal-mingw32)
161
+ ffi (~> 1.1)
162
+ memoist3 (~> 1.0.0)
163
+ win32ole
158
164
  tago (0.7.0)
159
165
  tsort (0.2.0)
160
166
  unicode-display_width (3.2.0)
@@ -164,11 +170,12 @@ GEM
164
170
  json (>= 1.8)
165
171
  nokogiri (~> 1.6)
166
172
  rexml (~> 3.2)
167
- webmock (3.26.1)
173
+ webmock (3.26.2)
168
174
  addressable (>= 2.8.0)
169
175
  crack (>= 0.3.2)
170
176
  hashdiff (>= 0.4.0, < 2.0.0)
171
- yard (0.9.38)
177
+ win32ole (1.9.3)
178
+ yard (0.9.41)
172
179
 
173
180
  PLATFORMS
174
181
  aarch64-linux
data/lib/qbash.rb CHANGED
@@ -201,12 +201,23 @@ module Kernel
201
201
  else
202
202
  thread = Thread.new { consume.call(serr, stderr, nil) }
203
203
  thread.abort_on_exception = true
204
- consume.call(sout, stdout, buf)
205
- thread.join
204
+ begin
205
+ consume.call(sout, stdout, buf)
206
+ thread.join
207
+ rescue SignalException => e
208
+ begin
209
+ Process.kill(e.signo, pid)
210
+ rescue StandardError
211
+ nil
212
+ end
213
+ raise
214
+ end
206
215
  end
207
- e = ctrl.value.exitstatus
216
+ status = ctrl.value
217
+ e = status.exitstatus || (status.termsig ? 128 + status.termsig : nil)
208
218
  if !accept.nil? && !accept.include?(e)
209
- raise "The command '#{cmd}' failed with exit code ##{e} in #{start.ago}\n#{buf}"
219
+ reason = status.signaled? ? "killed by signal #{status.termsig}" : "exit code ##{e}"
220
+ raise "The command '#{cmd}' failed (#{reason}) in #{start.ago}\n#{buf}"
210
221
  end
211
222
  end
212
223
  return [buf, e] if both
data/qbash.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
10
10
  s.required_ruby_version = '>=3.2'
11
11
  s.name = 'qbash'
12
- s.version = '0.8.0'
12
+ s.version = '0.8.2'
13
13
  s.license = 'MIT'
14
14
  s.summary = 'Quick Executor of a BASH Command'
15
15
  s.description =
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qbash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko