add 2.5.0 support
This commit is contained in:
parent
41c617c091
commit
8517e2dc58
@ -26,12 +26,12 @@ matrix:
|
||||
- php: 5.6
|
||||
env: TASKWARRIOR=2.4.3
|
||||
- php: 5.6
|
||||
env: TASKWARRIOR=2.5.0.beta1
|
||||
env: TASKWARRIOR=2.5.0.beta2
|
||||
allow_failures:
|
||||
- php: 7
|
||||
- php: hhvm
|
||||
- php: 5.6
|
||||
env: TASKWARRIOR=2.5.0.beta1
|
||||
env: TASKWARRIOR=2.5.0.beta2
|
||||
|
||||
before_install:
|
||||
- composer self-update
|
||||
|
Binary file not shown.
BIN
build/taskwarrior-2.5.0.beta2
Executable file
BIN
build/taskwarrior-2.5.0.beta2
Executable file
Binary file not shown.
@ -63,6 +63,7 @@ class Taskwarrior
|
||||
'rc:' . $this->taskrc,
|
||||
'rc.data.location=' . $this->taskData,
|
||||
'rc.json.array=true',
|
||||
'rc.json.depends.array=false',
|
||||
'rc.confirmation=no',
|
||||
),
|
||||
$rcOptions
|
||||
@ -152,7 +153,38 @@ class Taskwarrior
|
||||
$tags = $this->parseResult($result);
|
||||
|
||||
return array_values(array_filter($tags, function ($value) {
|
||||
return !in_array($value, ['next', 'nocal', 'nocolor', 'nonag']);
|
||||
return !in_array($value, [
|
||||
"ACTIVE",
|
||||
"ANNOTATED",
|
||||
"BLOCKED",
|
||||
"BLOCKING",
|
||||
"CHILD",
|
||||
"COMPLETED",
|
||||
"DELETED",
|
||||
"DUE",
|
||||
"DUETODAY",
|
||||
"MONTH",
|
||||
"ORPHAN",
|
||||
"OVERDUE",
|
||||
"PARENT",
|
||||
"PENDING",
|
||||
"READY",
|
||||
"SCHEDULED",
|
||||
"TAGGED",
|
||||
"TODAY",
|
||||
"TOMORROW",
|
||||
"UDA",
|
||||
"UNBLOCKED",
|
||||
"UNTIL",
|
||||
"WAITING",
|
||||
"WEEK",
|
||||
"YEAR",
|
||||
"YESTERDAY",
|
||||
"next",
|
||||
"nocal",
|
||||
"nocolor",
|
||||
"nonag"
|
||||
]);
|
||||
}));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user