aruba 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -1
  3. data/lib/aruba/console/help.rb +3 -3
  4. data/lib/aruba/cucumber/command.rb +10 -18
  5. data/lib/aruba/matchers/base/message_indenter.rb +1 -1
  6. data/lib/aruba/matchers/path/have_permissions.rb +3 -2
  7. data/lib/aruba/platforms/announcer.rb +1 -1
  8. data/lib/aruba/platforms/command_monitor.rb +1 -3
  9. data/lib/aruba/processes/basic_process.rb +1 -1
  10. data/lib/aruba/version.rb +1 -1
  11. metadata +47 -62
  12. data/.cucumberproignore +0 -3
  13. data/.document +0 -5
  14. data/.github/ISSUE_TEMPLATE.md +0 -48
  15. data/.github/PULL_REQUEST_TEMPLATE.md +0 -41
  16. data/.gitignore +0 -38
  17. data/.rspec +0 -3
  18. data/.rubocop.yml +0 -52
  19. data/.rubocop_todo.yml +0 -216
  20. data/.simplecov +0 -36
  21. data/.travis.yml +0 -62
  22. data/.yardopts +0 -11
  23. data/Dockerfile +0 -67
  24. data/Gemfile +0 -14
  25. data/Rakefile +0 -82
  26. data/TODO.md +0 -13
  27. data/appveyor.yml +0 -28
  28. data/aruba.gemspec +0 -57
  29. data/bin/console +0 -7
  30. data/bin/test +0 -9
  31. data/config/.gitignore +0 -1
  32. data/cucumber.yml +0 -6
  33. data/docker-compose.yml +0 -26
  34. data/fixtures/cli-app/.gitignore +0 -9
  35. data/fixtures/cli-app/.rspec +0 -2
  36. data/fixtures/cli-app/README.md +0 -39
  37. data/fixtures/cli-app/Rakefile +0 -1
  38. data/fixtures/cli-app/bin/aruba-test-cli +0 -6
  39. data/fixtures/cli-app/cli-app.gemspec +0 -26
  40. data/fixtures/cli-app/features/support/aruba.rb +0 -1
  41. data/fixtures/cli-app/features/support/env.rb +0 -1
  42. data/fixtures/cli-app/lib/cli/app.rb +0 -9
  43. data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +0 -15
  44. data/fixtures/cli-app/lib/cli/app/version.rb +0 -5
  45. data/fixtures/cli-app/script/console +0 -14
  46. data/fixtures/cli-app/spec/spec_helper.rb +0 -8
  47. data/fixtures/cli-app/spec/support/aruba.rb +0 -1
  48. data/fixtures/copy/file.txt +0 -1
  49. data/fixtures/empty-app/.gitignore +0 -9
  50. data/fixtures/empty-app/.rspec +0 -2
  51. data/fixtures/empty-app/README.md +0 -24
  52. data/fixtures/empty-app/Rakefile +0 -1
  53. data/fixtures/empty-app/cli-app.gemspec +0 -26
  54. data/fixtures/empty-app/lib/cli/app.rb +0 -7
  55. data/fixtures/empty-app/lib/cli/app/version.rb +0 -5
  56. data/fixtures/getting-started-app/.gitignore +0 -4
  57. data/fixtures/getting-started-app/Gemfile +0 -4
  58. data/fixtures/getting-started-app/README.md +0 -3
  59. data/fixtures/getting-started-app/features/support/env.rb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f5a2c9af56d4b502edae4592455415530bd8077f5078608ac174fdd42828e84
4
- data.tar.gz: e057fc77eb5bf2680b08978f90d3d4bf5c166e3a400a3d691124f5d624e37e67
3
+ metadata.gz: db176cee47e40abfb28af95106c134aabf16cb8a1b85aa339dcc31d49745a37a
4
+ data.tar.gz: 790ac5c8937b48a939950d6d2803a80cc0e1c54d4407c78d8cf82ddb0b839e45
5
5
  SHA512:
