Commit Graph
100 Commits
Author SHA1 Message Date
Jordan Petridis 76f9f36609 Document Source Model. 2017-11-28 09:01:38 +02:00
Jordan Petridis 4d669ef297 Document Podcast Model. 2017-11-28 08:40:27 +02:00
Jordan Petridis 3707b70b41 Document Episode Model. 2017-11-28 08:25:04 +02:00
Jordan Petridis d81f9c6ad7 Fixed stable unit tests. 2017-11-28 04:42:15 +02:00
Jordan Petridis 34e808182c Documented a bit hammond-data/src/feed.rs. 2017-11-27 06:06:14 +02:00
Jordan Petridis c4030e51df Added some doc comments in hammond-data/src/utils.rs. 2017-11-27 05:25:16 +02:00
Jordan Petridis cb65782829 Extended the NewModel builder and added a bunch of unit tests. 2017-11-27 04:32:21 +02:00
Jordan Petridis ee4f08c5cf Implemented a BuildPattern for NewModels. Swiched stuff to pub(crate).
Added a Constructor for NewModels in order to make their fields private.
Also added getter methods that are mainly used in Unit tests.
2017-11-26 23:30:56 +02:00
Jordan Petridis 9e03aaae27 Upgrade gtk-rs crates. 2017-11-26 21:25:46 +02:00
Jordan Petridis 866904a687 Use generic IntoIterator instead of &[foo] slices. 2017-11-26 07:03:21 +02:00
Jordan Petridis 9d0df9de46 Tweak cargo privacy settings. 2017-11-26 06:21:14 +02:00
Jordan Petridis 7eff93ecf1 Remove rand from the downloader. 2017-11-26 03:47:43 +02:00
Jordan Petridis 6336f7cac1 Moved update funtions into a Trait and impl for NewModels. 2017-11-26 00:56:38 +02:00
Jordan Petridis 39dff5e27a Moved insert functions into an Insert trait and implemented it for each NewModel. 2017-11-26 00:40:03 +02:00
Jordan Petridis ce3a76aee1 Update episode rows instead of replacing them. 2017-11-26 00:13:51 +02:00
Jordan Petridis 39cccf85a5 Change the ci config. 2017-11-25 18:50:32 +02:00
Jordan Petridis 2f801043c1 In place update a podcast row instead of replace. 2017-11-25 18:22:56 +02:00
Jordan Petridis f83f894e44 Replaced pool.get().unwrap() statements with get()?. 2017-11-25 03:29:06 +02:00
Jordan Petridis f0a0fdfa83 Added a truncate_db helper function. 2017-11-25 03:01:21 +02:00
Jordan Petridis 7498a37f68 Fixed unit test. 2017-11-25 02:19:16 +02:00
Jordan Petridis faab32ba17 Fix podcast flowbox_child title label. 2017-11-25 02:00:37 +02:00
Jordan Petridis 62da8bbb52 Use source_id as the unique identifieble field for the podcast table. 2017-11-25 01:56:10 +02:00
Jordan Petridis 12ffe5c231 Use a db transaction when deleting a feed. 2017-11-24 20:40:32 +02:00
Jordan Petridis d9ef4fed53 Truncate the temp db before running test_complete_index. Should close #17. 2017-11-24 20:31:10 +02:00
Jordan Petridis 4a195eb1b7 Moved set_played_now into a method of the Episode model. 2017-11-24 19:48:20 +02:00
Jordan Petridis f7f0a16858 Minor cleanup. 2017-11-24 19:28:34 +02:00
Jordan Petridis 91f4a30c01 Moved episode indexing into a transaction. 2017-11-23 21:30:17 +02:00
Jordan Petridis 5570fdd118 Switched to using r2d2 instead of a databaseConnection object. 2017-11-23 21:09:50 +02:00
Jordan Petridis aa7c493e81 hammond-data/src/feed.rs api changes. 2017-11-23 18:48:41 +02:00
Jordan Petridis a58671ea9a Moved database related things into their own module. 2017-11-22 21:54:09 +02:00
Jordan Petridis 02b27d33b6 Move XDG global variables into their own module. 2017-11-22 21:07:21 +02:00
Jordan Petridis 6098f0f54a Banner fix? Closes #14. 2017-11-22 10:44:32 +02:00
Jordan Petridis 3bcb23b39a Redefine NewModels to hold Option<String> instead of Option<&str>. 2017-11-22 09:53:52 +02:00
Jordan Petridis 31328355b1 Methods renaming, Api changes. 2017-11-22 06:25:34 +02:00
Jordan Petridis 9bc6df2cba Made Disel NewModels private. 2017-11-22 05:50:25 +02:00
Jordan Petridis ee7c5ca26e Use bail! instead of panic!. 2017-11-20 22:23:04 +02:00
Jordan Petridis 7be0b5bbf8 Added a url cleanr. Closes #4. 2017-11-20 22:06:29 +02:00
Jordan Petridis 5890fe2bb4 Moved all diesel queries into hammond-data/src/dbquerries.rs module. 2017-11-20 20:05:00 +02:00
Jordan Petridis 0ce4107be4 Revert back to using an Arc<Mutex<Connection>> instead of the pool. 2017-11-20 18:09:53 +02:00
Jordan Petridis ce29602431 I hate everything. 2017-11-20 16:57:27 +02:00
Jordan Petridis e07683c046 partially-fixed the tests and benchmarks. 2017-11-20 01:08:34 +02:00
Jordan Petridis 5ad52fa4b2 Refactored to remove from Database refferences. 2017-11-19 23:32:37 +02:00
Jordan Petridis beaeeffba8 Refactored dbquerries.
Refactored so dbquerries.rs module *should* be the only piece of code
that interacts with a Database connection. Insert stuff will be moved too.
2017-11-19 23:08:36 +02:00
Jordan Petridis 47b32ac000 Removed the Database type alias. 2017-11-19 22:39:51 +02:00
Jordan Petridis 55442529a8 Initial switch to using r2d2. 2017-11-19 22:06:10 +02:00
Jordan Petridis 052988a2b1 Update dependancies. 2017-11-19 18:14:56 +02:00
Jordan Petridis a6dbf65575 Move stuff from hammond_data/src/lib.rs into utils. 2017-11-18 20:55:19 +02:00
Jordan Petridis 563f249a48 Reverted index_channel items to the synchronous version.
Using a transaction yields ~1/3 better performance as of now.
2017-11-18 19:57:50 +02:00
Jordan Petridis 5c84b77434 Converted iter_mut into into_iter wherever possible. 2017-11-18 19:23:25 +02:00
Jordan Petridis 494761beaf Removed id function from diesel models.
It's automaticly declared upon derive identifiable,
And there's no need to overwrite it.
2017-11-18 15:23:40 +02:00
Jordan Petridis 1bf5187e48 Renamed hammond-data/src/feedparser.rs module into parser.rs. 2017-11-18 15:05:55 +02:00
Jordan Petridis 6894f33895 Renamed hammond-data/src/index_feeds.rs module into feed.rs. 2017-11-18 14:32:58 +02:00
Jordan Petridis 450643371c Renamed index_feeds and fetch_feeds functions. 2017-11-18 14:24:52 +02:00
Jordan Petridis 1ec4370c7b Moved Database type-alias into hammond-data/src/lib.rs. 2017-11-17 21:37:55 +02:00
Jordan Petridis e66a337468 Moved indexing episode into a NewEpisode method.
There is a performance reggresion caused by the introduction of
Arc<Mutex<Connection>> instead of Connection that should be refactored.

