diff -Nru recent-notifications-0.4.42/build-package.sh recent-notifications-0.4.45/build-package.sh --- recent-notifications-0.4.42/build-package.sh 2010-08-06 21:59:00.000000000 +0000 +++ recent-notifications-0.4.45/build-package.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,77 +0,0 @@ -#!/bin/bash - -VERSION=`python -c "from recent_notifications.Globals import VERSION; print VERSION"` -NAME="recent-notifications-${VERSION}" -SDIST="${NAME}.tar.gz" -ORIG="recent-notifications_${VERSION}.orig.tar.gz" - -# Get command line arguments -BUILD_BINARY=0 -CLEAN=0 -PRINT_HELP=0 - -usage () { - echo "usage: build-package.sh [options]" - echo "" - echo "Options:" - echo "-b, --binary only build an unsigned binary package" - echo "-c, --clean delete everything in the dist directory" - echo "-h, --help print this help message and exit" - echo "" -} - -for ARG in $* -do - case "${ARG}" in - "-b" | "--binary") BUILD_BINARY=1;; - "-c" | "--clean" ) CLEAN=1;; - "-h" | "--help" ) PRINT_HELP=1;; - esac -done - -# Print the usage and exit -if [ "${PRINT_HELP}" -eq "1" ] -then - usage - exit -fi - -# Clean the dist directory -if [ "${CLEAN}" -eq "1" ] -then - echo "Cleaning the dist directory" - rm -rf dist/* -fi - -mkdir -p "dist/deb" - -echo "Building source distribution for ${SDIST}" -python setup.py sdist -rm "MANIFEST" -cd "dist" -tar xzf "${SDIST}" -rm -rf "${NAME}/debian" -tar czf "deb/${ORIG}" "${NAME}" -cd "deb" - -echo "Unpacking source distribution in deb directory" -tar xzf "../${SDIST}" -cd "${NAME}" - -export DEBUILD_LINTIAN=yes -export DEBUILD_LINTIAN_OPTS="-i -I --show-overrides" - -echo "Building deb package" -if [ "${BUILD_BINARY}" -eq "1" ] -then - dpkg-buildpackage -us -uc -else - # Build the lucid source package - #dpkg-buildpackage -S - debuild -S - # Update the changelog for lucid - sed -i -e 's/lucid/maverick/g' debian/changelog - # Build the maverick source package - #dpkg-buildpackage -S - debuild -S -fi diff -Nru recent-notifications-0.4.42/debian/changelog recent-notifications-0.4.45/debian/changelog --- recent-notifications-0.4.42/debian/changelog 2011-03-24 03:56:35.000000000 +0000 +++ recent-notifications-0.4.45/debian/changelog 2011-05-18 23:44:04.000000000 +0000 @@ -1,3 +1,15 @@ +recent-notifications (0.4.45-1~maverick) maverick; urgency=low + + * Bump version to fix broken ppa upload. + + -- Jason Conti Wed, 18 May 2011 19:41:53 -0400 + +recent-notifications (0.4.44-1~maverick) maverick; urgency=low + + * Merged updated translations. + + -- Jason Conti Wed, 18 May 2011 17:23:23 -0400 + recent-notifications (0.4.42-1~maverick) maverick; urgency=low * Merged updated translations. diff -Nru recent-notifications-0.4.42/icons/blank.svg recent-notifications-0.4.45/icons/blank.svg --- recent-notifications-0.4.42/icons/blank.svg 1970-01-01 00:00:00.000000000 +0000 +++ recent-notifications-0.4.45/icons/blank.svg 2011-05-11 18:13:51.000000000 +0000 @@ -0,0 +1,66 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + diff -Nru recent-notifications-0.4.42/icons/notification-new.svg recent-notifications-0.4.45/icons/notification-new.svg --- recent-notifications-0.4.42/icons/notification-new.svg 1970-01-01 00:00:00.000000000 +0000 +++ recent-notifications-0.4.45/icons/notification-new.svg 2011-05-11 18:13:51.000000000 +0000 @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff -Nru recent-notifications-0.4.42/PKG-INFO recent-notifications-0.4.45/PKG-INFO --- recent-notifications-0.4.42/PKG-INFO 2011-03-24 03:56:23.000000000 +0000 +++ recent-notifications-0.4.45/PKG-INFO 2011-05-18 23:43:42.000000000 +0000 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: recent-notifications -Version: 0.4.42 +Version: 0.4.45 Summary: UNKNOWN Home-page: http://launchpad.net/recent-notifications Author: Jason Conti diff -Nru recent-notifications-0.4.42/po/it.po recent-notifications-0.4.45/po/it.po --- recent-notifications-0.4.42/po/it.po 1970-01-01 00:00:00.000000000 +0000 +++ recent-notifications-0.4.45/po/it.po 2011-05-18 20:43:07.000000000 +0000 @@ -0,0 +1,187 @@ +# Italian translation for recent-notifications +# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011 +# This file is distributed under the same license as the recent-notifications package. +# FIRST AUTHOR , 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: recent-notifications\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-02-26 10:41-0500\n" +"PO-Revision-Date: 2011-04-22 18:23+0000\n" +"Last-Translator: simone.sandri \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Launchpad-Export-Date: 2011-04-23 05:06+0000\n" +"X-Generator: Launchpad (build 12758)\n" + +#: ../RecentNotifications.server.in.h:1 ../recent_notifications/About.py:43 +msgid "Recent Notifications" +msgstr "Notifiche Recenti" + +#: ../RecentNotifications.server.in.h:2 ../recent_notifications/About.py:34 +msgid "View recent notifications" +msgstr "Mostra notifiche recenti" + +#: ../recent_notifications/About.py:15 +msgid "" +"\n" +"This program is free software: you can redistribute it and/or modify\n" +"it under the terms of the GNU General Public License as published by\n" +"the Free Software Foundation, either version 3 of the License, or\n" +"(at your option) any later version.\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License for more details.\n" +"\n" +"You should have received a copy of the GNU General Public License\n" +"along with this program. If not, see .\n" +msgstr "" +"\n" +"Questo programma è software libero: puoi ridistribuirlo e/o modificarlo\n" +"rispettando i termini della licenza GNU General Public License stabiliti " +"dalla\n" +"Free Software Foundation, versione 3 della Licenza, o\n" +"(a tua discrezione) in una qualunque delle versioni precendenti.\n" +"\n" +"Questo programma è distribuito nella speranza che possa essere utile,\n" +"ma SENZA ALCUNA GARANZIA; comprese le garanzie implicite di COMMERCIABILITA' " +"o di APPLICABILITÀ PER UNO SCOPO PARTICOLARE. Consulta la licenza GNU " +"General Public License per avere ulteriori dettagli.\n" +"\n" +"Dovresti aver ricevuto una copia della GNU General Public License\n" +"insieme a questo programma. Se non è così, visita " +".\n" + +#: ../recent_notifications/About.py:35 +msgid "Copyright © 2010 Jason Conti." +msgstr "Copyright © 2010 Jason Conti." + +#: ../recent_notifications/About.py:37 +msgid "translator-credits" +msgstr "" +"Launchpad Contributions:\n" +" simone.sandri https://launchpad.net/~lexluxsox" + +#: ../recent_notifications/Main.py:67 +msgid "_About" +msgstr "_Informazioni" + +#: ../recent_notifications/Main.py:68 +msgid "_Clear Messages" +msgstr "_Elimina Messaggi" + +#: ../recent_notifications/Main.py:69 +msgid "_Preferences" +msgstr "_Preferenze" + +#: ../recent_notifications/Main.py:174 +msgid "1 unread message" +msgid_plural "{0} unread messages" +msgstr[0] "1 messaggio non letto" +msgstr[1] "{0} messaggi non letti" + +#: ../recent_notifications/MessageList.py:141 +msgid "Copy Text" +msgstr "Copia Testo" + +#: ../recent_notifications/MessageList.py:157 +msgid "Copy Link" +msgstr "Copia Link" + +#: ../recent_notifications/MessageList.py:163 +msgid "Visit Link" +msgstr "Visita Link" + +#: ../recent_notifications/MessageList.py:184 +msgid "Blacklist {0}" +msgstr "Blacklist {0}" + +#: ../recent_notifications/MessageList.py:313 +msgid "NEW" +msgstr "NUOVO" + +#: ../recent_notifications/MessageList.py:317 +msgid "from" +msgstr "da" + +#: ../recent_notifications/MessageWindow.py:39 +msgid "Message Window" +msgstr "Finestra Messaggio" + +#: ../recent_notifications/MessageWindow.py:135 +msgid "All Applications" +msgstr "Tutte le Applicazioni" + +#: ../recent_notifications/Preferences.py:13 +msgid "Preferences" +msgstr "Preferenze" + +#: ../recent_notifications/Preferences.py:23 +msgid "Display unread message count" +msgstr "Mostra il numero di messaggi non letti" + +#: ../recent_notifications/Preferences.py:28 +msgid "Enable debug messages" +msgstr "Abilita messaggi di debug" + +#: ../recent_notifications/Preferences.py:33 +msgid "Message Limit" +msgstr "Limite Messaggio" + +#: ../recent_notifications/Preferences.py:38 +msgid "unlimited" +msgstr "illimitato" + +#: ../recent_notifications/Preferences.py:39 +msgid "20" +msgstr "20" + +#: ../recent_notifications/Preferences.py:40 +msgid "40" +msgstr "40" + +#: ../recent_notifications/Preferences.py:41 +msgid "60" +msgstr "60" + +#: ../recent_notifications/Preferences.py:42 +msgid "80" +msgstr "80" + +#: ../recent_notifications/Preferences.py:43 +msgid "100" +msgstr "100" + +#: ../recent_notifications/Preferences.py:56 +msgid "General" +msgstr "Generale" + +#: ../recent_notifications/Preferences.py:69 +msgid "The blacklist is currently empty." +msgstr "La blacklist è attualmente vuota" + +#: ../recent_notifications/Preferences.py:77 +msgid "Blacklist" +msgstr "Blacklist" + +#: ../recent_notifications/Timestamp.py:44 +msgid "less than a minute ago" +msgstr "meno di un minuto fa" + +#: ../recent_notifications/Timestamp.py:47 +msgid "1 minute ago" +msgid_plural "{0} minutes ago" +msgstr[0] "1 minuto fa" +msgstr[1] "{0} minuti fa" + +#: ../recent_notifications/Timestamp.py:50 +msgid "1 hour ago" +msgid_plural "{0} hours ago" +msgstr[0] "1 ora fa" +msgstr[1] "{0} ore fa" diff -Nru recent-notifications-0.4.42/po/ro.po recent-notifications-0.4.45/po/ro.po --- recent-notifications-0.4.42/po/ro.po 2011-03-24 03:51:14.000000000 +0000 +++ recent-notifications-0.4.45/po/ro.po 2011-05-18 20:43:07.000000000 +0000 @@ -8,16 +8,16 @@ "Project-Id-Version: recent-notifications\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-02-26 10:41-0500\n" -"PO-Revision-Date: 2011-03-16 13:14+0000\n" -"Last-Translator: ValentinV \n" +"PO-Revision-Date: 2011-04-23 00:14+0000\n" +"Last-Translator: Lucian Adrian Grijincu \n" "Language-Team: Romanian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n == 1 ? 0: (((n % 100 > 19) || ((n % 100 " "== 0) && (n != 0))) ? 2: 1));\n" -"X-Launchpad-Export-Date: 2011-03-17 04:52+0000\n" -"X-Generator: Launchpad (build 12559)\n" +"X-Launchpad-Export-Date: 2011-04-24 04:51+0000\n" +"X-Generator: Launchpad (build 12758)\n" #: ../RecentNotifications.server.in.h:1 ../recent_notifications/About.py:43 msgid "Recent Notifications" @@ -65,6 +65,7 @@ msgid "translator-credits" msgstr "" "Launchpad Contributions:\n" +" Lucian Adrian Grijincu https://launchpad.net/~lucian.grijincu\n" " ValentinV https://launchpad.net/~valentinverde" #: ../recent_notifications/Main.py:67 @@ -77,7 +78,7 @@ #: ../recent_notifications/Main.py:69 msgid "_Preferences" -msgstr "_Preferinte" +msgstr "_Preferințe" #: ../recent_notifications/Main.py:174 msgid "1 unread message" diff -Nru recent-notifications-0.4.42/po/ru.po recent-notifications-0.4.45/po/ru.po --- recent-notifications-0.4.42/po/ru.po 2011-03-24 03:51:14.000000000 +0000 +++ recent-notifications-0.4.45/po/ru.po 2011-05-18 20:43:07.000000000 +0000 @@ -8,16 +8,16 @@ "Project-Id-Version: recent-notifications\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-02-26 10:41-0500\n" -"PO-Revision-Date: 2010-07-08 16:52+0000\n" -"Last-Translator: Sergey Sedov \n" +"PO-Revision-Date: 2011-04-23 17:32+0000\n" +"Last-Translator: AngorSTV \n" "Language-Team: Russian \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " "n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" -"X-Launchpad-Export-Date: 2011-02-27 05:00+0000\n" -"X-Generator: Launchpad (build 12351)\n" +"X-Launchpad-Export-Date: 2011-04-24 04:51+0000\n" +"X-Generator: Launchpad (build 12758)\n" #: ../RecentNotifications.server.in.h:1 ../recent_notifications/About.py:43 msgid "Recent Notifications" @@ -67,6 +67,7 @@ msgid "translator-credits" msgstr "" "Launchpad Contributions:\n" +" AngorSTV https://launchpad.net/~angor\n" " Sergey Sedov https://launchpad.net/~serg-sedov" #: ../recent_notifications/Main.py:67 @@ -102,7 +103,7 @@ #: ../recent_notifications/MessageList.py:184 msgid "Blacklist {0}" -msgstr "" +msgstr "Чёрный список {0}" #: ../recent_notifications/MessageList.py:313 msgid "NEW" @@ -122,19 +123,19 @@ #: ../recent_notifications/Preferences.py:13 msgid "Preferences" -msgstr "" +msgstr "Настройки" #: ../recent_notifications/Preferences.py:23 msgid "Display unread message count" -msgstr "" +msgstr "Показать количество непрочитанных сообщений." #: ../recent_notifications/Preferences.py:28 msgid "Enable debug messages" -msgstr "" +msgstr "Доступны отладочные сообщения" #: ../recent_notifications/Preferences.py:33 msgid "Message Limit" -msgstr "" +msgstr "Лимит сообщений" #: ../recent_notifications/Preferences.py:38 msgid "unlimited" @@ -166,7 +167,7 @@ #: ../recent_notifications/Preferences.py:69 msgid "The blacklist is currently empty." -msgstr "" +msgstr "Чёрный список сейчас пуст." #: ../recent_notifications/Preferences.py:77 msgid "Blacklist" diff -Nru recent-notifications-0.4.42/recent_notifications/Globals.py recent-notifications-0.4.45/recent_notifications/Globals.py --- recent-notifications-0.4.42/recent_notifications/Globals.py 2011-03-24 03:54:02.000000000 +0000 +++ recent-notifications-0.4.45/recent_notifications/Globals.py 2011-05-18 23:41:35.000000000 +0000 @@ -1,2 +1,2 @@ -VERSION = "0.4.42" +VERSION = "0.4.45" WEBSITE = "http://launchpad.net/recent-notifications" diff -Nru recent-notifications-0.4.42/run-tests.sh recent-notifications-0.4.45/run-tests.sh --- recent-notifications-0.4.42/run-tests.sh 2010-03-06 01:28:04.000000000 +0000 +++ recent-notifications-0.4.45/run-tests.sh 1970-01-01 00:00:00.000000000 +0000 @@ -1,7 +0,0 @@ -#!/bin/bash - -for FILE in tests/test_*.py -do - echo "Test: ${FILE}" - python ${FILE} -done diff -Nru recent-notifications-0.4.42/setup.py recent-notifications-0.4.45/setup.py --- recent-notifications-0.4.42/setup.py 2010-04-24 19:00:51.000000000 +0000 +++ recent-notifications-0.4.45/setup.py 2011-05-18 22:39:46.000000000 +0000 @@ -61,9 +61,7 @@ "icons/notification-low.svg", "icons/notification-normal.svg", "icons/humanity-notification-read.svg", - "icons/humanity-notification-unread.svg", - "icons/notification-read.svg", - "icons/notification-unread.svg"]) + "icons/humanity-notification-unread.svg"]) ], cmdclass={ "build": build_extra.build_extra, diff -Nru recent-notifications-0.4.42/tests/configs/sample recent-notifications-0.4.45/tests/configs/sample --- recent-notifications-0.4.42/tests/configs/sample 1970-01-01 00:00:00.000000000 +0000 +++ recent-notifications-0.4.45/tests/configs/sample 2011-05-11 18:13:51.000000000 +0000 @@ -0,0 +1,14 @@ +one = 1 +two = 2 +three = 3 + +four = 4 + +apple = This is an apple +boolean_value_1 + +boolean_value_2 = True + +false_value = False + +cake = delicious diff -Nru recent-notifications-0.4.42/tests/configs/test_set recent-notifications-0.4.45/tests/configs/test_set --- recent-notifications-0.4.42/tests/configs/test_set 1970-01-01 00:00:00.000000000 +0000 +++ recent-notifications-0.4.45/tests/configs/test_set 2011-05-18 21:14:36.000000000 +0000 @@ -0,0 +1 @@ +key = value diff -Nru recent-notifications-0.4.42/tests/configs/test_set_if_unset recent-notifications-0.4.45/tests/configs/test_set_if_unset --- recent-notifications-0.4.42/tests/configs/test_set_if_unset 1970-01-01 00:00:00.000000000 +0000 +++ recent-notifications-0.4.45/tests/configs/test_set_if_unset 2011-05-18 21:14:36.000000000 +0000 @@ -0,0 +1 @@ +key = value_1 diff -Nru recent-notifications-0.4.42/tests/test_config.py recent-notifications-0.4.45/tests/test_config.py --- recent-notifications-0.4.42/tests/test_config.py 1970-01-01 00:00:00.000000000 +0000 +++ recent-notifications-0.4.45/tests/test_config.py 2011-05-11 18:13:51.000000000 +0000 @@ -0,0 +1,96 @@ +""" +test_config.py +April 24, 2011 + +Tests unity.Config +""" + +import os +import unittest +import sys + +SCRIPT_PATH = os.path.dirname(os.path.abspath(__file__)) + +# Insert the unity module into the search path +APP_PATH = os.path.abspath(os.path.join(SCRIPT_PATH, "..")) +sys.path.insert(0, APP_PATH) + +CONFIG_PATH = os.path.join(SCRIPT_PATH, "configs") + +from unity.Config import Config, ConfigException + +def get_path(config_file): + return os.path.join(CONFIG_PATH, config_file) + +def delete_path(config_file): + try: + os.remove(get_path(config_file)) + except: + pass + +class TestConfig(unittest.TestCase): + def setUp(self): + pass + + def test_set(self): + # Remove the old config + delete_path("test_set") + + config = Config(get_path("test_set")) + + config.set("key", "value") + self.assertEqual(config.get("key"), "value") + + with self.assertRaises(ConfigException): + config.set("", "value") + + def test_set_if_unset(self): + # Remove the old config + delete_path("test_set_if_unset") + + config = Config(get_path("test_set_if_unset")) + + config.set_if_unset("key", "value_1") + self.assertEqual(config.get("key"), "value_1") + + config.set_if_unset("key", "value_2") + self.assertEqual(config.get("key"), "value_1") + + def test_get(self): + config = Config(get_path("sample")) + + self.assertEqual(config.get("apple"), "This is an apple") + self.assertEqual(config.get("cake"), "delicious") + + # Test for missing value returning proper default + self.assertEqual(config.get("missing_value", "default"), "default") + + def test_get_bool(self): + config = Config(get_path("sample")) + + self.assertEqual(config.get_bool("boolean_value_1"), True) + self.assertEqual(config.get_bool("boolean_value_2"), True) + self.assertEqual(config.get_bool("false_value"), False) + + # Test for missing value returning proper default + self.assertEqual(config.get_bool("missing_value", False), False) + + # Test for invalid value returning proper default + self.assertEqual(config.get_bool("one", False), False) + + def test_get_int(self): + config = Config(get_path("sample")) + + self.assertEqual(config.get_int("one"), 1) + self.assertEqual(config.get_int("two"), 2) + self.assertEqual(config.get_int("three"), 3) + self.assertEqual(config.get_int("four"), 4) + + # Test for missing value returning proper default + self.assertEqual(config.get_int("missing_value", 0), 0) + + # Test for invalid value returning proper default + self.assertEqual(config.get_int("cake", 0), 0) + +if __name__ == '__main__': + unittest.main()