6
- metadata.gz: 41edd733387784f50d386c5fd718610a00970c5e2d1cb60cc87dae9e79a8883d2447136782c3e7e101e208b949f7451fe99ac8ebc91ab0547b529f097da04286
7
- data.tar.gz: f7c553b8fc220a0e1b49ddcbe92d8d1da179330c05dff80e70dbcac6ed9ef501ff27b2e663afdecaff18a471d718e249e0b3d7b704baafb80603c187045321b2
6
+ metadata.gz: '08b9f4362310465c9354905da9667222fc4b8db7ef1ad0e5e7404ba3b985d95d1713eecf1dd4724853613dadf2c8b5c0524ee54bc2418d037034262f925d7edb'
7
+ data.tar.gz: f65e533940bf35620d222cdb9c23b7667f786459f24b7cf0e2df97938a062ba5d3f8d31250fd0d46595159079718df3ef708170e585c33d86c75f7c0ca3e8699
@@ -6,6 +6,12 @@ This project adheres to [Semantic Versioning][1].
6
6
 
7
7
  This document is formatted according to the principles of [Keep A CHANGELOG][2].
8
8
 
9
+ ## [1.0.3]
10
+
11
+ * Loosen Cucumber dependency to allow Cucumber 5.0 ([#727] by [mvz])
12
+ * Update rubocop and fix new offenses ([#719] and [#724] by [mvz])
13
+ * Rework gemspec to avoid dependency on git ([#721] by [utkarsh2102], [#725] by [mvz])
14
+
9
15
  ## [1.0.2]
10
16
 
11
17
  * Loosen childprocess dependency
@@ -936,12 +942,18 @@ Note: These are changes w.r.t. Aruba version 0.14.1.
936
942
  [scottj97]: https://github.com/scottj97
937
943
  [stamhankar999]: https://github.com/stamhankar999
938
944
  [taylor]: https://github.com/taylor
945
+ [utkarsh2102]: https://github.com/utkarsh2102
939
946
  [tdreyno]: https://github.com/tdreyno
940
947
  [xtrasimplicity]: https://github.com/xtrasimplicity
941
948
  [y-higuchi]: https://github.com/y-higuchi
942
949
 
943
950
  <!-- issues & pull requests -->
944
951
 
952
+ [#727]: https://github.com/cucumber/aruba/pull/727
953
+ [#725]: https://github.com/cucumber/aruba/pull/725
954
+ [#724]: https://github.com/cucumber/aruba/pull/724
955
+ [#721]: https://github.com/cucumber/aruba/pull/721
956
+ [#719]: https://github.com/cucumber/aruba/pull/719
945
957
  [#717]: https://github.com/cucumber/aruba/pull/717
946
958
  [#715]: https://github.com/cucumber/aruba/pull/715
947
959
  [#712]: https://github.com/cucumber/aruba/pull/712
@@ -1215,7 +1227,8 @@ Note: These are changes w.r.t. Aruba version 0.14.1.
1215
1227
 
1216
1228
  <!-- Releases -->
1217
1229
 
1218
- [Unreleased]: https://github.com/cucumber/aruba/compare/v1.0.2...master
1230
+ [Unreleased]: https://github.com/cucumber/aruba/compare/v1.0.3...master
1231
+ [1.0.3]: https://github.com/cucumber/aruba/compare/v1.0.2...v1.0.3
1219
1232
  [1.0.2]: https://github.com/cucumber/aruba/compare/v1.0.1...v1.0.2
1220
1233
  [1.0.1]: https://github.com/cucumber/aruba/compare/v1.0.0...v1.0.1
1221
1234
  [1.0.0]: https://github.com/cucumber/aruba/compare/v1.0.0.pre.alpha.5...v1.0.0
@@ -8,8 +8,8 @@ module Aruba
8
8
  module Help
9
9
  # Output help information
10
10
  def aruba_help
11
- puts 'Aruba Version: ' + Aruba::VERSION
12
- puts 'Issue Tracker: ' + 'https://github.com/cucumber/aruba/issues'
11
+ puts "Aruba Version: #{Aruba::VERSION}"
12
+ puts 'Issue Tracker: https://github.com/cucumber/aruba/issues'
13
13
  puts 'Documentation:'
14
14
  puts '* http://www.rubydoc.info/gems/aruba'
15
15
  puts
@@ -23,7 +23,7 @@ module Aruba
23
23
  .each_with_object([]) { |e, a| a << format('* %s', e) }
24
24
  .sort
25
25
 
26
- puts "Available Methods:\n" + ms.join("\n")
26
+ puts "Available Methods:\n#{ms.join("\n")}"
27
27
 
28
28
  nil
29
29
  end
@@ -88,30 +88,22 @@ end
88
88
 
89
89
  When(/^I wait for (?:output|stdout) to contain:$/) do |expected|
90
90
  Timeout.timeout(aruba.config.exit_timeout) do
91
- loop do
92
- begin
93
- expect(last_command_started).to have_output an_output_string_including(expected)
94
- rescue ExpectationError
95
- sleep 0.1
96
- retry
97
- end
98
-
99
- break
91
+ begin
92
+ expect(last_command_started).to have_output an_output_string_including(expected)
93
+ rescue ExpectationError
94
+ sleep 0.1
95
+ retry
100
96
  end
101
97
  end
102
98
  end
103
99
 
104
100
  When(/^I wait for (?:output|stdout) to contain "([^"]*)"$/) do |expected|
105
101
  Timeout.timeout(aruba.config.exit_timeout) do
106
- loop do
107
- begin
108
- expect(last_command_started).to have_output an_output_string_including(expected)
109
- rescue ExpectationError
110
- sleep 0.1
111
- retry
112
- end
113
-
114
- break
102
+ begin
103
+ expect(last_command_started).to have_output an_output_string_including(expected)
104
+ rescue ExpectationError
105
+ sleep 0.1
106
+ retry
115
107
  end
116
108
  end
117
109
  end
@@ -10,7 +10,7 @@ module Aruba
10
10
  def indent_multiline_message(message)
11
11
  message = message.sub(/\n+\z/, '')
12
12
  message.lines.map do |line|
13
- /\S/.match?(line) ? ' ' + line : line
13
+ /\S/.match?(line) ? " #{line}" : line
14
14
  end.join
15
15
  end
16
16
  end
@@ -39,9 +39,10 @@ RSpec::Matchers.define :have_permissions do |expected|
39
39
  @old_actual = actual
40
40
  @actual = permissions(expand_path(@old_actual))
41
41
 
42
- @expected = if expected.is_a? Integer
42
+ @expected = case expected
43
+ when Integer
43
44
  expected.to_s(8)
44
- elsif expected.is_a? String
45
+ when String
45
46
  expected.gsub(/^0*/, '')
46
47
  else
47
48
  expected
@@ -1,7 +1,7 @@
1
1
  require 'shellwords'
2
2
  require 'aruba/colorizer'
3
3
 
4
- Aruba::Colorizer.coloring = false if !STDOUT.tty? && !ENV.key?('AUTOTEST')
4
+ Aruba::Colorizer.coloring = false if !$stdout.tty? && !ENV.key?('AUTOTEST')
5
5
 
6
6
  # Aruba
7
7
  module Aruba
@@ -12,7 +12,7 @@ module Aruba
12
12
 
13
13
  public
14
14
 
15
- attr_reader :registered_commands, :last_command_started
15
+ attr_reader :registered_commands, :last_command_started, :last_command_stopped
16
16
 
17
17
  class DefaultLastCommandStopped
18
18
  def nil?
@@ -52,8 +52,6 @@ module Aruba
52
52
  raise ArgumentError, e.message
53
53
  end
54
54
 
55
- attr_reader :last_command_stopped
56
-
57
55
  # Set last command started
58
56
  #
59
57
  # @param [String] cmd
@@ -135,7 +135,7 @@ module Aruba
135
135
  def truncate(string, max_length)
136
136
  return string if string.length <= max_length
137
137
 
138
- string[0, max_length - 1] + ' ...'
138
+ "#{string[0, max_length - 1]} ..."
139
139
  end
140
140
  end
141
141
  end
@@ -1,3 +1,3 @@
1
1
  module Aruba
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aruba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy, Matt Wynne and other Aruba Contributors
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-19 00:00:00.000000000 Z
11
+ date: 2020-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: childprocess
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: '2.4'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: '5.0'
56
+ version: '6.0'
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ dependencies:
63
63
  version: '2.4'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: '5.0'
66
+ version: '6.0'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: ffi
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -176,6 +176,20 @@ dependencies:
176
176
  - - "~>"
177
177
  - !ruby/object:Gem::Version
178
178
  version: '13.0'
179
+ - !ruby/object:Gem::Dependency
180
+ name: rake-manifest
181
+ requirement: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "~>"
184
+ - !ruby/object:Gem::Version
185
+ version: 0.1.0
186
+ type: :development
187
+ prerelease: false
188
+ version_requirements: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - "~>"
191
+ - !ruby/object:Gem::Version
192
+ version: 0.1.0
179
193
  - !ruby/object:Gem::Dependency
180
194
  name: rspec
181
195
  requirement: !ruby/object:Gem::Requirement
@@ -196,56 +210,76 @@ dependencies:
196
210
  requirements:
197
211
  - - "~>"
198
212
  - !ruby/object:Gem::Version
199
- version: '0.85'
213
+ version: 0.89.0
214
+ type: :development
215
+ prerelease: false
216
+ version_requirements: !ruby/object:Gem::Requirement
217
+ requirements:
218
+ - - "~>"
219
+ - !ruby/object:Gem::Version
220
+ version: 0.89.0
221
+ - !ruby/object:Gem::Dependency
222
+ name: rubocop-packaging
223
+ requirement: !ruby/object:Gem::Requirement
224
+ requirements:
225
+ - - "~>"
226
+ - !ruby/object:Gem::Version
227
+ version: 0.3.0
200
228
  type: :development
201
229
  prerelease: false
202
230
  version_requirements: !ruby/object:Gem::Requirement
203
231
  requirements:
204
232
  - - "~>"
205
233
  - !ruby/object:Gem::Version
206
- version: '0.85'
234
+ version: 0.3.0
207
235
  - !ruby/object:Gem::Dependency
208
236
  name: rubocop-performance
209
237
  requirement: !ruby/object:Gem::Requirement
210
238
  requirements:
211
239
  - - "~>"
212
240
  - !ruby/object:Gem::Version
213
- version: '1.5'
241
+ version: 1.7.1
214
242
  type: :development
215
243
  prerelease: false
216
244
  version_requirements: !ruby/object:Gem::Requirement
217
245
  requirements:
218
246
  - - "~>"
219
247
  - !ruby/object:Gem::Version
220
- version: '1.5'
248
+ version: 1.7.1
221
249
  - !ruby/object:Gem::Dependency
222
250
  name: rubocop-rspec
223
251
  requirement: !ruby/object:Gem::Requirement
224
252
  requirements:
225
253
  - - "~>"
226
254
  - !ruby/object:Gem::Version
227
- version: '1.39'
255
+ version: 1.43.1
228
256
  type: :development
229
257
  prerelease: false
230
258
  version_requirements: !ruby/object:Gem::Requirement
231
259
  requirements:
232
260
  - - "~>"
233
261
  - !ruby/object:Gem::Version
234
- version: '1.39'
262
+ version: 1.43.1
235
263
  - !ruby/object:Gem::Dependency
236
264
  name: simplecov
237
265
  requirement: !ruby/object:Gem::Requirement
238
266
  requirements:
239
- - - "~>"
267
+ - - ">="
240
268
  - !ruby/object:Gem::Version
241
269
  version: 0.18.0
270
+ - - "<"
271
+ - !ruby/object:Gem::Version
272
+ version: 0.20.0
242
273
  type: :development
243
274
  prerelease: false
244
275
  version_requirements: !ruby/object:Gem::Requirement
245
276
  requirements:
246
- - - "~>"
277
+ - - ">="
247
278
  - !ruby/object:Gem::Version
248
279
  version: 0.18.0
280
+ - - "<"
281
+ - !ruby/object:Gem::Version
282
+ version: 0.20.0
249
283
  - !ruby/object:Gem::Dependency
250
284
  name: yard-junk
251
285
  requirement: !ruby/object:Gem::Requirement
@@ -273,60 +307,11 @@ extra_rdoc_files:
273
307
  - README.md
274
308
  - LICENSE
275
309
  files:
276
- - ".cucumberproignore"
277
- - ".document"
278
- - ".github/ISSUE_TEMPLATE.md"
279
- - ".github/PULL_REQUEST_TEMPLATE.md"
280
- - ".gitignore"
281
- - ".rspec"
282
- - ".rubocop.yml"
283
- - ".rubocop_todo.yml"
284
- - ".simplecov"
285
- - ".travis.yml"
286
- - ".yardopts"
287
310
  - CHANGELOG.md
288
311
  - CONTRIBUTING.md
289
- - Dockerfile
290
- - Gemfile
291
312
  - LICENSE
292
313
  - README.md
293
- - Rakefile
294
- - TODO.md
295
- - appveyor.yml
296
- - aruba.gemspec
297
- - bin/console
298
- - bin/test
299
- - config/.gitignore
300
- - cucumber.yml
301
- - doc/dependency_decisions.yml
302
- - docker-compose.yml
303
314
  - exe/aruba
304
- - fixtures/cli-app/.gitignore
305
- - fixtures/cli-app/.rspec
306
- - fixtures/cli-app/README.md
307
- - fixtures/cli-app/Rakefile
308
- - fixtures/cli-app/bin/aruba-test-cli
309
- - fixtures/cli-app/cli-app.gemspec
310
- - fixtures/cli-app/features/support/aruba.rb
311
- - fixtures/cli-app/features/support/env.rb
312
- - fixtures/cli-app/lib/cli/app.rb
313
- - fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb
314
- - fixtures/cli-app/lib/cli/app/version.rb
315
- - fixtures/cli-app/script/console
316
- - fixtures/cli-app/spec/spec_helper.rb
317
- - fixtures/cli-app/spec/support/aruba.rb
318
- - fixtures/copy/file.txt
319
- - fixtures/empty-app/.gitignore
320
- - fixtures/empty-app/.rspec
321
- - fixtures/empty-app/README.md
322
- - fixtures/empty-app/Rakefile
323
- - fixtures/empty-app/cli-app.gemspec
324
- - fixtures/empty-app/lib/cli/app.rb
325
- - fixtures/empty-app/lib/cli/app/version.rb
326
- - fixtures/getting-started-app/.gitignore
327
- - fixtures/getting-started-app/Gemfile
328
- - fixtures/getting-started-app/README.md
329
- - fixtures/getting-started-app/features/support/env.rb
330
315
  - lib/aruba.rb
331
316
  - lib/aruba/api.rb
332
317
  - lib/aruba/api/bundler.rb
@@ -459,5 +444,5 @@ requirements: []
459
444
  rubygems_version: 3.1.2
460
445
  signing_key:
461
446
  specification_version: 4
462
- summary: aruba-1.0.2
447
+ summary: aruba-1.0.3
463
448
  test_files: []
@@ -1,3 +0,0 @@
1
- /
2
- !features/
3
- features/04_aruba_api/command/run_simple.feature
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE
@@ -1,48 +0,0 @@
1
- <!-- These sections are meant as guidance for you, to help you give the kind of information we'll need to help with your issue. If a section doesn't seem to fit, just skip it.
2
-
3
- In general: Please provide as much information as you can to help us solving your problem -->
4
-
5
- ## Summary
6
-
7
- <!--- Provide a general summary description of the issue -->
8
-
9
- ## Expected Behavior
10
-
11
- <!--- If you're describing a bug, tell us what should happen -->
12
- <!--- If you're suggesting a change/improvement, tell us how it should work -->
13
- <!--- Feel free to use Given / Then / Then if that helps, but please add some plain-language context too -->
14
-
15
- ## Current Behavior
16
-
17
- <!--- If describing a bug, tell us what happens instead of the expected behavior -->
18
- <!--- If suggesting a change/improvement, explain the difference from current behavior -->
19
-
20
- <!--- If you have got some output place it in the code block below. Otherwise remove it. -->
21
- ~~~
22
- ~~~
23
-
24
- ## Possible Solution
25
-
26
- <!--- Not obligatory, but suggest a fix/reason for the bug, -->
27
- <!--- or ideas how to implement the addition or change -->
28
-
29
- ## Steps to Reproduce (for bugs)
30
-
31
- <!--- Provide a link to a live example, or an unambiguous set of steps to -->
32
- <!--- reproduce this bug. Include code to reproduce, if relevant -->
33
- 1.
34
- 2.
35
- 3.
36
- 4.
37
-
38
- ## Context & Motivation
39
-
40
- <!--- How has this issue affected you? What are you trying to accomplish? -->
41
- <!--- Providing context helps us come up with a solution that is most useful in the real world -->
42
-
43
- ## Your Environment
44
-
45
- <!--- If you're reporting a bug, include as many relevant details about the environment you experienced the bug in -->
46
- * Version used:
47
- * Operating System and version:
48
- * Link to your project: