Skip to content

Commit

Permalink
Prepare 0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Apr 25, 2020
1 parent 8cc7db8 commit 0aede70
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.12.1
------
2020-04-25

- Correctly handling domain names ending with dot(s).

0.12
----
2020-04-19
Expand Down
6 changes: 6 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.12.1
------
2020-04-25

- Correctly handling domain names ending with dot(s).

0.12
----
2020-04-19
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
except:
readme = ''

version = '0.12'
version = '0.12.1'

py_where = './src'
py_package_dir = 'src'
Expand Down
2 changes: 1 addition & 1 deletion src/tld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
)

__title__ = 'tld'
__version__ = '0.12'
__version__ = '0.12.1'
__author__ = 'Artur Barseghyan'
__copyright__ = '2013-2020 Artur Barseghyan'
__license__ = 'MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later'
Expand Down
12 changes: 12 additions & 0 deletions src/tld/res/effective_tld_names.dat.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10980,6 +10980,10 @@ cleverapps.io
*.lcl.dev
*.stg.dev

// Clic2000 : https://clic2000.fr
// Submitted by Mathilde Blanchemanche <[email protected]>
clic2000.net

// Cloud66 : https://www.cloud66.com/
// Submitted by Khash Sajadi <[email protected]>
c66.me
Expand Down Expand Up @@ -12791,6 +12795,10 @@ myshopblocks.com
// Submitted by Craig McMahon <[email protected]>
shopitsite.com

// shopware AG : https://shopware.com
// Submitted by Jens Küper <[email protected]>
shopware.store

// Siemens Mobility GmbH
// Submitted by Oliver Graebner <[email protected]>
mo-siemens.io
Expand Down Expand Up @@ -13131,4 +13139,8 @@ basicserver.io
virtualserver.io
enterprisecloud.nu

// Mintere : https://mintere.com/
// Submitted by Ben Aubin <[email protected]>
mintere.site

// ===END PRIVATE DOMAINS===
9 changes: 9 additions & 0 deletions src/tld/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,15 @@ def setUp(self):
'tld': 'fr',
'kwargs': {'fail_silently': True}
},
{
'url': 'https://github.com....../barseghyanartur/tld/',
'fld': 'github.com',
'subdomain': '',
'domain': 'github',
'suffix': 'com',
'tld': 'com',
'kwargs': {'fail_silently': True}
},
]

self.bad_patterns = {
Expand Down
5 changes: 5 additions & 0 deletions src/tld/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ def process_url(
else:
raise TldBadUrl(url=url)

# This will correctly handle dots at the end of domain name in URLs like
# https://github.com............/barseghyanartur/tld/
if domain_name.endswith('.'):
domain_name = domain_name.rstrip('.')

domain_parts = domain_name.split('.')
tld_names_local_path = parser_class.local_path

Expand Down

0 comments on commit 0aede70

Please sign in to comment.