Also removed the db transcaction as it was incomplete.
2017-11-17 20:01:59 +02:00
Jordan Petridis 282a29e7dd Move some indexing functions into methods of insertable models. 2017-11-17 18:58:44 +02:00
Jordan Petridis 8eca46871d Moved insert_return functions into methods of insertable models. 2017-11-17 18:10:29 +02:00
Jordan Petridis 2152aa9034 Convert Feed struct-tuple into a plain struct. 2017-11-17 16:24:48 +02:00
Jordan Petridis 3d108d4a7a Make Feed fields private. 2017-11-17 16:12:11 +02:00
Jordan Petridis 54a0f17588 Initial draft of hammond-data/src/index_feed.rs API redesign. 2017-11-17 13:26:39 +02:00
Jordan Petridis 3c6176b1c0 Renamed hammond-data/src/dbcheckup.rs into utils.rs 2017-11-16 23:32:40 +02:00
Jordan Petridis e2403255cf Updated Readme and TODO. 2017-11-16 00:40:59 +02:00
Jordan Petridis cfb876e006 Split hammond-data/models into sub modules. 2017-11-15 17:42:22 +02:00
Jordan Petridis 118846f255 Added extra columns to podcast and episode tables. 2017-11-15 16:58:21 +02:00
Jordan Petridis 8b4701f1a1 Renamed Gresource path in order to be less confusing. 2017-11-15 14:55:26 +02:00
Jordan Petridis a286014a62 Refactored indexing functions of the Diesel models. 2017-11-14 17:56:28 +02:00
Jordan Petridis 6996759db5 Removed the file open syscall from the benchmark. 2017-11-14 15:02:32 +02:00
Jordan Petridis 58e11f17b7 Use bigger rss feeds for benchmarking. 2017-11-14 14:49:43 +02:00
Jordan Petridis edd694e7d6 Added initial feed indexing benchmark. 2017-11-14 14:09:13 +02:00
Jordan Petridis 03637903c6 Update dependancies. 2017-11-14 13:06:09 +02:00
Jordan Petridis ab002ebcd7 Kinda have copied the whole Contributing file from gnome-TODO. 2017-11-13 19:28:22 +02:00
Jordan Petridis 1e45adc034 Added some comments into the downloader module. 2017-11-13 18:48:37 +02:00
Jordan Petridis 4bf84ed170 Copied the boards layout and issue temlates from GNOME TODO 2017-11-13 17:37:44 +02:00
Jordan Petridis e3f0263dc0 Added appdata.xml and moved .desktop into hammond-gtk/resources. 2017-11-13 17:34:16 +02:00
Jordan Petridis 0d5a05b802 Merge branch 'flatpak' into 'master'
Close #12.

