aruba 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +72 -1
  3. data/CONTRIBUTING.md +11 -31
  4. data/README.md +1 -2
  5. data/exe/aruba +2 -2
  6. data/lib/aruba.rb +1 -1
  7. data/lib/aruba/api.rb +11 -12
  8. data/lib/aruba/api/bundler.rb +18 -3
  9. data/lib/aruba/api/commands.rb +19 -22
  10. data/lib/aruba/api/core.rb +65 -48
  11. data/lib/aruba/api/environment.rb +13 -5
  12. data/lib/aruba/api/filesystem.rb +69 -39
  13. data/lib/aruba/api/text.rb +15 -3
  14. data/lib/aruba/aruba_path.rb +3 -4
  15. data/lib/aruba/basic_configuration.rb +52 -71
  16. data/lib/aruba/basic_configuration/option.rb +2 -2
  17. data/lib/aruba/cli.rb +9 -6
  18. data/lib/aruba/command.rb +4 -4
  19. data/lib/aruba/config/jruby.rb +9 -9
  20. data/lib/aruba/config_wrapper.rb +17 -2
  21. data/lib/aruba/configuration.rb +37 -32
  22. data/lib/aruba/console.rb +11 -13
  23. data/lib/aruba/console/help.rb +9 -6
  24. data/lib/aruba/contracts/absolute_path.rb +2 -2
  25. data/lib/aruba/contracts/enum.rb +1 -1
  26. data/lib/aruba/contracts/is_power_of_two.rb +3 -3
  27. data/lib/aruba/contracts/relative_path.rb +2 -2
  28. data/lib/aruba/cucumber.rb +7 -7
  29. data/lib/aruba/cucumber/command.rb +106 -95
  30. data/lib/aruba/cucumber/environment.rb +7 -7
  31. data/lib/aruba/cucumber/file.rb +50 -26
  32. data/lib/aruba/cucumber/hooks.rb +32 -29
  33. data/lib/aruba/cucumber/testing_frameworks.rb +32 -30
  34. data/lib/aruba/event_bus.rb +6 -4
  35. data/lib/aruba/event_bus/name_resolver.rb +12 -11
  36. data/lib/aruba/events.rb +2 -1
  37. data/lib/aruba/file_size.rb +1 -1
  38. data/lib/aruba/generators/script_file.rb +2 -2
  39. data/lib/aruba/hooks.rb +2 -4
  40. data/lib/aruba/in_config_wrapper.rb +8 -5
  41. data/lib/aruba/initializer.rb +14 -12
  42. data/lib/aruba/matchers/base/base_matcher.rb +3 -12
  43. data/lib/aruba/matchers/base/message_indenter.rb +2 -2
  44. data/lib/aruba/matchers/base/object_formatter.rb +2 -5
  45. data/lib/aruba/matchers/collection.rb +1 -1
  46. data/lib/aruba/matchers/collection/all.rb +1 -1
  47. data/lib/aruba/matchers/collection/include_an_object.rb +6 -6
  48. data/lib/aruba/matchers/command.rb +1 -1
  49. data/lib/aruba/matchers/command/be_successfully_executed.rb +6 -4
  50. data/lib/aruba/matchers/command/have_exit_status.rb +3 -1
  51. data/lib/aruba/matchers/command/have_finished_in_time.rb +4 -2
  52. data/lib/aruba/matchers/command/have_output.rb +4 -2
  53. data/lib/aruba/matchers/command/have_output_on_stderr.rb +3 -1
  54. data/lib/aruba/matchers/command/have_output_on_stdout.rb +3 -1
  55. data/lib/aruba/matchers/directory.rb +1 -1
  56. data/lib/aruba/matchers/directory/be_an_existing_directory.rb +2 -2
  57. data/lib/aruba/matchers/directory/have_sub_directory.rb +9 -4
  58. data/lib/aruba/matchers/environment.rb +1 -1
  59. data/lib/aruba/matchers/file.rb +1 -1
  60. data/lib/aruba/matchers/file/be_a_command_found_in_path.rb +1 -1
  61. data/lib/aruba/matchers/file/be_an_existing_executable.rb +2 -2
  62. data/lib/aruba/matchers/file/be_an_existing_file.rb +2 -2
  63. data/lib/aruba/matchers/file/have_file_content.rb +1 -1
  64. data/lib/aruba/matchers/file/have_file_size.rb +5 -3
  65. data/lib/aruba/matchers/file/have_same_file_content.rb +2 -2
  66. data/lib/aruba/matchers/path.rb +1 -1
  67. data/lib/aruba/matchers/path/a_path_matching_pattern.rb +1 -1
  68. data/lib/aruba/matchers/path/be_an_absolute_path.rb +1 -1
  69. data/lib/aruba/matchers/path/be_an_existing_path.rb +1 -1
  70. data/lib/aruba/matchers/path/have_permissions.rb +9 -6
  71. data/lib/aruba/matchers/string.rb +1 -1
  72. data/lib/aruba/matchers/string/include_output_string.rb +1 -1
  73. data/lib/aruba/matchers/string/match_output_string.rb +1 -1
  74. data/lib/aruba/matchers/string/output_string_eq.rb +1 -1
  75. data/lib/aruba/platform.rb +2 -2
  76. data/lib/aruba/platforms/announcer.rb +29 -17
  77. data/lib/aruba/platforms/aruba_file_creator.rb +3 -1
  78. data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +7 -2
  79. data/lib/aruba/platforms/aruba_logger.rb +11 -10
  80. data/lib/aruba/platforms/command_monitor.rb +7 -9
  81. data/lib/aruba/platforms/determine_disk_usage.rb +2 -4
  82. data/lib/aruba/platforms/filesystem_status.rb +20 -14
  83. data/lib/aruba/platforms/simple_table.rb +3 -3
  84. data/lib/aruba/platforms/unix_command_string.rb +2 -2
  85. data/lib/aruba/platforms/unix_environment_variables.rb +2 -4
  86. data/lib/aruba/platforms/unix_platform.rb +23 -23
  87. data/lib/aruba/platforms/unix_which.rb +2 -2
  88. data/lib/aruba/platforms/windows_command_string.rb +2 -2
  89. data/lib/aruba/platforms/windows_environment_variables.rb +3 -2
  90. data/lib/aruba/platforms/windows_platform.rb +7 -7
  91. data/lib/aruba/platforms/windows_which.rb +8 -4
  92. data/lib/aruba/processes/basic_process.rb +4 -4
  93. data/lib/aruba/processes/debug_process.rb +5 -3
  94. data/lib/aruba/processes/in_process.rb +10 -8
  95. data/lib/aruba/processes/spawn_process.rb +28 -25
  96. data/lib/aruba/rspec.rb +30 -20
  97. data/lib/aruba/runtime.rb +16 -9
  98. data/lib/aruba/setup.rb +25 -12
  99. data/lib/aruba/version.rb +1 -1
  100. metadata +77 -88
  101. data/.cucumberproignore +0 -3
  102. data/.document +0 -5
  103. data/.github/ISSUE_TEMPLATE.md +0 -48
  104. data/.github/PULL_REQUEST_TEMPLATE.md +0 -41
  105. data/.gitignore +0 -38
  106. data/.rspec +0 -3
  107. data/.rubocop.yml +0 -31
  108. data/.rubocop_todo.yml +0 -262
  109. data/.simplecov +0 -36
  110. data/.travis.yml +0 -62
  111. data/.yardopts +0 -11
  112. data/Dockerfile +0 -67
  113. data/Gemfile +0 -12
  114. data/Rakefile +0 -80
  115. data/TODO.md +0 -13
  116. data/appveyor.yml +0 -29
  117. data/aruba.gemspec +0 -54
  118. data/bin/console +0 -7
  119. data/bin/test +0 -9
  120. data/config/.gitignore +0 -1
  121. data/cucumber.yml +0 -6
  122. data/docker-compose.yml +0 -26
  123. data/fixtures/cli-app/.gitignore +0 -9
  124. data/fixtures/cli-app/.rspec +0 -2
  125. data/fixtures/cli-app/README.md +0 -39
  126. data/fixtures/cli-app/Rakefile +0 -1
  127. data/fixtures/cli-app/bin/aruba-test-cli +0 -6
  128. data/fixtures/cli-app/cli-app.gemspec +0 -25
  129. data/fixtures/cli-app/features/support/aruba.rb +0 -1
  130. data/fixtures/cli-app/features/support/env.rb +0 -1
  131. data/fixtures/cli-app/lib/cli/app.rb +0 -9
  132. data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +0 -15
  133. data/fixtures/cli-app/lib/cli/app/version.rb +0 -5
  134. data/fixtures/cli-app/script/console +0 -14
  135. data/fixtures/cli-app/spec/spec_helper.rb +0 -7
  136. data/fixtures/cli-app/spec/support/aruba.rb +0 -1
  137. data/fixtures/copy/file.txt +0 -1
  138. data/fixtures/empty-app/.gitignore +0 -9
  139. data/fixtures/empty-app/.rspec +0 -2
  140. data/fixtures/empty-app/README.md +0 -24
  141. data/fixtures/empty-app/Rakefile +0 -1
  142. data/fixtures/empty-app/cli-app.gemspec +0 -25
  143. data/fixtures/empty-app/lib/cli/app.rb +0 -7
  144. data/fixtures/empty-app/lib/cli/app/version.rb +0 -5
  145. data/fixtures/getting-started-app/.gitignore +0 -4
  146. data/fixtures/getting-started-app/Gemfile +0 -4
  147. data/fixtures/getting-started-app/README.md +0 -3
  148. data/fixtures/getting-started-app/features/support/env.rb +0 -1
  149. data/lib/aruba/extensions/string/strip.rb +0 -25
  150. data/lib/aruba/tasks/docker_helpers.rb +0 -154
