From 8f6329d71d5bce2155514eba2a818b7b1f0d88bc Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sun, 4 Nov 2018 05:07:37 +0200 Subject: [PATCH] podcasts-data: Add per file license annotations --- podcasts-data/src/database.rs | 20 ++++++++++++++++++++ podcasts-data/src/dbqueries.rs | 20 ++++++++++++++++++++ podcasts-data/src/errors.rs | 20 ++++++++++++++++++++ podcasts-data/src/feed.rs | 20 ++++++++++++++++++++ podcasts-data/src/lib.rs | 20 ++++++++++++++++++++ podcasts-data/src/models/episode.rs | 20 ++++++++++++++++++++ podcasts-data/src/models/mod.rs | 20 ++++++++++++++++++++ podcasts-data/src/models/new_episode.rs | 20 ++++++++++++++++++++ podcasts-data/src/models/new_show.rs | 20 ++++++++++++++++++++ podcasts-data/src/models/new_source.rs | 20 ++++++++++++++++++++ podcasts-data/src/models/show.rs | 20 ++++++++++++++++++++ podcasts-data/src/models/source.rs | 20 ++++++++++++++++++++ podcasts-data/src/opml.rs | 20 ++++++++++++++++++++ podcasts-data/src/parser.rs | 20 ++++++++++++++++++++ podcasts-data/src/pipeline.rs | 20 ++++++++++++++++++++ podcasts-data/src/utils.rs | 20 ++++++++++++++++++++ 16 files changed, 320 insertions(+) diff --git a/podcasts-data/src/database.rs b/podcasts-data/src/database.rs index 440643b..6869284 100644 --- a/podcasts-data/src/database.rs +++ b/podcasts-data/src/database.rs @@ -1,3 +1,23 @@ +// database.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + //! Database Setup. This is only public to help with some unit tests. // Diesel embed_migrations! triggers the lint #![allow(unused_imports)] diff --git a/podcasts-data/src/dbqueries.rs b/podcasts-data/src/dbqueries.rs index be2349e..4df09b4 100644 --- a/podcasts-data/src/dbqueries.rs +++ b/podcasts-data/src/dbqueries.rs @@ -1,3 +1,23 @@ +// dbqueries.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + //! Random CRUD helper functions. use chrono::prelude::*; diff --git a/podcasts-data/src/errors.rs b/podcasts-data/src/errors.rs index c24e05b..a60ebc6 100644 --- a/podcasts-data/src/errors.rs +++ b/podcasts-data/src/errors.rs @@ -1,3 +1,23 @@ +// errors.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use diesel; use diesel::r2d2; use diesel_migrations::RunMigrationsError; diff --git a/podcasts-data/src/feed.rs b/podcasts-data/src/feed.rs index adcf48a..4a73a74 100644 --- a/podcasts-data/src/feed.rs +++ b/podcasts-data/src/feed.rs @@ -1,3 +1,23 @@ +// feed.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + #![cfg_attr(feature = "cargo-clippy", allow(unit_arg))] //! Index Feeds. diff --git a/podcasts-data/src/lib.rs b/podcasts-data/src/lib.rs index 6c54454..74142cf 100644 --- a/podcasts-data/src/lib.rs +++ b/podcasts-data/src/lib.rs @@ -1,3 +1,23 @@ +// lib.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + #![recursion_limit = "1024"] #![allow(unknown_lints)] #![cfg_attr( diff --git a/podcasts-data/src/models/episode.rs b/podcasts-data/src/models/episode.rs index 5028888..4d50490 100644 --- a/podcasts-data/src/models/episode.rs +++ b/podcasts-data/src/models/episode.rs @@ -1,3 +1,23 @@ +// episode.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use chrono::prelude::*; use diesel; use diesel::prelude::*; diff --git a/podcasts-data/src/models/mod.rs b/podcasts-data/src/models/mod.rs index 260922b..cea90a4 100644 --- a/podcasts-data/src/models/mod.rs +++ b/podcasts-data/src/models/mod.rs @@ -1,3 +1,23 @@ +// mod.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + mod new_episode; mod new_show; mod new_source; diff --git a/podcasts-data/src/models/new_episode.rs b/podcasts-data/src/models/new_episode.rs index dd240bc..609823b 100644 --- a/podcasts-data/src/models/new_episode.rs +++ b/podcasts-data/src/models/new_episode.rs @@ -1,3 +1,23 @@ +// new_episode.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use ammonia; use diesel; use diesel::prelude::*; diff --git a/podcasts-data/src/models/new_show.rs b/podcasts-data/src/models/new_show.rs index a275b68..cc799b8 100644 --- a/podcasts-data/src/models/new_show.rs +++ b/podcasts-data/src/models/new_show.rs @@ -1,3 +1,23 @@ +// new_show.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use ammonia; use diesel; use diesel::prelude::*; diff --git a/podcasts-data/src/models/new_source.rs b/podcasts-data/src/models/new_source.rs index a5cf92c..e8fdec8 100644 --- a/podcasts-data/src/models/new_source.rs +++ b/podcasts-data/src/models/new_source.rs @@ -1,3 +1,23 @@ +// new_source.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use diesel; use diesel::prelude::*; use url::Url; diff --git a/podcasts-data/src/models/show.rs b/podcasts-data/src/models/show.rs index 6fc4bba..44095d3 100644 --- a/podcasts-data/src/models/show.rs +++ b/podcasts-data/src/models/show.rs @@ -1,3 +1,23 @@ +// show.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use models::Source; use schema::shows; diff --git a/podcasts-data/src/models/source.rs b/podcasts-data/src/models/source.rs index 7a36f43..6cd2547 100644 --- a/podcasts-data/src/models/source.rs +++ b/podcasts-data/src/models/source.rs @@ -1,3 +1,23 @@ +// source.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use diesel::SaveChangesDsl; // use failure::ResultExt; use rss::Channel; diff --git a/podcasts-data/src/opml.rs b/podcasts-data/src/opml.rs index b195543..78c662d 100644 --- a/podcasts-data/src/opml.rs +++ b/podcasts-data/src/opml.rs @@ -1,3 +1,23 @@ +// opml.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + //! FIXME: Docs // #![allow(unused)] diff --git a/podcasts-data/src/parser.rs b/podcasts-data/src/parser.rs index 116dcd5..eeac4a1 100644 --- a/podcasts-data/src/parser.rs +++ b/podcasts-data/src/parser.rs @@ -1,3 +1,23 @@ +// parser.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + use rss::extension::itunes::ITunesItemExtension; /// Parses an Item Itunes extension and returns it's duration value in seconds. diff --git a/podcasts-data/src/pipeline.rs b/podcasts-data/src/pipeline.rs index 475a90d..54f07c1 100644 --- a/podcasts-data/src/pipeline.rs +++ b/podcasts-data/src/pipeline.rs @@ -1,3 +1,23 @@ +// pipeline.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + // FIXME: //! Docs. diff --git a/podcasts-data/src/utils.rs b/podcasts-data/src/utils.rs index 115e95f..55f9946 100644 --- a/podcasts-data/src/utils.rs +++ b/podcasts-data/src/utils.rs @@ -1,3 +1,23 @@ +// utils.rs +// +// Copyright 2017 Jordan Petridis +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// SPDX-License-Identifier: GPL-3.0-or-later + + //! Helper utilities for accomplishing various tasks. use chrono::prelude::*;