Flatpak Runtime crash fix.

See merge request alatiera/Hammond!2
2017-11-13 13:39:56 +00:00
Jordan Petridis b042205a3b Flatpak Runtime crash fix.
The application was trying to register a name different than the one
declared in the flatpak manifest.

Changin the name to org.gnome.Hammond like on manifest should fix it.
2017-11-13 15:06:56 +02:00
Jordan Petridis c304588228 Updated Readme. 2017-11-13 13:14:35 +02:00
Jordan Petridis 4f23c4cd7f Improved the match of mime-types to file-extensions. 2017-11-13 13:02:50 +02:00
Jordan Petridis 04ecb6fb7f Updated Contributing.md and Added an achnoledment section to the Readme. 2017-11-13 11:53:38 +02:00
Jordan Petridis be7b89dffb NOT WORKING. Intial flatpak manifest. 2017-11-13 10:23:05 +02:00
Jordan Petridis c2d0254a06 Initial draft of contributing.md. 2017-11-13 09:47:09 +02:00
Jordan Petridis f635f60ad8 Updated .gitlab-ci.yml 2017-11-12 14:35:29 +02:00
Jordan Petridis 23fb297200 Downloads now use temp folders. 2017-11-11 17:13:08 +02:00
Jordan Petridis 2339b4db45 Merge branch 'wip/meson' into 'master'
Build with meson.

See merge request alatiera/Hammond!1
2017-11-11 14:06:15 +00:00
Jordan Petridis 49bf8f3d04 Disabled meson builds from the ci. 2017-11-11 15:34:46 +02:00
Jordan Petridis 4e4a9d799a Added meson build into the gitlab-ci. 2017-11-11 14:47:22 +02:00
Jordan Petridis b39f635cf5 Updated readme. 2017-11-11 14:39:03 +02:00
Jordan Petridis 021f616aef Added make release option. 2017-11-11 14:30:29 +02:00
Jordan Petridis 825f751bc2 .desktop file fix. 2017-11-11 13:38:09 +02:00
Jordan Petridis 1199c9aa81 Now building with meson. 2017-11-11 13:29:11 +02:00
Jordan Petridis bc6da31178 Initial meson build. 2017-11-10 17:53:09 +02:00
Jordan Petridis b82e4c8932 Home button tweak. 2017-11-10 16:25:40 +02:00
Jordan Petridis f2476cde65 Refactored empty view logic. 2017-11-10 16:15:53 +02:00
Jordan Petridis fe571df1d5 Changed the XDG folder from Hammond to hammond, Added make tar. 2017-11-10 14:09:05 +02:00
Jordan Petridis acd2f1411e Cover image caching fix. 2017-11-10 13:30:06 +02:00
Jordan Petridis d46c3716b4 Close #11, Added notes for manual installation. 2017-11-10 12:54:09 +02:00
Jordan Petridis 8f020c92c0 Added .desktop and an initial Makefile. 2017-11-10 12:37:42 +02:00
Jordan Petridis 1fbacad8b9 Updated rayon. 2017-11-10 11:42:11 +02:00
Jordan Petridis d3beb30f00 Closed #5. Proper guessing of the file extension from the mime-type. 2017-11-10 11:35:58 +02:00
Jordan Petridis ba97dbf5df Not sure if this makes #5 better or worse. 2017-11-09 20:50:26 +02:00