9edf9c0643
libimagentryfilter: Import toml::Value extensions
2017-02-05 13:10:39 +01:00
f1c1a1f9be
Eliminate EntryHeader type
...
Therefor introduce the "Header" trait which is implemented on Value for
backwards compatibility.
Make the default_header() function publicly available as
Entry::default_header()
2017-02-05 13:10:38 +01:00
4c81b36237
Remove unused import in libimagentryfilter
2017-02-04 10:51:51 +01:00
ed8e479bc6
libimagentryfilter: Add copyright notice to all files
2016-10-01 17:35:06 +02:00
Gavin Thomas Claugus
bc4cb6cdc8
libimagentryfilter: Delete old filter lib
...
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-08-14 15:18:39 -04:00
Gavin Thomas Claugus
0b94490e81
libimagentryfilter: Update VersionInRange
...
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-08-14 15:17:30 -04:00
Gavin Thomas Claugus
381cec0cca
libimagentryfilter: parameterize Filter by Entry
...
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-08-14 15:17:30 -04:00
Gavin Thomas Claugus
0e4079287a
libimagentryfilter: Update use stmts for filters
...
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-08-13 12:11:19 -04:00
Gavin Thomas Claugus
fda1c94bee
libimagentryfilter: Add filters crate to lib.rs
...
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-08-13 12:10:43 -04:00
79c1edcbd1
Add BoolFilter
2016-07-31 12:18:07 +02:00
Andre Bogus
dfd6a9b0d3
style adaptations
...
these were introduced following suggestions from
https://crates.io/crate/clippy
2016-05-13 22:26:48 +02:00
d0271576bb
Enable lints
2016-04-17 20:50:59 +02:00
04b59e789f
Remove unused import
2016-04-17 20:50:54 +02:00
6edae00d1a
Fix names: libimagtag -> libimagentrytag
2016-04-16 22:33:37 +02:00
98dde5d0d1
Add filter: VersionInRange, VersionOutOfRange
2016-03-18 14:33:43 +01:00
21013dd76f
Add filter: Version{Gt, Lt}
2016-03-18 14:33:43 +01:00
d75595e4d8
Add VersionEq filter
2016-03-18 14:33:43 +01:00
0786094150
Add dep: semver
2016-03-18 14:33:25 +01:00
fb35a5a2c7
Merge pull request #220 from matthiasbeyer/libimagentryfilter/tags
...
Libimagentryfilter/tags
2016-03-18 10:33:58 +01:00
89c34e74ef
Fix semantics if is-empty filter
2016-03-13 20:23:47 +01:00
Kai Sickeler
0a94160895
Add field_grep filter
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2016-03-12 18:22:00 +01:00
564d8d84fe
Reimplement FieldIsType filter with FieldPredicate filter
2016-03-12 15:06:34 +01:00
f86a8968a4
Reimplement FieldEq with FieldPredicate
2016-03-12 15:06:34 +01:00
c76d654f9b
Add field_lt filter
2016-03-12 15:06:34 +01:00
7b9f8dc8ad
Add field_gt filter
2016-03-12 15:06:33 +01:00
4de014c41a
Add field_predicate filter
2016-03-12 15:06:33 +01:00
6c50d88669
Add tag filtering
2016-03-11 15:13:34 +01:00
fbccce7b7c
Add dep: libimagtag
2016-02-29 20:41:58 +01:00
45f3ea97bf
Remove unused imports
2016-02-24 15:16:12 +01:00
75b6a700e5
Reimplement filters with EntryHeader::read()
...
Therefor:
- Remove field_path submodule
- pub type FieldPath = String
2016-02-13 14:15:26 +01:00
a00092c8be
Add builtin content filter: length filtering
2016-02-07 01:45:09 +01:00
f81190fb8a
Add builtin content filter: grep
2016-02-07 01:45:09 +01:00
bcf8cf0447
Add builtin header check: Field is empty
2016-02-07 01:45:06 +01:00
780410f29d
Add builtin header check: Field exists
2016-02-07 01:44:42 +01:00
12443f631b
Add builtin header check: Field is type
2016-02-03 16:39:05 +01:00
34e62aaade
Implement {and,or}_not() variants
2016-02-03 16:39:05 +01:00
d4cee5459f
Implement 3-{and,or} variants
2016-02-03 16:39:05 +01:00
41564a7d8e
Add filter: header::field_grep::FieldGrep
2016-02-03 16:39:05 +01:00
0dc88877c6
Implement FieldPath::walk()
2016-02-03 16:39:04 +01:00
012ca4a427
Initialize structure for header builtins
2016-02-03 16:39:04 +01:00
0fb331f25a
Add Filter trait and operators
2016-02-02 17:17:27 +01:00
10050db42f
Add initial file structure
2016-02-02 17:17:27 +01:00
cb17e6a4c5
Add initial dependencies
2016-02-02 17:17:26 +01:00
fcbc020083
libimagentryfilter: init
2016-02-02 14:06:00 +01:00