data/.cucumberproignore DELETED
@@ -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:
@@ -1,41 +0,0 @@
1
- <!-- These sections are meant as guidance for you. If something doesn't fit, you can just skip it. -->
2
-
3
- ## Summary
4
-
5
- <!--- Provide a general summary description of your changes -->
6
-
7
- ## Details
8
-
9
- <!--- Describe your changes in detail -->
10
-
11
- ## Motivation and Context
12
-
13
- <!--- Why is this change required? What problem does it solve? -->
14
- <!--- If it fixes an open issue, please link to the issue here. -->
15
-
16
- ## How Has This Been Tested?
17
-
18
- <!--- Please add tests for changes to the code, otherwise we probably won't merge it -->
19
-
20
- <!--- Please describe in detail how you tested your changes. -->
21
- <!--- Include details of your testing environment, tests ran to see how -->
22
- <!--- your change affects other areas of the code, etc. -->
23
-
24
- ## Screenshots (if appropriate):
25
-
26
- ## Types of changes
27
-
28
- <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
29
- - [ ] Bug fix (non-breaking change which fixes an issue)
30
- - [ ] New feature (non-breaking change which adds functionality)
31
- - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
32
- - [ ] Refactoring (cleanup of codebase without changing any existing functionality)
33
- - [ ] Update documentation
34
-
35
- ## Checklist:
36
-
37
- <!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
38
- <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
39
- - [ ] I've added tests for my code
40
- - [ ] My change requires a change to the documentation.
41
- - [ ] I have updated the documentation accordingly.
data/.gitignore DELETED
@@ -1,38 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## RUBYMINE
14
- .idea
15
-
16
- ## VIM
17
- *.swp
18
- tags
19
-
20
- ## PROJECT::GENERAL
21
- coverage
22
- rdoc
23
- pkg
24
- *.log
25
-
26
- ## PROJECT::SPECIFIC
27
- tmp
28
- .bundle
29
- doc
30
- Gemfile.lock
31
- Gemfile.local
32
- cucumber-pro.log
33
-
34
- ## Ruby versioniser
35
- .ruby-version
36
-
37
- # Temp files of yar
38
- .yardoc
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --color
2
- --order random
3
- --warnings
data/.rubocop.yml DELETED
@@ -1,31 +0,0 @@
1
- require:
2
- - rubocop-performance
3
-
4
- AllCops:
5
- Exclude:
6
- - tmp/**/*
7
- - vendor/**/*
8
- DisplayCopNames: true
9
- TargetRubyVersion: 2.4
10
-
11
- # Use older RuboCop default
12
- Style/PercentLiteralDelimiters:
13
- PreferredDelimiters:
14
- '%w': ()
15
-
16
- # Code is currently broken with frozen string literal comments applied.
17
- # TODO: Enable and fix build
18
- Style/FrozenStringLiteralComment:
19
- Enabled: false
20
-
21
- # TODO: This is placed in here so the auto-gen-config doesn't destroy these.
22
- # Most of these need to be manually tackled, the LineLength value currently is good enough to stop most of
23
- # these leaking through into the codebase
24
- # Offense count: 375+
25
- # Cop supports --auto-correct.
26
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
27
- # URISchemes: http, https
28
- Layout/LineLength:
29
- Max: 150
30
-
31
- inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml DELETED
@@ -1,262 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2020-01-01 19:49:41 +0100 using RuboCop version 0.78.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 7
10
- Lint/AmbiguousBlockAssociation:
11
- Exclude:
12
- - 'lib/aruba/platforms/announcer.rb'
13
-
14
- # Offense count: 12
15
- Lint/AmbiguousRegexpLiteral:
16
- Exclude:
17
- - 'lib/aruba/cucumber/testing_frameworks.rb'
18
-
19
- # Offense count: 2
20
- # Configuration parameters: CheckForMethodsWithNoSideEffects.
21
- Lint/Void:
22
- Exclude:
23
- - 'lib/aruba/platforms/announcer.rb'
24
- - 'lib/aruba/platforms/unix_environment_variables.rb'
25
-
26
- # Offense count: 29
27
- Metrics/AbcSize:
28
- Max: 116
29
-
30
- # Offense count: 72
31
- # Configuration parameters: CountComments, ExcludedMethods.
32
- # ExcludedMethods: refine
33
- Metrics/BlockLength:
34
- Max: 587
35
-
36
- # Offense count: 2
37
- # Configuration parameters: CountComments.
38
- Metrics/ClassLength:
39
- Max: 145
40
-
41
- # Offense count: 20
42
- # Configuration parameters: CountComments, ExcludedMethods.
43
- Metrics/MethodLength:
44
- Max: 22
45
-
46
- # Offense count: 2
47
- # Configuration parameters: CountComments.
48
- Metrics/ModuleLength:
49
- Max: 175
50
-
51
- # Offense count: 3
52
- # Configuration parameters: CountKeywordArgs.
53
- Metrics/ParameterLists:
54
- Max: 8
55
-
56
- # Offense count: 4
57
- Metrics/PerceivedComplexity:
58
- Max: 10
59
-
60
- # Offense count: 1
61
- Naming/ConstantName:
62
- Exclude:
63
- - 'lib/aruba/platform.rb'
64
-
65
- # Offense count: 5
66
- # Configuration parameters: ForbiddenDelimiters.
67
- # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
68
- Naming/HeredocDelimiterNaming:
69
- Exclude:
70
- - 'lib/aruba/initializer.rb'
71
-
72
- # Offense count: 1
73
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
74
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
75
- Naming/MemoizedInstanceVariableName:
76
- Exclude:
77
- - 'lib/aruba/api/core.rb'
78
-
79
- # Offense count: 16
80
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
81
- # AllowedNames: io, id, to, by, on, in, at, ip, db, os
82
- Naming/MethodParameterName:
83
- Exclude:
84
- - 'lib/aruba/aruba_path.rb'
85
- - 'lib/aruba/config_wrapper.rb'
86
- - 'lib/aruba/matchers/base/object_formatter.rb'
87
- - 'lib/aruba/platforms/announcer.rb'
88
- - 'lib/aruba/platforms/aruba_logger.rb'
89
- - 'lib/aruba/platforms/unix_platform.rb'
90
- - 'lib/aruba/tasks/docker_helpers.rb'
91
-
92
- # Offense count: 1
93
- Performance/Caller:
94
- Exclude:
95
- - 'lib/aruba/platforms/unix_platform.rb'
96
-
97
- # Offense count: 2
98
- Security/Open:
99
- Exclude:
100
- - 'lib/aruba/processes/spawn_process.rb'
101
-
102
- # Offense count: 3
103
- # Configuration parameters: EnforcedStyle.
104
- # SupportedStyles: inline, group
105
- Style/AccessModifierDeclarations:
106
- Exclude:
107
- - 'lib/aruba/in_config_wrapper.rb'
108
- - 'lib/aruba/matchers/base/base_matcher.rb'
109
- - 'lib/aruba/matchers/collection/all.rb'
110
-
111
- # Offense count: 3
112
- Style/CaseEquality:
113
- Exclude:
114
- - 'lib/aruba/matchers/base/object_formatter.rb'
115
-
116
- # Offense count: 1
117
- # Cop supports --auto-correct.
118
- Style/CharacterLiteral:
119
- Exclude:
120
- - 'spec/support/shared_contexts/aruba.rb'
121
-
122
- # Offense count: 4
123
- # Cop supports --auto-correct.
124
- # Configuration parameters: EnforcedStyle.
125
- # SupportedStyles: is_a?, kind_of?
126
- Style/ClassCheck:
127
- Exclude:
128
- - 'lib/aruba/api/filesystem.rb'
129
-
130
- # Offense count: 1
131
- Style/CommentedKeyword:
132
- Exclude:
133
- - 'spec/aruba/api_spec.rb'
134
-
135
- # Offense count: 12
136
- Style/Documentation:
137
- Exclude:
138
- - 'spec/**/*'
139
- - 'test/**/*'
140
- - 'fixtures/cli-app/lib/cli/app.rb'
141
- - 'fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb'
142
- - 'fixtures/empty-app/lib/cli/app.rb'
143
- - 'lib/aruba/api/bundler.rb'
144
- - 'lib/aruba/matchers/collection/include_an_object.rb'
145
- - 'lib/aruba/platforms/command_monitor.rb'
146
- - 'lib/aruba/setup.rb'
147
- - 'lib/aruba/tasks/docker_helpers.rb'
148
-
149
- # Offense count: 1
150
- Style/EvalWithLocation:
151
- Exclude:
152
- - 'spec/support/helpers/reporting.rb'
153
-
154
- # Offense count: 84
155
- # Configuration parameters: EnforcedStyle.
156
- # SupportedStyles: annotated, template, unannotated
157
- Style/FormatStringToken:
158
- Enabled: false
159
-
160
- # Offense count: 2
161
- Style/IdenticalConditionalBranches:
162
- Exclude:
163
- - 'lib/aruba/hooks.rb'
164
-
165
- # Offense count: 7
166
- # Cop supports --auto-correct.
167
- Style/IfUnlessModifier:
168
- Exclude:
169
- - 'lib/aruba/cucumber/command.rb'
170
- - 'lib/aruba/matchers/collection/include_an_object.rb'
171
- - 'lib/aruba/platforms/unix_environment_variables.rb'
172
- - 'lib/aruba/setup.rb'
173
- - 'spec/aruba/platform/windows_environment_variables_spec.rb'
174
-
175
- # Offense count: 2
176
- # Cop supports --auto-correct.
177
- # Configuration parameters: EnforcedStyle.
178
- # SupportedStyles: line_count_dependent, lambda, literal
179
- Style/Lambda:
180
- Exclude:
181
- - 'spec/aruba/hooks_spec.rb'
182
-
183
- # Offense count: 5
184
- Style/MethodMissingSuper:
185
- Exclude:
186
- - 'lib/aruba/config_wrapper.rb'
187
- - 'lib/aruba/in_config_wrapper.rb'
188
- - 'lib/aruba/platforms/command_monitor.rb'
189
- - 'lib/aruba/tasks/docker_helpers.rb'
190
-
191
- # Offense count: 4
192
- # Cop supports --auto-correct.
193
- # Configuration parameters: AllowedMethods.
194
- # AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
195
- Style/NestedParenthesizedCalls:
196
- Exclude:
197
- - 'spec/aruba/matchers/collection_spec.rb'
198
-
199
- # Offense count: 1
200
- # Cop supports --auto-correct.
201
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
202
- # SupportedStyles: predicate, comparison
203
- Style/NumericPredicate:
204
- Exclude:
205
- - 'spec/**/*'
206
- - 'lib/aruba/contracts/is_power_of_two.rb'
207
-
208
- # Offense count: 3
209
- # Cop supports --auto-correct.
210
- # Configuration parameters: PreferredDelimiters.
211
- Style/PercentLiteralDelimiters:
212
- Exclude:
213
- - 'Rakefile'
214
- - 'lib/aruba/api/bundler.rb'
215
-
216
- # Offense count: 2
217
- # Cop supports --auto-correct.
218
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
219
- # SupportedStyles: slashes, percent_r, mixed
220
- Style/RegexpLiteral:
221
- Exclude:
222
- - 'lib/aruba/cucumber/command.rb'
223
- - 'lib/aruba/cucumber/file.rb'
224
-
225
- # Offense count: 4
226
- # Cop supports --auto-correct.
227
- # Configuration parameters: EnforcedStyle.
228
- # SupportedStyles: implicit, explicit
229
- Style/RescueStandardError:
230
- Exclude:
231
- - 'lib/aruba/contracts/absolute_path.rb'
232
- - 'lib/aruba/contracts/is_power_of_two.rb'
233
- - 'lib/aruba/contracts/relative_path.rb'
234
- - 'lib/aruba/event_bus/name_resolver.rb'
235
-
236
- # Offense count: 1
237
- # Cop supports --auto-correct.
238
- # Configuration parameters: AllowAsExpressionSeparator.
239
- Style/Semicolon:
240
- Exclude:
241
- - 'lib/aruba/platforms/aruba_fixed_size_file_creator.rb'
242
-
243
- # Offense count: 40
244
- # Cop supports --auto-correct.
245
- # Configuration parameters: EnforcedStyle.
246
- # SupportedStyles: only_raise, only_fail, semantic
247
- Style/SignalException:
248
- Enabled: false
249
-
250
- # Offense count: 2
251
- # Cop supports --auto-correct.
252
- Style/StderrPuts:
253
- Exclude:
254
- - 'Rakefile'
255
- - 'lib/aruba/initializer.rb'
256
-
257
- # Offense count: 6
258
- # Cop supports --auto-correct.
259
- # Configuration parameters: MinSize.
260
- # SupportedStyles: percent, brackets
261
- Style/SymbolArray:
262
- EnforcedStyle: brackets
data/.simplecov DELETED
@@ -1,36 +0,0 @@
1
- SimpleCov.configure do
2
- # Activate branch coverage
3
- enable_coverage :branch
4
-
5
- # ignore this file
6
- add_filter '.simplecov'
7
- add_filter 'features'
8
-
9
- # Rake tasks aren't tested with rspec
10
- add_filter 'Rakefile'
11
- add_filter 'lib/tasks'
12
-
13
- #
14
- # Changed Files in Git Group
15
- # @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
16
- untracked = `git ls-files --exclude-standard --others`
17
- unstaged = `git diff --name-only`
18
- staged = `git diff --name-only --cached`
19
- all = untracked + unstaged + staged
20
- changed_filenames = all.split("\n")
21
-
22
- add_group 'Changed' do |source_file|
23
- changed_filenames.select do |changed_filename|
24
- source_file.filename.end_with?(changed_filename)
25
- end
26
- end
27
-
28
- add_group 'Libraries', 'lib'
29
-
30
- # Specs are reported on to ensure that all examples are being run and all
31
- # lets, befores, afters, etc are being used.
32
- add_group 'Specs', 'spec/'
33
- end
34
-
35
- # Run simplecov by default
36
- SimpleCov.start unless ENV.key? 'ARUBA_NO_COVERAGE'