aruba 1.0.0.pre.alpha.5 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +153 -28
  3. data/CONTRIBUTING.md +0 -9
  4. data/LICENSE +1 -1
  5. data/README.md +37 -30
  6. data/lib/aruba/api.rb +0 -1
  7. data/lib/aruba/api/bundler.rb +17 -2
  8. data/lib/aruba/api/commands.rb +15 -16
  9. data/lib/aruba/api/core.rb +64 -50
  10. data/lib/aruba/api/environment.rb +12 -4
  11. data/lib/aruba/api/filesystem.rb +32 -46
  12. data/lib/aruba/api/text.rb +15 -3
  13. data/lib/aruba/aruba_path.rb +23 -95
  14. data/lib/aruba/basic_configuration.rb +46 -65
  15. data/lib/aruba/basic_configuration/option.rb +2 -2
  16. data/lib/aruba/cli.rb +4 -1
  17. data/lib/aruba/config/jruby.rb +1 -1
  18. data/lib/aruba/config_wrapper.rb +17 -4
  19. data/lib/aruba/configuration.rb +29 -22
  20. data/lib/aruba/console.rb +0 -2
  21. data/lib/aruba/console/help.rb +8 -5
  22. data/lib/aruba/contracts/absolute_path.rb +3 -3
  23. data/lib/aruba/contracts/is_power_of_two.rb +2 -2
  24. data/lib/aruba/contracts/relative_path.rb +3 -3
  25. data/lib/aruba/cucumber/command.rb +93 -82
  26. data/lib/aruba/cucumber/file.rb +43 -23
  27. data/lib/aruba/cucumber/hooks.rb +4 -1
  28. data/lib/aruba/cucumber/testing_frameworks.rb +14 -12
  29. data/lib/aruba/event_bus.rb +4 -2
  30. data/lib/aruba/event_bus/name_resolver.rb +9 -8
  31. data/lib/aruba/events.rb +2 -1
  32. data/lib/aruba/hooks.rb +2 -4
  33. data/lib/aruba/in_config_wrapper.rb +8 -5
  34. data/lib/aruba/initializer.rb +9 -3
  35. data/lib/aruba/matchers/base/base_matcher.rb +2 -11
  36. data/lib/aruba/matchers/base/message_indenter.rb +1 -1
  37. data/lib/aruba/matchers/base/object_formatter.rb +0 -5
  38. data/lib/aruba/matchers/collection/include_an_object.rb +4 -4
  39. data/lib/aruba/matchers/command/be_successfully_executed.rb +3 -1
  40. data/lib/aruba/matchers/command/have_exit_status.rb +3 -1
  41. data/lib/aruba/matchers/command/have_finished_in_time.rb +3 -1
  42. data/lib/aruba/matchers/command/have_output.rb +3 -1
  43. data/lib/aruba/matchers/command/have_output_on_stderr.rb +3 -1
  44. data/lib/aruba/matchers/command/have_output_on_stdout.rb +3 -1
  45. data/lib/aruba/matchers/directory/have_sub_directory.rb +8 -3
  46. data/lib/aruba/matchers/file/have_file_size.rb +4 -2
  47. data/lib/aruba/matchers/path/have_permissions.rb +7 -4
  48. data/lib/aruba/platforms/announcer.rb +25 -11
  49. data/lib/aruba/platforms/aruba_file_creator.rb +3 -1
  50. data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +7 -2
  51. data/lib/aruba/platforms/aruba_logger.rb +10 -9
  52. data/lib/aruba/platforms/command_monitor.rb +4 -6
  53. data/lib/aruba/platforms/determine_disk_usage.rb +55 -20
  54. data/lib/aruba/platforms/filesystem_status.rb +19 -13
  55. data/lib/aruba/platforms/simple_table.rb +2 -2
  56. data/lib/aruba/platforms/unix_environment_variables.rb +9 -4
  57. data/lib/aruba/platforms/unix_platform.rb +10 -10
  58. data/lib/aruba/platforms/unix_which.rb +1 -1
  59. data/lib/aruba/platforms/windows_command_string.rb +1 -1
  60. data/lib/aruba/platforms/windows_environment_variables.rb +2 -1
  61. data/lib/aruba/platforms/windows_platform.rb +3 -3
  62. data/lib/aruba/platforms/windows_which.rb +6 -2
  63. data/lib/aruba/processes/basic_process.rb +4 -6
  64. data/lib/aruba/processes/debug_process.rb +4 -2
  65. data/lib/aruba/processes/in_process.rb +5 -3
  66. data/lib/aruba/processes/spawn_process.rb +27 -16
  67. data/lib/aruba/rspec.rb +25 -15
  68. data/lib/aruba/runtime.rb +11 -4
  69. data/lib/aruba/setup.rb +23 -10
  70. data/lib/aruba/tasks/docker_helpers.rb +3 -1
  71. data/lib/aruba/version.rb +1 -1
  72. metadata +96 -109
  73. data/.cucumberproignore +0 -3
  74. data/.document +0 -5
  75. data/.github/ISSUE_TEMPLATE.md +0 -48
  76. data/.github/PULL_REQUEST_TEMPLATE.md +0 -41
  77. data/.gitignore +0 -38
  78. data/.rspec +0 -3
  79. data/.rubocop.yml +0 -31
  80. data/.rubocop_todo.yml +0 -258
  81. data/.simplecov +0 -34
  82. data/.travis.yml +0 -73
  83. data/.yardopts +0 -11
  84. data/Dockerfile +0 -67
  85. data/Gemfile +0 -15
  86. data/Rakefile +0 -92
  87. data/TODO.md +0 -13
  88. data/appveyor.yml +0 -30
  89. data/aruba.gemspec +0 -46
  90. data/bin/console +0 -7
  91. data/bin/test +0 -9
  92. data/config/.gitignore +0 -1
  93. data/cucumber.yml +0 -6
  94. data/docker-compose.yml +0 -26
  95. data/fixtures/cli-app/.gitignore +0 -9
  96. data/fixtures/cli-app/.rspec +0 -2
  97. data/fixtures/cli-app/README.md +0 -39
  98. data/fixtures/cli-app/Rakefile +0 -1
  99. data/fixtures/cli-app/bin/aruba-test-cli +0 -6
  100. data/fixtures/cli-app/cli-app.gemspec +0 -25
  101. data/fixtures/cli-app/features/support/aruba.rb +0 -1
  102. data/fixtures/cli-app/features/support/env.rb +0 -1
  103. data/fixtures/cli-app/lib/cli/app.rb +0 -9
  104. data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +0 -15
  105. data/fixtures/cli-app/lib/cli/app/version.rb +0 -5
  106. data/fixtures/cli-app/script/console +0 -14
  107. data/fixtures/cli-app/spec/spec_helper.rb +0 -7
  108. data/fixtures/cli-app/spec/support/aruba.rb +0 -1
  109. data/fixtures/copy/file.txt +0 -1
  110. data/fixtures/empty-app/.gitignore +0 -9
  111. data/fixtures/empty-app/.rspec +0 -2
  112. data/fixtures/empty-app/README.md +0 -24
  113. data/fixtures/empty-app/Rakefile +0 -1
  114. data/fixtures/empty-app/cli-app.gemspec +0 -25
  115. data/fixtures/empty-app/lib/cli/app.rb +0 -7
  116. data/fixtures/empty-app/lib/cli/app/version.rb +0 -5
  117. data/fixtures/getting-started-app/.gitignore +0 -4
  118. data/fixtures/getting-started-app/Gemfile +0 -4
  119. data/fixtures/getting-started-app/README.md +0 -3
  120. data/fixtures/getting-started-app/features/support/env.rb +0 -1
  121. data/lib/aruba/extensions/string/strip.rb +0 -25
  122. data/lib/aruba/platforms/disk_usage_calculator.rb +0 -20
@@ -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
@@ -1,31 +0,0 @@
1
- require:
2
- - rubocop-performance
3
-
4
- AllCops:
5
- Exclude:
6
- - tmp/**/*
7
- - vendor/**/*
8
- DisplayCopNames: true
9
- TargetRubyVersion: 2.3
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
- Metrics/LineLength:
29
- Max: 150
30
-
31
- inherit_from: .rubocop_todo.yml
@@ -1,258 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2019-07-01 13:22:17 +0200 using RuboCop version 0.69.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: 6
15
- Lint/AmbiguousRegexpLiteral:
16
- Exclude:
17
- - 'lib/aruba/cucumber/testing_frameworks.rb'
18
-
19
- # Offense count: 2
20
- # Configuration parameters: MaximumRangeSize.
21
- Lint/MissingCopEnableDirective:
22
- Exclude:
23
- - 'lib/aruba/configuration.rb'
24
- - 'lib/aruba/processes/spawn_process.rb'
25
-
26
- # Offense count: 2
27
- # Configuration parameters: CheckForMethodsWithNoSideEffects.
28
- Lint/Void:
29
- Exclude:
30
- - 'lib/aruba/platforms/announcer.rb'
31
- - 'lib/aruba/platforms/unix_environment_variables.rb'
32
-
33
- # Offense count: 28
34
- Metrics/AbcSize:
35
- Max: 116
36
-
37
- # Offense count: 72
38
- # Configuration parameters: CountComments, ExcludedMethods.
39
- # ExcludedMethods: refine
40
- Metrics/BlockLength:
41
- Max: 585
42
-
43
- # Offense count: 2
44
- # Configuration parameters: CountComments.
45
- Metrics/ClassLength:
46
- Max: 135
47
-
48
- # Offense count: 18
49
- # Configuration parameters: CountComments, ExcludedMethods.
50
- Metrics/MethodLength:
51
- Max: 18
52
-
53
- # Offense count: 2
54
- # Configuration parameters: CountComments.
55
- Metrics/ModuleLength:
56
- Max: 167
57
-
58
- # Offense count: 3
59
- # Configuration parameters: CountKeywordArgs.
60
- Metrics/ParameterLists:
61
- Max: 8
62
-
63
- # Offense count: 4
64
- Metrics/PerceivedComplexity:
65
- Max: 10
66
-
67
- # Offense count: 5
68
- # Configuration parameters: Blacklist.
69
- # Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
70
- Naming/HeredocDelimiterNaming:
71
- Exclude:
72
- - 'lib/aruba/initializer.rb'
73
-
74
- # Offense count: 16
75
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
76
- # AllowedNames: io, id, to, by, on, in, at, ip, db
77
- Naming/UncommunicativeMethodParamName:
78
- Exclude:
79
- - 'lib/aruba/aruba_path.rb'
80
- - 'lib/aruba/config_wrapper.rb'
81
- - 'lib/aruba/matchers/base/object_formatter.rb'
82
- - 'lib/aruba/platforms/announcer.rb'
83
- - 'lib/aruba/platforms/aruba_logger.rb'
84
- - 'lib/aruba/platforms/unix_platform.rb'
85
- - 'lib/aruba/tasks/docker_helpers.rb'
86
-
87
- # Offense count: 1
88
- Performance/Caller:
89
- Exclude:
90
- - 'lib/aruba/platforms/unix_platform.rb'
91
-
92
- # Offense count: 2
93
- Security/Open:
94
- Exclude:
95
- - 'lib/aruba/processes/spawn_process.rb'
96
-
97
- # Offense count: 3
98
- # Configuration parameters: EnforcedStyle.
99
- # SupportedStyles: inline, group
100
- Style/AccessModifierDeclarations:
101
- Exclude:
102
- - 'lib/aruba/in_config_wrapper.rb'
103
- - 'lib/aruba/matchers/base/base_matcher.rb'
104
- - 'lib/aruba/matchers/collection/all.rb'
105
-
106
- # Offense count: 3
107
- Style/CaseEquality:
108
- Exclude:
109
- - 'lib/aruba/matchers/base/object_formatter.rb'
110
-
111
- # Offense count: 1
112
- # Cop supports --auto-correct.
113
- Style/CharacterLiteral:
114
- Exclude:
115
- - 'spec/support/shared_contexts/aruba.rb'
116
-
117
- # Offense count: 4
118
- # Cop supports --auto-correct.
119
- # Configuration parameters: EnforcedStyle.
120
- # SupportedStyles: is_a?, kind_of?
121
- Style/ClassCheck:
122
- Exclude:
123
- - 'lib/aruba/api/filesystem.rb'
124
-
125
- # Offense count: 1
126
- Style/CommentedKeyword:
127
- Exclude:
128
- - 'spec/aruba/api_spec.rb'
129
-
130
- # Offense count: 12
131
- Style/Documentation:
132
- Exclude:
133
- - 'spec/**/*'
134
- - 'test/**/*'
135
- - 'fixtures/cli-app/lib/cli/app.rb'
136
- - 'fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb'
137
- - 'fixtures/empty-app/lib/cli/app.rb'
138
- - 'lib/aruba/api/bundler.rb'
139
- - 'lib/aruba/matchers/collection/include_an_object.rb'
140
- - 'lib/aruba/platforms/command_monitor.rb'
141
- - 'lib/aruba/setup.rb'
142
- - 'lib/aruba/tasks/docker_helpers.rb'
143
-
144
- # Offense count: 1
145
- Style/EvalWithLocation:
146
- Exclude:
147
- - 'spec/support/helpers/reporting.rb'
148
-
149
- # Offense count: 84
150
- # Configuration parameters: EnforcedStyle.
151
- # SupportedStyles: annotated, template, unannotated
152
- Style/FormatStringToken:
153
- Enabled: false
154
-
155
- # Offense count: 2
156
- Style/IdenticalConditionalBranches:
157
- Exclude:
158
- - 'lib/aruba/hooks.rb'
159
-
160
- # Offense count: 8
161
- # Cop supports --auto-correct.
162
- Style/IfUnlessModifier:
163
- Exclude:
164
- - 'features/support/env.rb'
165
- - 'lib/aruba/cucumber/command.rb'
166
- - 'lib/aruba/matchers/collection/include_an_object.rb'
167
- - 'lib/aruba/platforms/unix_environment_variables.rb'
168
- - 'lib/aruba/setup.rb'
169
- - 'spec/aruba/platform/windows_environment_variables_spec.rb'
170
-
171
- # Offense count: 2
172
- # Cop supports --auto-correct.
173
- # Configuration parameters: EnforcedStyle.
174
- # SupportedStyles: line_count_dependent, lambda, literal
175
- Style/Lambda:
176
- Exclude:
177
- - 'spec/aruba/hooks_spec.rb'
178
-
179
- # Offense count: 5
180
- Style/MethodMissingSuper:
181
- Exclude:
182
- - 'lib/aruba/config_wrapper.rb'
183
- - 'lib/aruba/in_config_wrapper.rb'
184
- - 'lib/aruba/platforms/command_monitor.rb'
185
- - 'lib/aruba/tasks/docker_helpers.rb'
186
-
187
- # Offense count: 4
188
- # Cop supports --auto-correct.
189
- # Configuration parameters: Whitelist.
190
- # Whitelist: 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
191
- Style/NestedParenthesizedCalls:
192
- Exclude:
193
- - 'spec/aruba/matchers/collection_spec.rb'
194
-
195
- # Offense count: 1
196
- # Cop supports --auto-correct.
197
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
198
- # SupportedStyles: predicate, comparison
199
- Style/NumericPredicate:
200
- Exclude:
201
- - 'spec/**/*'
202
- - 'lib/aruba/contracts/is_power_of_two.rb'
203
-
204
- # Offense count: 3
205
- # Cop supports --auto-correct.
206
- # Configuration parameters: PreferredDelimiters.
207
- Style/PercentLiteralDelimiters:
208
- Exclude:
209
- - 'Rakefile'
210
- - 'lib/aruba/api/bundler.rb'
211
-
212
- # Offense count: 2
213
- # Cop supports --auto-correct.
214
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
215
- # SupportedStyles: slashes, percent_r, mixed
216
- Style/RegexpLiteral:
217
- Exclude:
218
- - 'lib/aruba/cucumber/command.rb'
219
- - 'lib/aruba/cucumber/file.rb'
220
-
221
- # Offense count: 4
222
- # Cop supports --auto-correct.
223
- # Configuration parameters: EnforcedStyle.
224
- # SupportedStyles: implicit, explicit
225
- Style/RescueStandardError:
226
- Exclude:
227
- - 'lib/aruba/contracts/absolute_path.rb'
228
- - 'lib/aruba/contracts/is_power_of_two.rb'
229
- - 'lib/aruba/contracts/relative_path.rb'
230
- - 'lib/aruba/event_bus/name_resolver.rb'
231
-
232
- # Offense count: 1
233
- # Cop supports --auto-correct.
234
- # Configuration parameters: AllowAsExpressionSeparator.
235
- Style/Semicolon:
236
- Exclude:
237
- - 'lib/aruba/platforms/aruba_fixed_size_file_creator.rb'
238
-
239
- # Offense count: 43
240
- # Cop supports --auto-correct.
241
- # Configuration parameters: EnforcedStyle.
242
- # SupportedStyles: only_raise, only_fail, semantic
243
- Style/SignalException:
244
- Enabled: false
245
-
246
- # Offense count: 2
247
- # Cop supports --auto-correct.
248
- Style/StderrPuts:
249
- Exclude:
250
- - 'Rakefile'
251
- - 'lib/aruba/initializer.rb'
252
-
253
- # Offense count: 7
254
- # Cop supports --auto-correct.
255
- # Configuration parameters: MinSize.
256
- # SupportedStyles: percent, brackets
257
- Style/SymbolArray:
258
- EnforcedStyle: brackets
data/.simplecov DELETED
@@ -1,34 +0,0 @@
1
- # Run simplecov by default
2
- SimpleCov.start unless ENV.key? 'ARUBA_NO_COVERAGE'
3
-
4
- SimpleCov.configure do
5
- # ignore this file
6
- add_filter '.simplecov'
7
- add_filter 'spec'
8
- add_filter 'features'
9
-
10
- # Rake tasks aren't tested with rspec
11
- add_filter 'Rakefile'
12
- add_filter 'lib/tasks'
13
-
14
- #
15
- # Changed Files in Git Group
16
- # @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
17
- untracked = `git ls-files --exclude-standard --others`
18
- unstaged = `git diff --name-only`
19
- staged = `git diff --name-only --cached`
20
- all = untracked + unstaged + staged
21
- changed_filenames = all.split("\n")
22
-
23
- add_group 'Changed' do |source_file|
24
- changed_filenames.select do |changed_filename|
25
- source_file.filename.end_with?(changed_filename)
26
- end
27
- end
28
-
29
- add_group 'Libraries', 'lib'
30
-
31
- # Specs are reported on to ensure that all examples are being run and all
32
- # lets, befores, afters, etc are being used.
33
- add_group 'Specs', 'spec'
34
- end