Hello community, here is the log from the commit of package python-slumber for openSUSE:Factory checked in at 2012-06-10 20:19:07 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-slumber (Old) and /work/SRC/openSUSE:Factory/.python-slumber.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-slumber", Maintainer is "" Changes: -------- --- /work/SRC/openSUSE:Factory/python-slumber/python-slumber.changes 2012-05-07 22:50:51.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-slumber.new/python-slumber.changes 2012-06-10 21:52:18.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Jun 6 11:08:50 UTC 2012 - saschpe@suse.de + +- Update to version 0.4.2: + + Support decoded unicode url fragments + +------------------------------------------------------------------- Old: ---- slumber-0.4.1.tar.gz New: ---- slumber-0.4.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-slumber.spec ++++++ --- /var/tmp/diff_new_pack.zHKP1X/_old 2012-06-10 21:52:20.000000000 +0200 +++ /var/tmp/diff_new_pack.zHKP1X/_new 2012-06-10 21:52:20.000000000 +0200 @@ -17,7 +17,7 @@ Name: python-slumber -Version: 0.4.1 +Version: 0.4.2 Release: 0 Url: http://slumber.in/ Summary: A library that makes consuming a REST API easier and more convenient ++++++ slumber-0.4.1.tar.gz -> slumber-0.4.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4.1/CHANGELOG.rst new/slumber-0.4.2/CHANGELOG.rst --- old/slumber-0.4.1/CHANGELOG.rst 2012-04-13 01:25:10.000000000 +0200 +++ new/slumber-0.4.2/CHANGELOG.rst 2012-04-16 13:57:32.000000000 +0200 @@ -1,7 +1,15 @@ +.. :changelog: + Changelog ========= +0.4.2 +----- + +* Support decoded unicode url fragments - Thanks @collinwat + + 0.4.1 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4.1/PKG-INFO new/slumber-0.4.2/PKG-INFO --- old/slumber-0.4.1/PKG-INFO 2012-04-13 01:25:56.000000000 +0200 +++ new/slumber-0.4.2/PKG-INFO 2012-04-16 13:58:11.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: slumber -Version: 0.4.1 +Version: 0.4.2 Summary: A library that makes consuming a REST API easier and more convenient Home-page: http://slumber.in/ Author: Donald Stufft @@ -52,10 +52,18 @@ + .. :changelog: + Changelog ========= + 0.4.2 + ----- + + * Support decoded unicode url fragments - Thanks @collinwat + + 0.4.1 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4.1/docs/tutorial.rst new/slumber-0.4.2/docs/tutorial.rst --- old/slumber-0.4.1/docs/tutorial.rst 2012-04-13 01:25:01.000000000 +0200 +++ new/slumber-0.4.2/docs/tutorial.rst 2012-04-16 13:30:26.000000000 +0200 @@ -60,7 +60,7 @@ If you wanted to filter the Slumber demo api for notes that start with Bacon, you could do:: >>> import slumber - >>> api = slumber.API("http://slumber.in/api/v1/", authentication={"name": "demo", "password": "demo"}) + >>> api = slumber.API("http://slumber.in/api/v1/", auth=("demo", "demo")) >>> ## GET http://slumber.in/api/v1/note/?title__startswith=Bacon >>> api.note.get(title__startswith="Bacon") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4.1/setup.py new/slumber-0.4.2/setup.py --- old/slumber-0.4.1/setup.py 2012-04-13 01:25:30.000000000 +0200 +++ new/slumber-0.4.2/setup.py 2012-04-16 13:56:18.000000000 +0200 @@ -11,7 +11,7 @@ setup( name = "slumber", - version = "0.4.1", + version = "0.4.2", description = "A library that makes consuming a REST API easier and more convenient", long_description="\n\n".join([ open(os.path.join(base_dir, "README.rst"), "r").read(), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4.1/slumber/__init__.py new/slumber-0.4.2/slumber/__init__.py --- old/slumber-0.4.1/slumber/__init__.py 2012-04-13 01:25:10.000000000 +0200 +++ new/slumber-0.4.2/slumber/__init__.py 2012-04-16 13:55:47.000000000 +0200 @@ -15,7 +15,7 @@ """ scheme, netloc, path, query, fragment = urlparse.urlsplit(base) path = path if len(path) else "/" - path = posixpath.join(path, *[str(x) for x in args]) + path = posixpath.join(path, *[('%s' % x) for x in args]) return urlparse.urlunsplit([scheme, netloc, path, query, fragment]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4.1/slumber.egg-info/PKG-INFO new/slumber-0.4.2/slumber.egg-info/PKG-INFO --- old/slumber-0.4.1/slumber.egg-info/PKG-INFO 2012-04-13 01:25:55.000000000 +0200 +++ new/slumber-0.4.2/slumber.egg-info/PKG-INFO 2012-04-16 13:58:09.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: slumber -Version: 0.4.1 +Version: 0.4.2 Summary: A library that makes consuming a REST API easier and more convenient Home-page: http://slumber.in/ Author: Donald Stufft @@ -52,10 +52,18 @@ + .. :changelog: + Changelog ========= + 0.4.2 + ----- + + * Support decoded unicode url fragments - Thanks @collinwat + + 0.4.1 ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/slumber-0.4.1/tests/utils.py new/slumber-0.4.2/tests/utils.py --- old/slumber-0.4.1/tests/utils.py 2012-01-21 21:48:34.000000000 +0100 +++ new/slumber-0.4.2/tests/utils.py 2012-04-16 13:55:47.000000000 +0200 @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + import unittest import slumber @@ -44,3 +46,17 @@ def test_url_join_trailing_slash(self): self.assertEqual(slumber.url_join("http://example.com/", "test/"), "http://example.com/test/") self.assertEqual(slumber.url_join("http://example.com/", "test/", "example/"), "http://example.com/test/example/") + + def test_url_join_encoded_unicode(self): + expected = "http://example.com/tǝst/" + + url = slumber.url_join("http://example.com/", "tǝst/") + self.assertEqual(url, expected) + + url = slumber.url_join("http://example.com/", "tǝst/".decode('utf8').encode('utf8')) + self.assertEqual(url, expected) + + def test_url_join_decoded_unicode(self): + url = slumber.url_join("http://example.com/", "tǝst/".decode('utf8')) + expected = "http://example.com/tǝst/".decode('utf8') + self.assertEqual(url, expected) -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org