diff -Nru gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/debian/changelog gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/debian/changelog --- gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/debian/changelog 2018-05-05 14:15:12.000000000 +0000 +++ gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/debian/changelog 2018-10-04 13:18:25.000000000 +0000 @@ -1,8 +1,8 @@ -gsignond-plugin-mail (0.2.0~r3+pkg2~daily~ubuntu5.0.1) bionic; urgency=low +gsignond-plugin-mail (0.2.0~r7+pkg2~daily~ubuntu5.0.1) bionic; urgency=low * Auto build. - -- Corentin Noël Sat, 05 May 2018 14:15:12 +0000 + -- Launchpad Package Builder Thu, 04 Oct 2018 13:18:25 +0000 gsignond-plugin-mail (0.2.0) unstable; urgency=low diff -Nru gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/debian/git-build-recipe.manifest gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/debian/git-build-recipe.manifest --- gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/debian/git-build-recipe.manifest 2018-05-05 14:15:12.000000000 +0000 +++ gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/debian/git-build-recipe.manifest 2018-10-04 13:18:25.000000000 +0000 @@ -1,3 +1,3 @@ -# git-build-recipe format 0.4 deb-version {debupstream}~r3+pkg2~daily -lp:gsignond-plugin-mail git-commit:523fc27f4e1b1bc51e0115528291270a79194dbf +# git-build-recipe format 0.4 deb-version {debupstream}~r7+pkg2~daily +lp:gsignond-plugin-mail git-commit:fbc6f34b246fec4ad2b37c696f8de7fdb9bde346 nest-part packaging lp:gsignond-plugin-mail debian debian git-commit:53b8ad047d8b8265731d392b3fded1c7e6dc8381 diff -Nru gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/.gitlab-ci.yml gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/.gitlab-ci.yml --- gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/.gitlab-ci.yml 2018-05-05 14:15:11.000000000 +0000 +++ gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/.gitlab-ci.yml 2018-10-04 13:18:24.000000000 +0000 @@ -1,4 +1,4 @@ -image: fedora:26 +image: fedora:28 cache: key: dnf-cache @@ -9,7 +9,7 @@ BUILDTOOLS_PKGS: "meson gcc redhat-rpm-config vala-tools" GLIB2_PKGS: "pkgconfig(glib-2.0) pkgconfig(gobject-2.0)" GSIGNOND_PKG: "pkgconfig(gsignond)" - DOCGEN_PKGS: "pkgconfig(gtk-doc)" + DOCGEN_PKGS: "pkgconfig(gtk-doc) valadoc" GIR_PKGS: "pkgconfig(gobject-introspection-1.0)" CI_PKGS: "pkgconfig(check) lcov" LOCALE_PKGS: "langpacks-en" @@ -20,21 +20,27 @@ build_x86-64: stage: build script: - - meson build -Db_coverage=true + - meson build -Db_coverage=true -Ddocumentation=true - cd build - ninja artifacts: paths: - ./ -test_x86-64: - stage: test +pages: + stage: deploy script: - cd build - - ninja test - - ninja coverage-html + - ninja + - cd .. + - mkdir public + - cp -a build/src/doc/* public + only: + - tags + - master@accounts-sso/gsignond-plugin-mail dependencies: - build_x86-64 artifacts: paths: - - ./ + - public + diff -Nru gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/meson_options.txt gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/meson_options.txt --- gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/meson_options.txt 1970-01-01 00:00:00.000000000 +0000 +++ gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/meson_options.txt 2018-10-04 13:18:24.000000000 +0000 @@ -0,0 +1 @@ +option('documentation', type : 'boolean', value : false, description : 'Enable documentation generation') diff -Nru gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/src/EmailPlugin.vala gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/src/EmailPlugin.vala --- gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/src/EmailPlugin.vala 2018-05-05 14:15:11.000000000 +0000 +++ gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/src/EmailPlugin.vala 2018-10-04 13:18:24.000000000 +0000 @@ -19,6 +19,39 @@ * Authored by: Corentin Noël */ +/** + * = Mail authentication plugin for gSSO single sign-on service = + * + * The Mail plugin is a simple plugin to acquire and store the credentials. + * It currently only handle credentials for IMAP and SMTP. + * + * The plugin implements the standard {@link GSignond.Plugin} interface, and after instantiating + * a plugin object all interactions happen through that interface. + * + * {@link GSignond.Plugin.type} property of the plugin object is set to "mail". + * + * {@link GSignond.Plugin.mechanisms} property of the plugin object is set to "mail". + * + * ==Token and its parameters in {@link GSignond.Plugin.response_final} signal== + * + * {@link GSignond.Plugin.response_final} signal concludes the process and returns a + * {@link GSignond.Dictionary} parameter that contains the access parameters: + * + * * "ImapUser" //(mandatory)// - the IMAP username + * * "ImapPassword" //(mandatory)// - the IMAP password + * * "ImapServer" //(mandatory)// - the IMAP host + * * "ImapPort" //(mandatory)// - the IMAP port of the host + * * "ImapSecurity" //(mandatory)// - the security kind of the IMAP server + * can be one of "None", "SSL/TLS" or "STARTTLS" + * * "SmtpUser" //(mandatory)// - the SMTP username + * * "SmtpPassword" //(mandatory)// - the SMTP password + * * "SmtpServer" //(mandatory)// - the SMTP host + * * "SmtpPort" //(mandatory)// - the SMTP port of the host + * * "SmtpSecurity" //(mandatory)// - the security kind of the SMTP server + * can be one of "None", "SSL/TLS" or "STARTTLS" + * + * @see GSignond.Plugin + */ public class GSignond.MailPlugin : GLib.Object, GSignond.Plugin { public string type { owned get { return "mail"; } } public string[] mechanisms { owned get { return {"mail", null}; } } @@ -31,7 +64,7 @@ public void request_initial (GSignond.SessionData session_data, GSignond.Dictionary token_cache, string mechanism) { var username = session_data.get_username (); var secret = session_data.get_secret (); - if (secret == null) { + if (secret != null) { var response = new GSignond.SessionData.from_variant (token_cache.to_variant ()); if (username != null) { response.set_username (username); @@ -43,7 +76,7 @@ } var user_action_data = new GSignond.SignonuiData (); - if (username != null) { + if (username == null) { user_action_data.set_query_username (true); } else { user_action_data.set_query_username (false); diff -Nru gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/src/meson.build gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/src/meson.build --- gsignond-plugin-mail-0.2.0~r3+pkg2~daily~ubuntu5.0.1/src/meson.build 2018-05-05 14:15:11.000000000 +0000 +++ gsignond-plugin-mail-0.2.0~r7+pkg2~daily~ubuntu5.0.1/src/meson.build 2018-10-04 13:18:24.000000000 +0000 @@ -11,3 +11,29 @@ install_dir : gplugins_dir ) +if get_option('documentation') + valadoc = find_program('valadoc') + + doc_target = custom_target( + 'documentation', + command: [ + valadoc, + '--force', + '--verbose', + '--package-name', 'gsignond-plugin-mail', + '--package-version', meson.project_version(), + '--driver', meson.get_compiler('vala').version(), + '--pkg', 'glib-2.0', + '--pkg', 'gobject-2.0', + '--pkg', 'gsignond', + '--importdir=' + join_paths(get_option('prefix'), get_option('datadir'), 'gtk-doc', 'html'), + '--doclet=html', + '--use-svg-images', + '-o', '@OUTPUT@', + '@INPUT@' + ], + build_by_default: true, + input: mail_files, + output: 'doc' + ) +endif