Jordan Petridis
79ac3b9700
Update dependancies
2018-08-18 18:33:26 +03:00
Jordan Petridis
7a3178896b
Remove criterion
...
Haven't been able to use it effectivly with futures. Maybe will
revisit it again at a later time. For now it just adds extra
build time.
2018-08-18 18:02:28 +03:00
Jordan Petridis
89b99614a0
Refactor the tests to use ? operator
...
As of ructc 1.27 #[test] can return errors. This improves a great
deal the ergonomics.
2018-08-18 17:02:31 +03:00
Jordan Petridis
3abe0803d6
Source: Remove reduntant save() call
...
Source::clear_etags does a save already, so it's not needed to call
it twice.
2018-08-17 09:57:49 +03:00
Jordan Petridis
489e8aa4b3
Source: Improve http redirections handling
...
We should follow all redirects, and update the Source uri for
301, 302 and 308 codes.
Closes #85
2018-08-17 07:09:12 +03:00
Jordan Petridis
49aff9f22e
Source: Only save Etag headers upon succesful requests
...
Additionally clear the Etags if the returned code is not 200 or 304.
Just to be extra safe. This is not as clean as it should, as this is
a temporary workaround until the API is reworked.
Related to #64
2018-08-17 05:36:34 +03:00
Jordan Petridis
cc1a5783fd
App: Do not update the db if its empty
...
If the source table is empty skipp the database refresh.
2018-08-14 15:19:31 +03:00
Jordan Petridis
03754c56c6
Fix the test-suite
2018-08-14 13:40:37 +03:00
Jordan Petridis
471f6ff93b
Source: Remove ignore_etags option
...
This is never used anywhere else apart from the testsuite. Instead
of ignoring etags we should instead not save them if the feed does
not return 200 or 304. See #64 .
2018-08-14 13:40:33 +03:00
Jordan Petridis
c53ad56a6d
Remove TODOs and FIXMEs
...
They are either no longer relevant or just forgotten
2018-08-14 13:40:28 +03:00
Jordan Petridis
f6c7731377
Fix Rust 2018 edition warnings
2018-08-05 11:24:20 +03:00
Jordan Petridis
f695ba4605
cargo fmt
2018-08-02 07:10:22 +03:00
Jordan Petridis
132c9bbdff
ShowModel: Remove dead unused methods.
2018-07-30 23:23:58 +03:00
Jordan Petridis
cc0caff8d0
EpisodeModels: Remove unused methods.
2018-07-30 23:20:10 +03:00
Jordan Petridis
83c44aa12c
Replace links again
2018-07-26 07:41:43 +03:00
Jordan Petridis
53be091a31
Replace links
2018-07-25 03:26:41 +03:00
Jordan Petridis
04c68ba013
Initial massive renaming.
2018-07-25 03:26:35 +03:00