Commit graph

33 commits

Author SHA1 Message Date
87ee509dc0 Prepare for annotations implementation
This patch changes the `libimagentrylink` internals to use a

    enum { Id(StoreId), Annotated(StoreId, String) }

as Link type.

In this patch, changes were made to be able to compile the code, but
tests might fail and other crates might fail as well.
2017-04-21 21:08:56 +02: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
3e426b87cf Fix docu typo 2016-12-05 17:17:26 +01:00
db17b4f858 Rewrite ExternalLinker::get_external_links() to return iterator 2016-10-19 13:03:17 +02:00
3aa05c3ecc Add warning on type names 2016-10-19 13:03:17 +02:00
4ca501c03e Add SelectExternal LinkIter extension trait 2016-10-19 13:03:17 +02:00
647f25a904 Add module documentation 2016-10-19 13:03:17 +02:00
378951a16b Add module external::iter 2016-10-19 13:03:17 +02:00
02a2034d8b Fix usage of libimagentrylink interface 2016-10-14 13:27:06 +02:00
2db79ada71 libimagentrylink: Add copyright notice to all files 2016-10-01 17:35:06 +02:00
1dfe877cd9 Fix typo in is_external_link_storeid() helper fn 2016-09-05 18:52:42 +02:00
c23a11060f Add debug output 2016-09-05 18:51:35 +02:00
2956df81f1 Fix: We save the url at imag.content.url, not imag.content.uri 2016-09-05 18:49:12 +02:00
ccffeb91a2 Remove StoreId::is_in_collection(), add StoreId::local()
Having a ::is_in_collection() is a nice thing, though it is _way_ better
if we just give the user of the `StoreId` object access to the local
part of the ID.

Using this new function, one can do all the actions one might need on
the Path for the actual entry without nasty copying or such.

`StoreId::is_in_collection()` can be replaced by
`StoreId::local().starts_with()` and everything is fine, as we do not
have to move a `PathBuf` object into the function anymore.
2016-09-04 10:40:38 +02:00
4da331f990 Use new StoreId::is_in_collection() interface 2016-09-02 17:16:03 +02:00
d594b7c6a2 Reimplement libimagentrylink::external::is_external_link_storeid() using StoreId::is_in_collection() 2016-08-31 09:20:08 +02:00
aeb95b1e11 Fix libimagentrylink::external::* for new StoreId interface 2016-08-28 18:41:55 +02:00
f46e8ac597 Replace unwrap with try!() 2016-08-03 11:27:25 +02:00
6f07359416 Merge pull request #534 from matthiasbeyer/libimagentrylink/tmp-fix-external-link-checking
Temporary fix: Check whether an StoreId is an external link by str::c…
2016-07-15 11:21:44 +02:00
John Sirois
a1bf76ed79 Remove unused Link::retrieve helper. 2016-07-14 20:07:30 -06:00
3f2ababdb0 Add more robust version of is_external_link_storeid() helper function 2016-07-14 21:27:36 +02:00
1dd40ca8b9 Temporary fix: Check whether an StoreId is an external link by str::contains()
This is a temporary fix as long as we do not have a clear model how we
handle internal/external StoreId types
2016-07-14 21:04:46 +02:00
f542fafec2 Remove unneccessary block 2016-06-14 11:35:42 +02:00
8c7ca95af1 Remove if-else by map() 2016-06-14 11:35:42 +02:00
0f52900456 Add missing keyword "pub" for Link type 2016-05-26 22:08:27 +02:00
Andre Bogus
981707c9c9 more style adaptations
again following clippy
2016-05-13 22:27:53 +02:00
bf878c9245 Merge pull request #394 from matthiasbeyer/libimagentrylink/make-external-link-id-filter-helper-pub
Rename and make public: is_link_store_id() -> is_external_link_storeid()
2016-05-13 14:42:07 +02:00
86f3119dd5 Update dependency: url: 0.5.5 -> 1.1 2016-05-12 17:31:46 +02:00
7c9e52c25e Rename and make public: is_link_store_id() -> is_external_link_storeid() 2016-05-12 17:12:40 +02:00
b629d0b8f1 Merge pull request #367 from matthiasbeyer/unwrap_err
Unwrap err
2016-04-21 15:08:36 +02:00
e0988c5f76 Remove unneeded deref() call 2016-04-21 13:19:37 +02:00
5d2950b7df libimagentrylink: Replace .err().unwrap() with .unwrap_err() 2016-04-20 21:45:27 +02:00
33aa56019f libimaglink -> libimagentrylink 2016-04-17 12:22:13 +02:00
Renamed from libimaglink/src/external.rs (Browse further)