aruba 1.0.1 → 1.1.1

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -1
  3. data/CONTRIBUTING.md +11 -23
  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 +11 -11
  10. data/lib/aruba/api/core.rb +27 -25
  11. data/lib/aruba/api/environment.rb +2 -2
  12. data/lib/aruba/api/filesystem.rb +42 -16
  13. data/lib/aruba/api/text.rb +4 -4
  14. data/lib/aruba/aruba_path.rb +3 -4
  15. data/lib/aruba/basic_configuration.rb +51 -69
  16. data/lib/aruba/cli.rb +7 -7
  17. data/lib/aruba/command.rb +4 -4
  18. data/lib/aruba/config/jruby.rb +9 -9
  19. data/lib/aruba/config_wrapper.rb +2 -2
  20. data/lib/aruba/configuration.rb +36 -46
  21. data/lib/aruba/console.rb +11 -11
  22. data/lib/aruba/console/help.rb +7 -7
  23. data/lib/aruba/contracts/absolute_path.rb +1 -1
  24. data/lib/aruba/contracts/enum.rb +1 -1
  25. data/lib/aruba/contracts/is_power_of_two.rb +1 -1
  26. data/lib/aruba/contracts/relative_path.rb +1 -1
  27. data/lib/aruba/cucumber.rb +7 -7
  28. data/lib/aruba/cucumber/command.rb +41 -49
  29. data/lib/aruba/cucumber/environment.rb +7 -7
  30. data/lib/aruba/cucumber/file.rb +8 -4
  31. data/lib/aruba/cucumber/hooks.rb +29 -29
  32. data/lib/aruba/cucumber/testing_frameworks.rb +18 -18
  33. data/lib/aruba/event_bus.rb +4 -4
  34. data/lib/aruba/event_bus/name_resolver.rb +4 -4
  35. data/lib/aruba/file_size.rb +1 -1
  36. data/lib/aruba/generators/script_file.rb +2 -2
  37. data/lib/aruba/in_config_wrapper.rb +1 -1
  38. data/lib/aruba/initializer.rb +10 -10
  39. data/lib/aruba/matchers/base/base_matcher.rb +1 -1
  40. data/lib/aruba/matchers/base/message_indenter.rb +2 -2
  41. data/lib/aruba/matchers/base/object_formatter.rb +2 -2
  42. data/lib/aruba/matchers/collection.rb +1 -1
  43. data/lib/aruba/matchers/collection/all.rb +1 -1
  44. data/lib/aruba/matchers/collection/include_an_object.rb +2 -2
  45. data/lib/aruba/matchers/command.rb +1 -1
  46. data/lib/aruba/matchers/command/be_successfully_executed.rb +4 -4
  47. data/lib/aruba/matchers/command/have_finished_in_time.rb +1 -1
  48. data/lib/aruba/matchers/command/have_output.rb +1 -1
  49. data/lib/aruba/matchers/directory.rb +1 -1
  50. data/lib/aruba/matchers/directory/be_an_existing_directory.rb +2 -2
  51. data/lib/aruba/matchers/directory/have_sub_directory.rb +3 -3
  52. data/lib/aruba/matchers/environment.rb +1 -1
  53. data/lib/aruba/matchers/file.rb +1 -1
  54. data/lib/aruba/matchers/file/be_a_command_found_in_path.rb +1 -1
  55. data/lib/aruba/matchers/file/be_an_existing_executable.rb +2 -2
  56. data/lib/aruba/matchers/file/be_an_existing_file.rb +2 -2
  57. data/lib/aruba/matchers/file/have_file_content.rb +1 -1
  58. data/lib/aruba/matchers/file/have_file_size.rb +1 -1
  59. data/lib/aruba/matchers/file/have_same_file_content.rb +2 -2
  60. data/lib/aruba/matchers/path.rb +1 -1
  61. data/lib/aruba/matchers/path/a_path_matching_pattern.rb +1 -1
  62. data/lib/aruba/matchers/path/be_an_absolute_path.rb +1 -1
  63. data/lib/aruba/matchers/path/be_an_existing_path.rb +1 -1
  64. data/lib/aruba/matchers/path/have_permissions.rb +5 -4
  65. data/lib/aruba/matchers/string.rb +1 -1
  66. data/lib/aruba/matchers/string/include_output_string.rb +1 -1
  67. data/lib/aruba/matchers/string/match_output_string.rb +1 -1
  68. data/lib/aruba/matchers/string/output_string_eq.rb +1 -1
  69. data/lib/aruba/platform.rb +2 -2
  70. data/lib/aruba/platforms/announcer.rb +15 -15
  71. data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +1 -1
  72. data/lib/aruba/platforms/aruba_logger.rb +11 -10
  73. data/lib/aruba/platforms/command_monitor.rb +6 -8
  74. data/lib/aruba/platforms/determine_disk_usage.rb +2 -4
  75. data/lib/aruba/platforms/filesystem_status.rb +20 -14
  76. data/lib/aruba/platforms/simple_table.rb +3 -3
  77. data/lib/aruba/platforms/unix_command_string.rb +2 -2
  78. data/lib/aruba/platforms/unix_environment_variables.rb +1 -1
  79. data/lib/aruba/platforms/unix_platform.rb +23 -23
  80. data/lib/aruba/platforms/unix_which.rb +1 -1
  81. data/lib/aruba/platforms/windows_command_string.rb +2 -2
  82. data/lib/aruba/platforms/windows_environment_variables.rb +1 -1
  83. data/lib/aruba/platforms/windows_platform.rb +7 -7
  84. data/lib/aruba/platforms/windows_which.rb +5 -5
  85. data/lib/aruba/processes/basic_process.rb +4 -4
  86. data/lib/aruba/processes/debug_process.rb +5 -5
  87. data/lib/aruba/processes/in_process.rb +8 -8
  88. data/lib/aruba/processes/spawn_process.rb +18 -23
  89. data/lib/aruba/rspec.rb +6 -6
  90. data/lib/aruba/runtime.rb +6 -6
  91. data/lib/aruba/setup.rb +3 -3
  92. data/lib/aruba/version.rb +1 -1
  93. metadata +75 -94
  94. data/.cucumberproignore +0 -3
  95. data/.document +0 -5
  96. data/.github/ISSUE_TEMPLATE.md +0 -48
  97. data/.github/PULL_REQUEST_TEMPLATE.md +0 -41
  98. data/.gitignore +0 -38
  99. data/.rspec +0 -3
  100. data/.rubocop.yml +0 -52
  101. data/.rubocop_todo.yml +0 -216
  102. data/.simplecov +0 -36
  103. data/.travis.yml +0 -62
  104. data/.yardopts +0 -11
  105. data/Dockerfile +0 -67
  106. data/Gemfile +0 -14
  107. data/Rakefile +0 -82
  108. data/TODO.md +0 -13
  109. data/appveyor.yml +0 -28
  110. data/aruba.gemspec +0 -57
  111. data/bin/console +0 -7
  112. data/bin/test +0 -9
  113. data/config/.gitignore +0 -1
  114. data/cucumber.yml +0 -6
  115. data/docker-compose.yml +0 -26
  116. data/fixtures/cli-app/.gitignore +0 -9
  117. data/fixtures/cli-app/.rspec +0 -2
  118. data/fixtures/cli-app/README.md +0 -39
  119. data/fixtures/cli-app/Rakefile +0 -1
  120. data/fixtures/cli-app/bin/aruba-test-cli +0 -6
  121. data/fixtures/cli-app/cli-app.gemspec +0 -26
  122. data/fixtures/cli-app/features/support/aruba.rb +0 -1
  123. data/fixtures/cli-app/features/support/env.rb +0 -1
  124. data/fixtures/cli-app/lib/cli/app.rb +0 -9
  125. data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +0 -15
  126. data/fixtures/cli-app/lib/cli/app/version.rb +0 -5
  127. data/fixtures/cli-app/script/console +0 -14
  128. data/fixtures/cli-app/spec/spec_helper.rb +0 -8
  129. data/fixtures/cli-app/spec/support/aruba.rb +0 -1
  130. data/fixtures/copy/file.txt +0 -1
  131. data/fixtures/empty-app/.gitignore +0 -9
  132. data/fixtures/empty-app/.rspec +0 -2
  133. data/fixtures/empty-app/README.md +0 -24
  134. data/fixtures/empty-app/Rakefile +0 -1
  135. data/fixtures/empty-app/cli-app.gemspec +0 -26
  136. data/fixtures/empty-app/lib/cli/app.rb +0 -7
  137. data/fixtures/empty-app/lib/cli/app/version.rb +0 -5
  138. data/fixtures/getting-started-app/.gitignore +0 -4
  139. data/fixtures/getting-started-app/Gemfile +0 -4
  140. data/fixtures/getting-started-app/README.md +0 -3
  141. data/fixtures/getting-started-app/features/support/env.rb +0 -1
  142. data/lib/aruba/extensions/string/strip.rb +0 -25
  143. data/lib/aruba/tasks/docker_helpers.rb +0 -156
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,52 +0,0 @@
1
- require:
2
- - rubocop-performance
3
- - rubocop-rspec
4
-
5
- AllCops:
6
- Exclude:
7
- - tmp/**/*
8
- - vendor/**/*
9
- DisplayCopNames: true
10
- TargetRubyVersion: 2.4
11
-
12
- # Use older RuboCop default
13
- Style/PercentLiteralDelimiters:
14
- PreferredDelimiters:
15
- '%w': ()
16
-
17
- # SupportedStyles: percent, brackets
18
- Style/SymbolArray:
19
- EnforcedStyle: brackets
20
-
21
- # Code is currently broken with frozen string literal comments applied.
22
- # TODO: Enable and fix build
23
- Style/FrozenStringLiteralComment:
24
- Enabled: false
25
-
26
- # Be relatively lenient with line length
27
- Layout/LineLength:
28
- Max: 94
29
-
30
- # Enable new cops from RuboCop 0.80, 0.81 and 0.84
31
- Layout/EmptyLinesAroundAttributeAccessor:
32
- Enabled: true
33
- Layout/SpaceAroundMethodCallOperator:
34
- Enabled: true
35
- Lint/DeprecatedOpenSSLConstant:
36
- Enabled: true
37
- Lint/RaiseException:
38
- Enabled: true
39
- Lint/StructNewOverride:
40
- Enabled: true
41
- Style/ExponentialNotation:
42
- Enabled: true
43
- Style/HashEachMethods:
44
- Enabled: true
45
- Style/HashTransformKeys:
46
- Enabled: true
47
- Style/HashTransformValues:
48
- Enabled: true
49
- Style/SlicingWithRange:
50
- Enabled: true
51
-
52
- inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml DELETED
@@ -1,216 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2020-05-31 23:12:24 +0200 using RuboCop version 0.84.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: 2
15
- # Configuration parameters: CheckForMethodsWithNoSideEffects.
16
- Lint/Void:
17
- Exclude:
18
- - 'lib/aruba/platforms/announcer.rb'
19
- - 'lib/aruba/platforms/unix_environment_variables.rb'
20
-
21
- # Offense count: 26
22
- # Configuration parameters: IgnoredMethods.
23
- Metrics/AbcSize:
24
- Max: 116
25
-
26
- # Offense count: 72
27
- # Configuration parameters: CountComments, ExcludedMethods.
28
- # ExcludedMethods: refine
29
- Metrics/BlockLength:
30
- Max: 594
31
-
32
- # Offense count: 2
33
- # Configuration parameters: CountComments.
34
- Metrics/ClassLength:
35
- Max: 158
36
-
37
- # Offense count: 5
38
- # Configuration parameters: IgnoredMethods.
39
- Metrics/CyclomaticComplexity:
40
- Max: 12
41
-
42
- # Offense count: 28
43
- # Configuration parameters: CountComments, ExcludedMethods.
44
- Metrics/MethodLength:
45
- Max: 59
46
-
47
- # Offense count: 3
48
- # Configuration parameters: CountComments.
49
- Metrics/ModuleLength:
50
- Max: 182
51
-
52
- # Offense count: 3
53
- # Configuration parameters: CountKeywordArgs.
54
- Metrics/ParameterLists:
55
- Max: 8
56
-
57
- # Offense count: 5
58
- # Configuration parameters: IgnoredMethods.
59
- Metrics/PerceivedComplexity:
60
- Max: 13
61
-
62
- # Offense count: 1
63
- Naming/ConstantName:
64
- Exclude:
65
- - 'lib/aruba/platform.rb'
66
-
67
- # Offense count: 5
68
- # Configuration parameters: ForbiddenDelimiters.
69
- # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
70
- Naming/HeredocDelimiterNaming:
71
- Exclude:
72
- - 'lib/aruba/initializer.rb'
73
-
74
- # Offense count: 1
75
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
76
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
77
- Naming/MemoizedInstanceVariableName:
78
- Exclude:
79
- - 'lib/aruba/api/core.rb'
80
-
81
- # Offense count: 14
82
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
83
- # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
84
- Naming/MethodParameterName:
85
- Exclude:
86
- - 'lib/aruba/aruba_path.rb'
87
- - 'lib/aruba/config_wrapper.rb'
88
- - 'lib/aruba/platforms/announcer.rb'
89
- - 'lib/aruba/platforms/aruba_logger.rb'
90
- - 'lib/aruba/platforms/unix_platform.rb'
91
- - 'lib/aruba/tasks/docker_helpers.rb'
92
-
93
- # Offense count: 1
94
- Performance/Caller:
95
- Exclude:
96
- - 'lib/aruba/platforms/unix_platform.rb'
97
-
98
- # Offense count: 51
99
- # Configuration parameters: Prefixes.
100
- # Prefixes: when, with, without
101
- RSpec/ContextWording:
102
- Exclude:
103
- - 'spec/aruba/api/filesystem_spec.rb'
104
- - 'spec/aruba/api/runtime_spec.rb'
105
- - 'spec/aruba/api_spec.rb'
106
- - 'spec/aruba/matchers/command_spec.rb'
107
- - 'spec/aruba/matchers/file_spec.rb'
108
- - 'spec/aruba/matchers/path_spec.rb'
109
- - 'spec/aruba/platform/windows_environment_variables_spec.rb'
110
- - 'spec/support/shared_contexts/aruba.rb'
111
-
112
- # Offense count: 10
113
- RSpec/DescribeClass:
114
- Exclude:
115
- - 'spec/aruba/api/runtime_spec.rb'
116
- - 'spec/aruba/jruby_spec.rb'
117
- - 'spec/aruba/matchers/collection_spec.rb'
118
- - 'spec/aruba/matchers/command/have_output_size_spec.rb'
119
- - 'spec/aruba/matchers/command_spec.rb'
120
- - 'spec/aruba/matchers/directory_spec.rb'
121
- - 'spec/aruba/matchers/file_spec.rb'
122
- - 'spec/aruba/matchers/path_spec.rb'
123
- - 'spec/aruba/platform/simple_table_spec.rb'
124
- - 'spec/aruba/rspec_spec.rb'
125
-
126
- # Offense count: 19
127
- # Configuration parameters: Max.
128
- RSpec/ExampleLength:
129
- Exclude:
130
- - 'spec/aruba/api/core_spec.rb'
131
- - 'spec/aruba/api/filesystem_spec.rb'
132
- - 'spec/aruba/aruba_path_spec.rb'
133
- - 'spec/aruba/matchers/collection_spec.rb'
134
-
135
- # Offense count: 4
136
- # Configuration parameters: CustomTransform, IgnoreMethods.
137
- RSpec/FilePath:
138
- Exclude:
139
- - 'spec/aruba/platform/windows_environment_variables_spec.rb'
140
- - 'spec/aruba/platforms/command_monitor_spec.rb'
141
- - 'spec/event_bus/name_resolver_spec.rb'
142
- - 'spec/event_bus_spec.rb'
143
-
144
- # Offense count: 298
145
- # Configuration parameters: AssignmentOnly.
146
- RSpec/InstanceVariable:
147
- Exclude:
148
- - 'spec/aruba/api/bundler_spec.rb'
149
- - 'spec/aruba/api/commands_spec.rb'
150
- - 'spec/aruba/api/core_spec.rb'
151
- - 'spec/aruba/api/filesystem_spec.rb'
152
- - 'spec/aruba/api_spec.rb'
153
- - 'spec/aruba/matchers/command/have_output_size_spec.rb'
154
- - 'spec/aruba/matchers/command_spec.rb'
155
- - 'spec/aruba/matchers/directory_spec.rb'
156
- - 'spec/aruba/matchers/file_spec.rb'
157
- - 'spec/aruba/matchers/path_spec.rb'
158
- - 'spec/aruba/processes/in_process_spec.rb'
159
- - 'spec/event_bus_spec.rb'
160
- - 'spec/support/shared_contexts/aruba.rb'
161
-
162
- # Offense count: 32
163
- RSpec/MultipleExpectations:
164
- Max: 5
165
-
166
- # Offense count: 187
167
- RSpec/NestedGroups:
168
- Max: 6
169
-
170
- # Offense count: 1
171
- RSpec/UnspecifiedException:
172
- Exclude:
173
- - 'spec/aruba/runtime_spec.rb'
174
-
175
- # Offense count: 2
176
- Security/Open:
177
- Exclude:
178
- - 'lib/aruba/processes/spawn_process.rb'
179
-
180
- # Offense count: 1
181
- # Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
182
- # SupportedStyles: inline, group
183
- Style/AccessModifierDeclarations:
184
- Exclude:
185
- - 'lib/aruba/matchers/collection/all.rb'
186
-
187
- # Offense count: 3
188
- # Configuration parameters: AllowOnConstant.
189
- Style/CaseEquality:
190
- Exclude:
191
- - 'lib/aruba/matchers/base/object_formatter.rb'
192
-
193
- # Offense count: 12
194
- Style/Documentation:
195
- Exclude:
196
- - 'spec/**/*'
197
- - 'test/**/*'
198
- - 'fixtures/cli-app/lib/cli/app.rb'
199
- - 'fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb'
200
- - 'fixtures/empty-app/lib/cli/app.rb'
201
- - 'lib/aruba/api/bundler.rb'
202
- - 'lib/aruba/matchers/collection/include_an_object.rb'
203
- - 'lib/aruba/platforms/command_monitor.rb'
204
- - 'lib/aruba/setup.rb'
205
- - 'lib/aruba/tasks/docker_helpers.rb'
206
-
207
- # Offense count: 83
208
- # Configuration parameters: EnforcedStyle.
209
- # SupportedStyles: annotated, template, unannotated
210
- Style/FormatStringToken:
211
- Enabled: false
212
-
213
- # Offense count: 2
214
- Style/MethodMissingSuper:
215
- Exclude:
216
- - 'lib/aruba/platforms/command_monitor.rb'
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'