release JCL 0.1 beta 3
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
*flymake.py
|
*flymake.py
|
||||||
.ropeproject
|
.ropeproject
|
||||||
*.pyc
|
*.pyc
|
||||||
|
dist
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -2,7 +2,7 @@ PYTHON=`which python`
|
|||||||
DESTDIR=/
|
DESTDIR=/
|
||||||
BUILDIR=$(CURDIR)/debian/jcl
|
BUILDIR=$(CURDIR)/debian/jcl
|
||||||
PROJECT=jcl
|
PROJECT=jcl
|
||||||
VERSION=0.1b2
|
VERSION=0.1b3
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@echo "make source - Create source package"
|
@echo "make source - Create source package"
|
||||||
@@ -23,7 +23,7 @@ buildrpm:
|
|||||||
builddeb:
|
builddeb:
|
||||||
$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
|
$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
|
||||||
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
|
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
|
||||||
dpkg-buildpackage -i -I -rfakeroot
|
dpkg-buildpackage -us -uc -i -I -rfakeroot
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(PYTHON) setup.py clean
|
$(PYTHON) setup.py clean
|
||||||
|
|||||||
6
debian/changelog
vendored
6
debian/changelog
vendored
@@ -1,3 +1,9 @@
|
|||||||
|
jcl (0.1b3) unstable; urgency=low
|
||||||
|
|
||||||
|
* JCL v0.1 beta 3
|
||||||
|
|
||||||
|
-- David Rousselie <dax@happycoders.org> Fri, 04 Jun 2010 19:44:08 +0200
|
||||||
|
|
||||||
jcl (0.1b2) unstable; urgency=low
|
jcl (0.1b2) unstable; urgency=low
|
||||||
|
|
||||||
* JCL v0.1 beta 2
|
* JCL v0.1 beta 2
|
||||||
|
|||||||
79
debian/patches/debian-changes-0.1b3
vendored
Normal file
79
debian/patches/debian-changes-0.1b3
vendored
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
Description: Upstream changes introduced in version 0.1b3
|
||||||
|
This patch has been created by dpkg-source during the package build.
|
||||||
|
Here's the last changelog entry, hopefully it gives details on why
|
||||||
|
those changes were made:
|
||||||
|
.
|
||||||
|
jcl (0.1b3) unstable; urgency=low
|
||||||
|
.
|
||||||
|
* JCL v0.1 beta 3
|
||||||
|
.
|
||||||
|
The person named in the Author field signed this changelog entry.
|
||||||
|
Author: David Rousselie <dax@happycoders.org>
|
||||||
|
|
||||||
|
---
|
||||||
|
The information above should follow the Patch Tagging Guidelines, please
|
||||||
|
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
|
||||||
|
are templates for supplementary fields that you might want to add:
|
||||||
|
|
||||||
|
Origin: <vendor|upstream|other>, <url of original patch>
|
||||||
|
Bug: <url in upstream bugtracker>
|
||||||
|
Bug-Debian: http://bugs.debian.org/<bugnumber>
|
||||||
|
Forwarded: <no|not-needed|url proving that it has been forwarded>
|
||||||
|
Reviewed-By: <name and email of someone who approved the patch>
|
||||||
|
Last-Update: <YYYY-MM-DD>
|
||||||
|
|
||||||
|
--- jcl-0.1b3.orig/Makefile
|
||||||
|
+++ jcl-0.1b3/Makefile
|
||||||
|
@@ -2,7 +2,7 @@ PYTHON=`which python`
|
||||||
|
DESTDIR=/
|
||||||
|
BUILDIR=$(CURDIR)/debian/jcl
|
||||||
|
PROJECT=jcl
|
||||||
|
-VERSION=0.1b2
|
||||||
|
+VERSION=0.1b3
|
||||||
|
|
||||||
|
all:
|
||||||
|
@echo "make source - Create source package"
|
||||||
|
@@ -23,7 +23,7 @@ buildrpm:
|
||||||
|
builddeb:
|
||||||
|
$(PYTHON) setup.py sdist $(COMPILE) --dist-dir=../
|
||||||
|
rename -f 's/$(PROJECT)-(.*)\.tar\.gz/$(PROJECT)_$$1\.orig\.tar\.gz/' ../*
|
||||||
|
- dpkg-buildpackage -i -I -rfakeroot
|
||||||
|
+ dpkg-buildpackage -us -uc -i -I -rfakeroot
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(PYTHON) setup.py clean
|
||||||
|
--- jcl-0.1b3.orig/src/jcl/jabber/tests/register.py
|
||||||
|
+++ jcl-0.1b3/src/jcl/jabber/tests/register.py
|
||||||
|
@@ -56,7 +56,7 @@ class SetRegisterHandler_TestCase(JCLTes
|
||||||
|
result = self.handler.handle(iq_set, Lang.en, None, x_data)
|
||||||
|
self.assertEquals(result, None)
|
||||||
|
|
||||||
|
- def test_handle_invalid_name(self):
|
||||||
|
+ def test_handle_invalid_name_with_invalid_char(self):
|
||||||
|
"""Test with invalid supplied name"""
|
||||||
|
iq_set = Iq(stanza_type="set",
|
||||||
|
from_jid="user1@test.com/res",
|
||||||
|
@@ -73,6 +73,23 @@ class SetRegisterHandler_TestCase(JCLTes
|
||||||
|
self.assertEquals(error.get_text(), Lang.en.field_error \
|
||||||
|
% ("name", Lang.en.arobase_in_name_forbidden))
|
||||||
|
|
||||||
|
+ def test_handle_invalid_name_with_whitespace(self):
|
||||||
|
+ """Test with invalid supplied name"""
|
||||||
|
+ iq_set = Iq(stanza_type="set",
|
||||||
|
+ from_jid="user1@test.com/res",
|
||||||
|
+ to_jid="jcl.test.com")
|
||||||
|
+ x_data = Form("submit")
|
||||||
|
+ x_data.add_field(name="name",
|
||||||
|
+ value="wrong name",
|
||||||
|
+ field_type="text-single")
|
||||||
|
+ result = self.handler.handle(iq_set, Lang.en, None, x_data)
|
||||||
|
+ self.assertEquals(len(result), 1)
|
||||||
|
+ self.assertEquals(result[0].xmlnode.prop("type"), "error")
|
||||||
|
+ error = result[0].get_error()
|
||||||
|
+ self.assertEquals(error.get_condition().name, "not-acceptable")
|
||||||
|
+ self.assertEquals(error.get_text(), Lang.en.field_error \
|
||||||
|
+ % ("name", Lang.en.arobase_in_name_forbidden))
|
||||||
|
+
|
||||||
|
def test_handle_invalid_empty_name(self):
|
||||||
|
"""Test with empty supplied name"""
|
||||||
|
iq_set = Iq(stanza_type="set",
|
||||||
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@@ -1 +1,2 @@
|
|||||||
debian-changes-0.1b2
|
debian-changes-0.1b2
|
||||||
|
debian-changes-0.1b3
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -23,7 +23,7 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
setup(name='jcl',
|
setup(name='jcl',
|
||||||
version='0.1b2',
|
version='0.1b3',
|
||||||
description='Jabber Component Library',
|
description='Jabber Component Library',
|
||||||
author='David Rousselie',
|
author='David Rousselie',
|
||||||
author_email='dax@happycoders.org',
|
author_email='dax@happycoders.org',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 1.0
|
Metadata-Version: 1.0
|
||||||
Name: jcl
|
Name: jcl
|
||||||
Version: 0.1b2
|
Version: 0.1b3
|
||||||
Summary: Jabber Component Library
|
Summary: Jabber Component Library
|
||||||
Home-page: http://people.happycoders.org/dax/projects/jcl
|
Home-page: http://people.happycoders.org/dax/projects/jcl
|
||||||
Author: David Rousselie
|
Author: David Rousselie
|
||||||
|
|||||||
Reference in New Issue
Block a user