Projects
Kolab:Winterfell
iRony
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
iRony.spec
Changed
@@ -32,7 +32,7 @@ Name: iRony Version: 0.4 -Release: 0.2.git%{?dist} +Release: 0.20160315.git%{?dist} Summary: DAV for Kolab Groupware Group: Applications/Internet @@ -40,7 +40,7 @@ URL: http://kolab.org # From f7e4e0e36b62f10d2570d6fccef686c3e1c43af0 -Source0: http://mirror.kolabsys.com/pub/releases/iRony-%{version}.tar.gz +Source0: iRony-0.4.tar.gz Source1: iRony.conf Source2: iRony.logrotate
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -irony (0.4~dev20150721-0~kolab1) unstable; urgency=low +irony (0.4~dev20160315-0~kolab1) unstable; urgency=low * Release of version 0.4.0
View file
iRony-0.4.tar.gz/lib/Kolab/CardDAV/ContactsBackend.php
Changed
@@ -821,10 +821,8 @@ if (!empty($contact['photo'])) { $vc->PHOTO = $contact['photo']; - $vc->PHOTO['ENCODING'] = 'B'; - if ($v4) { - $vc->PHOTO['TYPE'] = strtoupper(substr(rcube_mime::image_content_type($contact['photo']), 6)); - } + $vc->PHOTO['ENCODING'] = 'b'; + $vc->PHOTO['TYPE'] = strtoupper(substr(rcube_mime::image_content_type($contact['photo']), 6)); } // add custom properties
View file
iRony-0.4.tar.gz/test/Resource/CardDAV/vcardput/6.vcf
Changed
@@ -6,7 +6,7 @@ TEL;TYPE=WORK:777-777-7777 TEL;TYPE=CELL:8888888888 ADR;TYPE=WORK:;;1234 Golly Street;Sunnyside;CA;99999;USA -PHOTO;BASE64: +PHOTO;ENCODING=b: /9j/4AAQSkZJRgABAQAAAQABAAD/7QA8UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAB8cAVoAAx sl RxwCAAACAAIcAhkAC1Bob3RvIEJvb3RoAP/iG6hJQ0NfUFJPRklMRQABAQAAG5hhcHBsAgA AAG1u dHJSR0IgWFlaIAfaAAEAEwAJADEABGFjc3BBUFBMAAAAAAAAAAAAAAAAAAAAAAAAAAAA
View file
iRony-0.4.tar.gz/test/Unit
Added
+(directory)
View file
iRony-0.4.tar.gz/test/Unit/CardDAV
Added
+(directory)
View file
iRony-0.4.tar.gz/test/Unit/CardDAV/ContactsBackend.php
Added
@@ -0,0 +1,27 @@ +<?php + +use Kolab\CardDAV\ContactsBackend; + +class ContactsBackendTest extends PHPUnit_Framework_TestCase +{ + function setUp() + { + } + + + /** + */ + function test_T1082() + { + $backend = new ContactsBackend; + $contact = array( + 'uid' => '', + 'name' => 'Test', + 'photo' => base64_decode('R0lGODlhDwAPAIAAAMDAwAAAACH5BAEAAAAALAAAAAAPAA8AQAINhI+py+0Po5y02otnAQA7'), + ); + + $vcard = $backend->to_vcard($contact); + + $this->assertRegexp('/PHOTO;ENCODING=b;TYPE=GIF:R0l/', $vcard); + } +}
View file
iRony-0.4.tar.gz/test/bootstrap.php
Added
@@ -0,0 +1,53 @@ +<?php + +/** + * iRony, the Kolab WebDAV/CalDAV/CardDAV Server + * + * @author Thomas Bruederli <bruederli@kolabsys.com> + * @author Aleksander Machniak <machniak@kolabsys.com> + * + * Copyright (C) 2013-2016, Kolab Systems AG <contact@kolabsys.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +if (php_sapi_name() != 'cli') { + die("Not in shell mode (php-cli)"); +} + +// define some environment variables used throughout the app and libraries +define('TESTS_DIR', __DIR__ . '/'); +define('KOLAB_DAV_ROOT', realpath('../')); +define('KOLAB_DAV_VERSION', '0.4-dev'); +define('KOLAB_DAV_START', microtime(true)); + +define('RCUBE_INSTALL_PATH', KOLAB_DAV_ROOT . '/'); +define('RCUBE_CONFIG_DIR', KOLAB_DAV_ROOT . '/config/'); +define('RCUBE_PLUGINS_DIR', KOLAB_DAV_ROOT . '/lib/plugins/'); + +// suppress error notices +ini_set('error_reporting', E_ALL &~ E_NOTICE &~ E_STRICT); + +// use composer's autoloader for dependencies +$loader = require_once(KOLAB_DAV_ROOT . '/vendor/autoload.php'); +$loader->set('Kolab', array(KOLAB_DAV_ROOT . '/lib')); // register iRony namespace(s) +$loader->setUseIncludePath(true); // enable include_path to load PEAR classes from their default location + +// load the Roundcube framework with its autoloader +require_once KOLAB_DAV_ROOT . '/lib/Roundcube/bootstrap.php'; + +// convenience function, you know it well :-) +//function console() +//{ +//}
View file
iRony-0.4.tar.gz/test/phpunit.xml
Added
@@ -0,0 +1,9 @@ +<phpunit backupGlobals="false" + bootstrap="bootstrap.php" + colors="true"> + <testsuites> + <testsuite name="All Tests"> + <file>Unit/CardDAV/ContactsBackend.php</file> + </testsuite> + </testsuites> +</phpunit>
View file
iRony.dsc
Changed
@@ -2,7 +2,7 @@ Source: irony Binary: irony Architecture: all -Version: 0.4~dev20150721-0~kolab1 +Version: 0.4~dev20160315-0~kolab1 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Uploaders: Paul Klos <kolab@klos2day.nl> Homepage: http://www.kolab.org/
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.