Commit 29b3f6f
committed
Reject non-dictionary stringsdict entries with a clear error
`read` checked only that the plist root is a dictionary, so a file whose
entry value wasn't a dictionary (e.g. a key mapped to a string) slipped
through and crashed later in `plural_variables` with a cryptic
`NoMethodError: private method 'select' called for String`. Validate each
entry up front and raise the same clean `UI.user_error!` the root check
uses, naming the offending key.1 parent add6d13 commit 29b3f6f
2 files changed
Lines changed: 19 additions & 1 deletion
File tree
- lib/fastlane/plugin/wpmreleasetoolkit/helper/ios
- spec
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
| |||
0 commit comments