Commit 8341983
Prevent root_dir option from being empty (#448)
* Prevent root_dir option from being empty
When setting root_dir to an empty string (as is done in the default rake
task config) this line previously caused root_dir to become an empty
array.
This in turn caused factories, specs etc not to be annotated.
This is just a quick band-aid on a larger problem. We have option
parsing spread out over many different places, with slight mismatches
like this in the assumptions made.
* Handle blank values & comma-separated strings in AnnotateModels.root_dir
These cases are currently handled (inconsistently) in the different
option parsing routines.
* Pass root_dir forward unmodified
The different cases are now handled inside AnnotateModels1 parent 82a2c40 commit 8341983
File tree
3 files changed
+8
-3
lines changed- lib
- annotate
- tasks
3 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments