rigid 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/rigid +4 -0
- data/rigid +16 -0
- data/vendor/PyYAML-3.12.dist-info/DESCRIPTION.rst +12 -0
- data/vendor/PyYAML-3.12.dist-info/INSTALLER +1 -0
- data/vendor/PyYAML-3.12.dist-info/METADATA +35 -0
- data/vendor/PyYAML-3.12.dist-info/RECORD +42 -0
- data/vendor/PyYAML-3.12.dist-info/WHEEL +5 -0
- data/vendor/PyYAML-3.12.dist-info/metadata.json +1 -0
- data/vendor/PyYAML-3.12.dist-info/top_level.txt +2 -0
- data/vendor/_yaml.so +0 -0
- data/vendor/click/__init__.py +98 -0
- data/vendor/click/__init__.pyc +0 -0
- data/vendor/click/_bashcomplete.py +83 -0
- data/vendor/click/_bashcomplete.pyc +0 -0
- data/vendor/click/_compat.py +642 -0
- data/vendor/click/_compat.pyc +0 -0
- data/vendor/click/_termui_impl.py +547 -0
- data/vendor/click/_termui_impl.pyc +0 -0
- data/vendor/click/_textwrap.py +38 -0
- data/vendor/click/_textwrap.pyc +0 -0
- data/vendor/click/_unicodefun.py +119 -0
- data/vendor/click/_unicodefun.pyc +0 -0
- data/vendor/click/_winconsole.py +273 -0
- data/vendor/click/_winconsole.pyc +0 -0
- data/vendor/click/core.py +1738 -0
- data/vendor/click/core.pyc +0 -0
- data/vendor/click/decorators.py +304 -0
- data/vendor/click/decorators.pyc +0 -0
- data/vendor/click/exceptions.py +201 -0
- data/vendor/click/exceptions.pyc +0 -0
- data/vendor/click/formatting.py +256 -0
- data/vendor/click/formatting.pyc +0 -0
- data/vendor/click/globals.py +48 -0
- data/vendor/click/globals.pyc +0 -0
- data/vendor/click/parser.py +426 -0
- data/vendor/click/parser.pyc +0 -0
- data/vendor/click/termui.py +539 -0
- data/vendor/click/termui.pyc +0 -0
- data/vendor/click/testing.py +322 -0
- data/vendor/click/testing.pyc +0 -0
- data/vendor/click/types.py +550 -0
- data/vendor/click/types.pyc +0 -0
- data/vendor/click/utils.py +415 -0
- data/vendor/click/utils.pyc +0 -0
- data/vendor/click-6.6.dist-info/DESCRIPTION.rst +3 -0
- data/vendor/click-6.6.dist-info/INSTALLER +1 -0
- data/vendor/click-6.6.dist-info/METADATA +16 -0
- data/vendor/click-6.6.dist-info/RECORD +41 -0
- data/vendor/click-6.6.dist-info/WHEEL +6 -0
- data/vendor/click-6.6.dist-info/metadata.json +1 -0
- data/vendor/click-6.6.dist-info/top_level.txt +1 -0
- data/vendor/easy_install.py +5 -0
- data/vendor/easy_install.pyc +0 -0
- data/vendor/pip-9.0.1.dist-info/DESCRIPTION.rst +39 -0
- data/vendor/pip-9.0.1.dist-info/INSTALLER +1 -0
- data/vendor/pip-9.0.1.dist-info/METADATA +69 -0
- data/vendor/pip-9.0.1.dist-info/RECORD +501 -0
- data/vendor/pip-9.0.1.dist-info/WHEEL +6 -0
- data/vendor/pip-9.0.1.dist-info/entry_points.txt +5 -0
- data/vendor/pip-9.0.1.dist-info/metadata.json +1 -0
- data/vendor/pip-9.0.1.dist-info/top_level.txt +1 -0
- data/vendor/pkg_resources/__init__.py +3051 -0
- data/vendor/pkg_resources/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/__init__.py +0 -0
- data/vendor/pkg_resources/_vendor/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/appdirs.py +552 -0
- data/vendor/pkg_resources/_vendor/appdirs.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/__about__.py +21 -0
- data/vendor/pkg_resources/_vendor/packaging/__about__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/__init__.py +14 -0
- data/vendor/pkg_resources/_vendor/packaging/__init__.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/_compat.py +30 -0
- data/vendor/pkg_resources/_vendor/packaging/_compat.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/_structures.py +68 -0
- data/vendor/pkg_resources/_vendor/packaging/_structures.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/markers.py +287 -0
- data/vendor/pkg_resources/_vendor/packaging/markers.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/requirements.py +127 -0
- data/vendor/pkg_resources/_vendor/packaging/requirements.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/specifiers.py +774 -0
- data/vendor/pkg_resources/_vendor/packaging/specifiers.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/utils.py +14 -0
- data/vendor/pkg_resources/_vendor/packaging/utils.pyc +0 -0
- data/vendor/pkg_resources/_vendor/packaging/version.py +393 -0
- data/vendor/pkg_resources/_vendor/packaging/version.pyc +0 -0
- data/vendor/pkg_resources/_vendor/pyparsing.py +5696 -0
- data/vendor/pkg_resources/_vendor/pyparsing.pyc +0 -0
- data/vendor/pkg_resources/_vendor/six.py +868 -0
- data/vendor/pkg_resources/_vendor/six.pyc +0 -0
- data/vendor/pkg_resources/extern/__init__.py +73 -0
- data/vendor/pkg_resources/extern/__init__.pyc +0 -0
- data/vendor/requests/__init__.py +86 -0
- data/vendor/requests/__init__.pyc +0 -0
- data/vendor/requests/adapters.py +503 -0
- data/vendor/requests/adapters.pyc +0 -0
- data/vendor/requests/api.py +148 -0
- data/vendor/requests/api.pyc +0 -0
- data/vendor/requests/auth.py +252 -0
- data/vendor/requests/auth.pyc +0 -0
- data/vendor/requests/cacert.pem +5616 -0
- data/vendor/requests/certs.py +25 -0
- data/vendor/requests/certs.pyc +0 -0
- data/vendor/requests/compat.py +66 -0
- data/vendor/requests/compat.pyc +0 -0
- data/vendor/requests/cookies.py +540 -0
- data/vendor/requests/cookies.pyc +0 -0
- data/vendor/requests/exceptions.py +114 -0
- data/vendor/requests/exceptions.pyc +0 -0
- data/vendor/requests/hooks.py +34 -0
- data/vendor/requests/hooks.pyc +0 -0
- data/vendor/requests/models.py +873 -0
- data/vendor/requests/models.pyc +0 -0
- data/vendor/requests/packages/__init__.py +36 -0
- data/vendor/requests/packages/__init__.pyc +0 -0
- data/vendor/requests/packages/chardet/__init__.py +32 -0
- data/vendor/requests/packages/chardet/__init__.pyc +0 -0
- data/vendor/requests/packages/chardet/big5freq.py +925 -0
- data/vendor/requests/packages/chardet/big5freq.pyc +0 -0
- data/vendor/requests/packages/chardet/big5prober.py +42 -0
- data/vendor/requests/packages/chardet/big5prober.pyc +0 -0
- data/vendor/requests/packages/chardet/chardetect.py +80 -0
- data/vendor/requests/packages/chardet/chardetect.pyc +0 -0
- data/vendor/requests/packages/chardet/chardistribution.py +231 -0
- data/vendor/requests/packages/chardet/chardistribution.pyc +0 -0
- data/vendor/requests/packages/chardet/charsetgroupprober.py +106 -0
- data/vendor/requests/packages/chardet/charsetgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/charsetprober.py +62 -0
- data/vendor/requests/packages/chardet/charsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/codingstatemachine.py +61 -0
- data/vendor/requests/packages/chardet/codingstatemachine.pyc +0 -0
- data/vendor/requests/packages/chardet/compat.py +34 -0
- data/vendor/requests/packages/chardet/compat.pyc +0 -0
- data/vendor/requests/packages/chardet/constants.py +39 -0
- data/vendor/requests/packages/chardet/constants.pyc +0 -0
- data/vendor/requests/packages/chardet/cp949prober.py +44 -0
- data/vendor/requests/packages/chardet/cp949prober.pyc +0 -0
- data/vendor/requests/packages/chardet/escprober.py +86 -0
- data/vendor/requests/packages/chardet/escprober.pyc +0 -0
- data/vendor/requests/packages/chardet/escsm.py +242 -0
- data/vendor/requests/packages/chardet/escsm.pyc +0 -0
- data/vendor/requests/packages/chardet/eucjpprober.py +90 -0
- data/vendor/requests/packages/chardet/eucjpprober.pyc +0 -0
- data/vendor/requests/packages/chardet/euckrfreq.py +596 -0
- data/vendor/requests/packages/chardet/euckrfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/euckrprober.py +42 -0
- data/vendor/requests/packages/chardet/euckrprober.pyc +0 -0
- data/vendor/requests/packages/chardet/euctwfreq.py +428 -0
- data/vendor/requests/packages/chardet/euctwfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/euctwprober.py +41 -0
- data/vendor/requests/packages/chardet/euctwprober.pyc +0 -0
- data/vendor/requests/packages/chardet/gb2312freq.py +472 -0
- data/vendor/requests/packages/chardet/gb2312freq.pyc +0 -0
- data/vendor/requests/packages/chardet/gb2312prober.py +41 -0
- data/vendor/requests/packages/chardet/gb2312prober.pyc +0 -0
- data/vendor/requests/packages/chardet/hebrewprober.py +283 -0
- data/vendor/requests/packages/chardet/hebrewprober.pyc +0 -0
- data/vendor/requests/packages/chardet/jisfreq.py +569 -0
- data/vendor/requests/packages/chardet/jisfreq.pyc +0 -0
- data/vendor/requests/packages/chardet/jpcntx.py +227 -0
- data/vendor/requests/packages/chardet/jpcntx.pyc +0 -0
- data/vendor/requests/packages/chardet/langbulgarianmodel.py +229 -0
- data/vendor/requests/packages/chardet/langbulgarianmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langcyrillicmodel.py +329 -0
- data/vendor/requests/packages/chardet/langcyrillicmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langgreekmodel.py +225 -0
- data/vendor/requests/packages/chardet/langgreekmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langhebrewmodel.py +201 -0
- data/vendor/requests/packages/chardet/langhebrewmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langhungarianmodel.py +225 -0
- data/vendor/requests/packages/chardet/langhungarianmodel.pyc +0 -0
- data/vendor/requests/packages/chardet/langthaimodel.py +200 -0
- data/vendor/requests/packages/chardet/langthaimodel.pyc +0 -0
- data/vendor/requests/packages/chardet/latin1prober.py +139 -0
- data/vendor/requests/packages/chardet/latin1prober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcharsetprober.py +86 -0
- data/vendor/requests/packages/chardet/mbcharsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcsgroupprober.py +54 -0
- data/vendor/requests/packages/chardet/mbcsgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/mbcssm.py +572 -0
- data/vendor/requests/packages/chardet/mbcssm.pyc +0 -0
- data/vendor/requests/packages/chardet/sbcharsetprober.py +120 -0
- data/vendor/requests/packages/chardet/sbcharsetprober.pyc +0 -0
- data/vendor/requests/packages/chardet/sbcsgroupprober.py +69 -0
- data/vendor/requests/packages/chardet/sbcsgroupprober.pyc +0 -0
- data/vendor/requests/packages/chardet/sjisprober.py +91 -0
- data/vendor/requests/packages/chardet/sjisprober.pyc +0 -0
- data/vendor/requests/packages/chardet/universaldetector.py +170 -0
- data/vendor/requests/packages/chardet/universaldetector.pyc +0 -0
- data/vendor/requests/packages/chardet/utf8prober.py +76 -0
- data/vendor/requests/packages/chardet/utf8prober.pyc +0 -0
- data/vendor/requests/packages/urllib3/__init__.py +96 -0
- data/vendor/requests/packages/urllib3/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/_collections.py +324 -0
- data/vendor/requests/packages/urllib3/_collections.pyc +0 -0
- data/vendor/requests/packages/urllib3/connection.py +330 -0
- data/vendor/requests/packages/urllib3/connection.pyc +0 -0
- data/vendor/requests/packages/urllib3/connectionpool.py +866 -0
- data/vendor/requests/packages/urllib3/connectionpool.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/__init__.py +0 -0
- data/vendor/requests/packages/urllib3/contrib/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/appengine.py +231 -0
- data/vendor/requests/packages/urllib3/contrib/appengine.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/ntlmpool.py +115 -0
- data/vendor/requests/packages/urllib3/contrib/ntlmpool.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/pyopenssl.py +358 -0
- data/vendor/requests/packages/urllib3/contrib/pyopenssl.pyc +0 -0
- data/vendor/requests/packages/urllib3/contrib/socks.py +172 -0
- data/vendor/requests/packages/urllib3/contrib/socks.pyc +0 -0
- data/vendor/requests/packages/urllib3/exceptions.py +209 -0
- data/vendor/requests/packages/urllib3/exceptions.pyc +0 -0
- data/vendor/requests/packages/urllib3/fields.py +178 -0
- data/vendor/requests/packages/urllib3/fields.pyc +0 -0
- data/vendor/requests/packages/urllib3/filepost.py +94 -0
- data/vendor/requests/packages/urllib3/filepost.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/__init__.py +5 -0
- data/vendor/requests/packages/urllib3/packages/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ordered_dict.py +259 -0
- data/vendor/requests/packages/urllib3/packages/ordered_dict.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/six.py +868 -0
- data/vendor/requests/packages/urllib3/packages/six.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.py +13 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.py +105 -0
- data/vendor/requests/packages/urllib3/packages/ssl_match_hostname/_implementation.pyc +0 -0
- data/vendor/requests/packages/urllib3/poolmanager.py +367 -0
- data/vendor/requests/packages/urllib3/poolmanager.pyc +0 -0
- data/vendor/requests/packages/urllib3/request.py +151 -0
- data/vendor/requests/packages/urllib3/request.pyc +0 -0
- data/vendor/requests/packages/urllib3/response.py +530 -0
- data/vendor/requests/packages/urllib3/response.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/__init__.py +46 -0
- data/vendor/requests/packages/urllib3/util/__init__.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/connection.py +144 -0
- data/vendor/requests/packages/urllib3/util/connection.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/request.py +72 -0
- data/vendor/requests/packages/urllib3/util/request.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/response.py +74 -0
- data/vendor/requests/packages/urllib3/util/response.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/retry.py +300 -0
- data/vendor/requests/packages/urllib3/util/retry.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/ssl_.py +320 -0
- data/vendor/requests/packages/urllib3/util/ssl_.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/timeout.py +242 -0
- data/vendor/requests/packages/urllib3/util/timeout.pyc +0 -0
- data/vendor/requests/packages/urllib3/util/url.py +217 -0
- data/vendor/requests/packages/urllib3/util/url.pyc +0 -0
- data/vendor/requests/sessions.py +712 -0
- data/vendor/requests/sessions.pyc +0 -0
- data/vendor/requests/status_codes.py +91 -0
- data/vendor/requests/status_codes.pyc +0 -0
- data/vendor/requests/structures.py +105 -0
- data/vendor/requests/structures.pyc +0 -0
- data/vendor/requests/utils.py +817 -0
- data/vendor/requests/utils.pyc +0 -0
- data/vendor/requests-2.11.1.dist-info/DESCRIPTION.rst +1294 -0
- data/vendor/requests-2.11.1.dist-info/INSTALLER +1 -0
- data/vendor/requests-2.11.1.dist-info/METADATA +1323 -0
- data/vendor/requests-2.11.1.dist-info/RECORD +170 -0
- data/vendor/requests-2.11.1.dist-info/WHEEL +6 -0
- data/vendor/requests-2.11.1.dist-info/metadata.json +1 -0
- data/vendor/requests-2.11.1.dist-info/top_level.txt +1 -0
- data/vendor/rigid/__init__.py +1 -0
- data/vendor/rigid/__init__.pyc +0 -0
- data/vendor/rigid/api.py +129 -0
- data/vendor/rigid/api.pyc +0 -0
- data/vendor/rigid/commands/__init__.py +260 -0
- data/vendor/rigid/commands/__init__.pyc +0 -0
- data/vendor/rigid/commands/deploy.py +0 -0
- data/vendor/rigid/commands/deploy.pyc +0 -0
- data/vendor/rigid/deploy.py +70 -0
- data/vendor/rigid/deploy.pyc +0 -0
- data/vendor/rigid/file_scanner.py +63 -0
- data/vendor/rigid/file_scanner.pyc +0 -0
- data/vendor/rigid/utils.py +17 -0
- data/vendor/rigid/utils.pyc +0 -0
- data/vendor/rigid-0.2.0.dist-info/DESCRIPTION.rst +3 -0
- data/vendor/rigid-0.2.0.dist-info/INSTALLER +1 -0
- data/vendor/rigid-0.2.0.dist-info/METADATA +23 -0
- data/vendor/rigid-0.2.0.dist-info/RECORD +49 -0
- data/vendor/rigid-0.2.0.dist-info/WHEEL +5 -0
- data/vendor/rigid-0.2.0.dist-info/entry_points.txt +3 -0
- data/vendor/rigid-0.2.0.dist-info/metadata.json +1 -0
- data/vendor/rigid-0.2.0.dist-info/top_level.txt +2 -0
- data/vendor/setuptools-28.8.0.dist-info/DESCRIPTION.rst +243 -0
- data/vendor/setuptools-28.8.0.dist-info/INSTALLER +1 -0
- data/vendor/setuptools-28.8.0.dist-info/METADATA +272 -0
- data/vendor/setuptools-28.8.0.dist-info/RECORD +143 -0
- data/vendor/setuptools-28.8.0.dist-info/WHEEL +6 -0
- data/vendor/setuptools-28.8.0.dist-info/dependency_links.txt +2 -0
- data/vendor/setuptools-28.8.0.dist-info/entry_points.txt +63 -0
- data/vendor/setuptools-28.8.0.dist-info/metadata.json +1 -0
- data/vendor/setuptools-28.8.0.dist-info/top_level.txt +3 -0
- data/vendor/setuptools-28.8.0.dist-info/zip-safe +1 -0
- data/vendor/tests/__init__.py +0 -0
- data/vendor/tests/__init__.pyc +0 -0
- data/vendor/tests/integration/__init__.py +0 -0
- data/vendor/tests/integration/__init__.pyc +0 -0
- data/vendor/tests/integration/test_app.py +63 -0
- data/vendor/tests/integration/test_app.pyc +0 -0
- data/vendor/tests/integration/test_apps.py +27 -0
- data/vendor/tests/integration/test_apps.pyc +0 -0
- data/vendor/tests/integration/test_deploy.py +128 -0
- data/vendor/tests/integration/test_deploy.pyc +0 -0
- data/vendor/tests/integration/test_domains.py +35 -0
- data/vendor/tests/integration/test_domains.pyc +0 -0
- data/vendor/tests/integration/test_login.py +37 -0
- data/vendor/tests/integration/test_login.pyc +0 -0
- data/vendor/tests/integration/test_promote.py +24 -0
- data/vendor/tests/integration/test_promote.pyc +0 -0
- data/vendor/tests/integration/test_token.py +33 -0
- data/vendor/tests/integration/test_token.pyc +0 -0
- data/vendor/tests/integration/test_whoami.py +24 -0
- data/vendor/tests/integration/test_whoami.pyc +0 -0
- data/vendor/tests/test_deploy.py +33 -0
- data/vendor/tests/test_deploy.pyc +0 -0
- data/vendor/tests/test_file_scanner.py +89 -0
- data/vendor/tests/test_file_scanner.pyc +0 -0
- data/vendor/tests/utils.py +78 -0
- data/vendor/tests/utils.pyc +0 -0
- data/vendor/wheel-0.30.0a0.dist-info/DESCRIPTION.rst +325 -0
- data/vendor/wheel-0.30.0a0.dist-info/INSTALLER +1 -0
- data/vendor/wheel-0.30.0a0.dist-info/LICENSE.txt +22 -0
- data/vendor/wheel-0.30.0a0.dist-info/METADATA +357 -0
- data/vendor/wheel-0.30.0a0.dist-info/RECORD +86 -0
- data/vendor/wheel-0.30.0a0.dist-info/WHEEL +6 -0
- data/vendor/wheel-0.30.0a0.dist-info/entry_points.txt +6 -0
- data/vendor/wheel-0.30.0a0.dist-info/metadata.json +1 -0
- data/vendor/wheel-0.30.0a0.dist-info/top_level.txt +1 -0
- data/vendor/yaml/__init__.py +315 -0
- data/vendor/yaml/__init__.pyc +0 -0
- data/vendor/yaml/composer.py +139 -0
- data/vendor/yaml/composer.pyc +0 -0
- data/vendor/yaml/constructor.py +675 -0
- data/vendor/yaml/constructor.pyc +0 -0
- data/vendor/yaml/cyaml.py +85 -0
- data/vendor/yaml/cyaml.pyc +0 -0
- data/vendor/yaml/dumper.py +62 -0
- data/vendor/yaml/dumper.pyc +0 -0
- data/vendor/yaml/emitter.py +1140 -0
- data/vendor/yaml/emitter.pyc +0 -0
- data/vendor/yaml/error.py +75 -0
- data/vendor/yaml/error.pyc +0 -0
- data/vendor/yaml/events.py +86 -0
- data/vendor/yaml/events.pyc +0 -0
- data/vendor/yaml/loader.py +40 -0
- data/vendor/yaml/loader.pyc +0 -0
- data/vendor/yaml/nodes.py +49 -0
- data/vendor/yaml/nodes.pyc +0 -0
- data/vendor/yaml/parser.py +589 -0
- data/vendor/yaml/parser.pyc +0 -0
- data/vendor/yaml/reader.py +190 -0
- data/vendor/yaml/reader.pyc +0 -0
- data/vendor/yaml/representer.py +486 -0
- data/vendor/yaml/representer.pyc +0 -0
- data/vendor/yaml/resolver.py +227 -0
- data/vendor/yaml/resolver.pyc +0 -0
- data/vendor/yaml/scanner.py +1453 -0
- data/vendor/yaml/scanner.pyc +0 -0
- data/vendor/yaml/serializer.py +111 -0
- data/vendor/yaml/serializer.pyc +0 -0
- data/vendor/yaml/tokens.py +104 -0
- data/vendor/yaml/tokens.pyc +0 -0
- metadata +407 -0
@@ -0,0 +1,283 @@
|
|
1
|
+
######################## BEGIN LICENSE BLOCK ########################
|
2
|
+
# The Original Code is Mozilla Universal charset detector code.
|
3
|
+
#
|
4
|
+
# The Initial Developer of the Original Code is
|
5
|
+
# Shy Shalom
|
6
|
+
# Portions created by the Initial Developer are Copyright (C) 2005
|
7
|
+
# the Initial Developer. All Rights Reserved.
|
8
|
+
#
|
9
|
+
# Contributor(s):
|
10
|
+
# Mark Pilgrim - port to Python
|
11
|
+
#
|
12
|
+
# This library is free software; you can redistribute it and/or
|
13
|
+
# modify it under the terms of the GNU Lesser General Public
|
14
|
+
# License as published by the Free Software Foundation; either
|
15
|
+
# version 2.1 of the License, or (at your option) any later version.
|
16
|
+
#
|
17
|
+
# This library is distributed in the hope that it will be useful,
|
18
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
20
|
+
# Lesser General Public License for more details.
|
21
|
+
#
|
22
|
+
# You should have received a copy of the GNU Lesser General Public
|
23
|
+
# License along with this library; if not, write to the Free Software
|
24
|
+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
|
25
|
+
# 02110-1301 USA
|
26
|
+
######################### END LICENSE BLOCK #########################
|
27
|
+
|
28
|
+
from .charsetprober import CharSetProber
|
29
|
+
from .constants import eNotMe, eDetecting
|
30
|
+
from .compat import wrap_ord
|
31
|
+
|
32
|
+
# This prober doesn't actually recognize a language or a charset.
|
33
|
+
# It is a helper prober for the use of the Hebrew model probers
|
34
|
+
|
35
|
+
### General ideas of the Hebrew charset recognition ###
|
36
|
+
#
|
37
|
+
# Four main charsets exist in Hebrew:
|
38
|
+
# "ISO-8859-8" - Visual Hebrew
|
39
|
+
# "windows-1255" - Logical Hebrew
|
40
|
+
# "ISO-8859-8-I" - Logical Hebrew
|
41
|
+
# "x-mac-hebrew" - ?? Logical Hebrew ??
|
42
|
+
#
|
43
|
+
# Both "ISO" charsets use a completely identical set of code points, whereas
|
44
|
+
# "windows-1255" and "x-mac-hebrew" are two different proper supersets of
|
45
|
+
# these code points. windows-1255 defines additional characters in the range
|
46
|
+
# 0x80-0x9F as some misc punctuation marks as well as some Hebrew-specific
|
47
|
+
# diacritics and additional 'Yiddish' ligature letters in the range 0xc0-0xd6.
|
48
|
+
# x-mac-hebrew defines similar additional code points but with a different
|
49
|
+
# mapping.
|
50
|
+
#
|
51
|
+
# As far as an average Hebrew text with no diacritics is concerned, all four
|
52
|
+
# charsets are identical with respect to code points. Meaning that for the
|
53
|
+
# main Hebrew alphabet, all four map the same values to all 27 Hebrew letters
|
54
|
+
# (including final letters).
|
55
|
+
#
|
56
|
+
# The dominant difference between these charsets is their directionality.
|
57
|
+
# "Visual" directionality means that the text is ordered as if the renderer is
|
58
|
+
# not aware of a BIDI rendering algorithm. The renderer sees the text and
|
59
|
+
# draws it from left to right. The text itself when ordered naturally is read
|
60
|
+
# backwards. A buffer of Visual Hebrew generally looks like so:
|
61
|
+
# "[last word of first line spelled backwards] [whole line ordered backwards
|
62
|
+
# and spelled backwards] [first word of first line spelled backwards]
|
63
|
+
# [end of line] [last word of second line] ... etc' "
|
64
|
+
# adding punctuation marks, numbers and English text to visual text is
|
65
|
+
# naturally also "visual" and from left to right.
|
66
|
+
#
|
67
|
+
# "Logical" directionality means the text is ordered "naturally" according to
|
68
|
+
# the order it is read. It is the responsibility of the renderer to display
|
69
|
+
# the text from right to left. A BIDI algorithm is used to place general
|
70
|
+
# punctuation marks, numbers and English text in the text.
|
71
|
+
#
|
72
|
+
# Texts in x-mac-hebrew are almost impossible to find on the Internet. From
|
73
|
+
# what little evidence I could find, it seems that its general directionality
|
74
|
+
# is Logical.
|
75
|
+
#
|
76
|
+
# To sum up all of the above, the Hebrew probing mechanism knows about two
|
77
|
+
# charsets:
|
78
|
+
# Visual Hebrew - "ISO-8859-8" - backwards text - Words and sentences are
|
79
|
+
# backwards while line order is natural. For charset recognition purposes
|
80
|
+
# the line order is unimportant (In fact, for this implementation, even
|
81
|
+
# word order is unimportant).
|
82
|
+
# Logical Hebrew - "windows-1255" - normal, naturally ordered text.
|
83
|
+
#
|
84
|
+
# "ISO-8859-8-I" is a subset of windows-1255 and doesn't need to be
|
85
|
+
# specifically identified.
|
86
|
+
# "x-mac-hebrew" is also identified as windows-1255. A text in x-mac-hebrew
|
87
|
+
# that contain special punctuation marks or diacritics is displayed with
|
88
|
+
# some unconverted characters showing as question marks. This problem might
|
89
|
+
# be corrected using another model prober for x-mac-hebrew. Due to the fact
|
90
|
+
# that x-mac-hebrew texts are so rare, writing another model prober isn't
|
91
|
+
# worth the effort and performance hit.
|
92
|
+
#
|
93
|
+
#### The Prober ####
|
94
|
+
#
|
95
|
+
# The prober is divided between two SBCharSetProbers and a HebrewProber,
|
96
|
+
# all of which are managed, created, fed data, inquired and deleted by the
|
97
|
+
# SBCSGroupProber. The two SBCharSetProbers identify that the text is in
|
98
|
+
# fact some kind of Hebrew, Logical or Visual. The final decision about which
|
99
|
+
# one is it is made by the HebrewProber by combining final-letter scores
|
100
|
+
# with the scores of the two SBCharSetProbers to produce a final answer.
|
101
|
+
#
|
102
|
+
# The SBCSGroupProber is responsible for stripping the original text of HTML
|
103
|
+
# tags, English characters, numbers, low-ASCII punctuation characters, spaces
|
104
|
+
# and new lines. It reduces any sequence of such characters to a single space.
|
105
|
+
# The buffer fed to each prober in the SBCS group prober is pure text in
|
106
|
+
# high-ASCII.
|
107
|
+
# The two SBCharSetProbers (model probers) share the same language model:
|
108
|
+
# Win1255Model.
|
109
|
+
# The first SBCharSetProber uses the model normally as any other
|
110
|
+
# SBCharSetProber does, to recognize windows-1255, upon which this model was
|
111
|
+
# built. The second SBCharSetProber is told to make the pair-of-letter
|
112
|
+
# lookup in the language model backwards. This in practice exactly simulates
|
113
|
+
# a visual Hebrew model using the windows-1255 logical Hebrew model.
|
114
|
+
#
|
115
|
+
# The HebrewProber is not using any language model. All it does is look for
|
116
|
+
# final-letter evidence suggesting the text is either logical Hebrew or visual
|
117
|
+
# Hebrew. Disjointed from the model probers, the results of the HebrewProber
|
118
|
+
# alone are meaningless. HebrewProber always returns 0.00 as confidence
|
119
|
+
# since it never identifies a charset by itself. Instead, the pointer to the
|
120
|
+
# HebrewProber is passed to the model probers as a helper "Name Prober".
|
121
|
+
# When the Group prober receives a positive identification from any prober,
|
122
|
+
# it asks for the name of the charset identified. If the prober queried is a
|
123
|
+
# Hebrew model prober, the model prober forwards the call to the
|
124
|
+
# HebrewProber to make the final decision. In the HebrewProber, the
|
125
|
+
# decision is made according to the final-letters scores maintained and Both
|
126
|
+
# model probers scores. The answer is returned in the form of the name of the
|
127
|
+
# charset identified, either "windows-1255" or "ISO-8859-8".
|
128
|
+
|
129
|
+
# windows-1255 / ISO-8859-8 code points of interest
|
130
|
+
FINAL_KAF = 0xea
|
131
|
+
NORMAL_KAF = 0xeb
|
132
|
+
FINAL_MEM = 0xed
|
133
|
+
NORMAL_MEM = 0xee
|
134
|
+
FINAL_NUN = 0xef
|
135
|
+
NORMAL_NUN = 0xf0
|
136
|
+
FINAL_PE = 0xf3
|
137
|
+
NORMAL_PE = 0xf4
|
138
|
+
FINAL_TSADI = 0xf5
|
139
|
+
NORMAL_TSADI = 0xf6
|
140
|
+
|
141
|
+
# Minimum Visual vs Logical final letter score difference.
|
142
|
+
# If the difference is below this, don't rely solely on the final letter score
|
143
|
+
# distance.
|
144
|
+
MIN_FINAL_CHAR_DISTANCE = 5
|
145
|
+
|
146
|
+
# Minimum Visual vs Logical model score difference.
|
147
|
+
# If the difference is below this, don't rely at all on the model score
|
148
|
+
# distance.
|
149
|
+
MIN_MODEL_DISTANCE = 0.01
|
150
|
+
|
151
|
+
VISUAL_HEBREW_NAME = "ISO-8859-8"
|
152
|
+
LOGICAL_HEBREW_NAME = "windows-1255"
|
153
|
+
|
154
|
+
|
155
|
+
class HebrewProber(CharSetProber):
|
156
|
+
def __init__(self):
|
157
|
+
CharSetProber.__init__(self)
|
158
|
+
self._mLogicalProber = None
|
159
|
+
self._mVisualProber = None
|
160
|
+
self.reset()
|
161
|
+
|
162
|
+
def reset(self):
|
163
|
+
self._mFinalCharLogicalScore = 0
|
164
|
+
self._mFinalCharVisualScore = 0
|
165
|
+
# The two last characters seen in the previous buffer,
|
166
|
+
# mPrev and mBeforePrev are initialized to space in order to simulate
|
167
|
+
# a word delimiter at the beginning of the data
|
168
|
+
self._mPrev = ' '
|
169
|
+
self._mBeforePrev = ' '
|
170
|
+
# These probers are owned by the group prober.
|
171
|
+
|
172
|
+
def set_model_probers(self, logicalProber, visualProber):
|
173
|
+
self._mLogicalProber = logicalProber
|
174
|
+
self._mVisualProber = visualProber
|
175
|
+
|
176
|
+
def is_final(self, c):
|
177
|
+
return wrap_ord(c) in [FINAL_KAF, FINAL_MEM, FINAL_NUN, FINAL_PE,
|
178
|
+
FINAL_TSADI]
|
179
|
+
|
180
|
+
def is_non_final(self, c):
|
181
|
+
# The normal Tsadi is not a good Non-Final letter due to words like
|
182
|
+
# 'lechotet' (to chat) containing an apostrophe after the tsadi. This
|
183
|
+
# apostrophe is converted to a space in FilterWithoutEnglishLetters
|
184
|
+
# causing the Non-Final tsadi to appear at an end of a word even
|
185
|
+
# though this is not the case in the original text.
|
186
|
+
# The letters Pe and Kaf rarely display a related behavior of not being
|
187
|
+
# a good Non-Final letter. Words like 'Pop', 'Winamp' and 'Mubarak'
|
188
|
+
# for example legally end with a Non-Final Pe or Kaf. However, the
|
189
|
+
# benefit of these letters as Non-Final letters outweighs the damage
|
190
|
+
# since these words are quite rare.
|
191
|
+
return wrap_ord(c) in [NORMAL_KAF, NORMAL_MEM, NORMAL_NUN, NORMAL_PE]
|
192
|
+
|
193
|
+
def feed(self, aBuf):
|
194
|
+
# Final letter analysis for logical-visual decision.
|
195
|
+
# Look for evidence that the received buffer is either logical Hebrew
|
196
|
+
# or visual Hebrew.
|
197
|
+
# The following cases are checked:
|
198
|
+
# 1) A word longer than 1 letter, ending with a final letter. This is
|
199
|
+
# an indication that the text is laid out "naturally" since the
|
200
|
+
# final letter really appears at the end. +1 for logical score.
|
201
|
+
# 2) A word longer than 1 letter, ending with a Non-Final letter. In
|
202
|
+
# normal Hebrew, words ending with Kaf, Mem, Nun, Pe or Tsadi,
|
203
|
+
# should not end with the Non-Final form of that letter. Exceptions
|
204
|
+
# to this rule are mentioned above in isNonFinal(). This is an
|
205
|
+
# indication that the text is laid out backwards. +1 for visual
|
206
|
+
# score
|
207
|
+
# 3) A word longer than 1 letter, starting with a final letter. Final
|
208
|
+
# letters should not appear at the beginning of a word. This is an
|
209
|
+
# indication that the text is laid out backwards. +1 for visual
|
210
|
+
# score.
|
211
|
+
#
|
212
|
+
# The visual score and logical score are accumulated throughout the
|
213
|
+
# text and are finally checked against each other in GetCharSetName().
|
214
|
+
# No checking for final letters in the middle of words is done since
|
215
|
+
# that case is not an indication for either Logical or Visual text.
|
216
|
+
#
|
217
|
+
# We automatically filter out all 7-bit characters (replace them with
|
218
|
+
# spaces) so the word boundary detection works properly. [MAP]
|
219
|
+
|
220
|
+
if self.get_state() == eNotMe:
|
221
|
+
# Both model probers say it's not them. No reason to continue.
|
222
|
+
return eNotMe
|
223
|
+
|
224
|
+
aBuf = self.filter_high_bit_only(aBuf)
|
225
|
+
|
226
|
+
for cur in aBuf:
|
227
|
+
if cur == ' ':
|
228
|
+
# We stand on a space - a word just ended
|
229
|
+
if self._mBeforePrev != ' ':
|
230
|
+
# next-to-last char was not a space so self._mPrev is not a
|
231
|
+
# 1 letter word
|
232
|
+
if self.is_final(self._mPrev):
|
233
|
+
# case (1) [-2:not space][-1:final letter][cur:space]
|
234
|
+
self._mFinalCharLogicalScore += 1
|
235
|
+
elif self.is_non_final(self._mPrev):
|
236
|
+
# case (2) [-2:not space][-1:Non-Final letter][
|
237
|
+
# cur:space]
|
238
|
+
self._mFinalCharVisualScore += 1
|
239
|
+
else:
|
240
|
+
# Not standing on a space
|
241
|
+
if ((self._mBeforePrev == ' ') and
|
242
|
+
(self.is_final(self._mPrev)) and (cur != ' ')):
|
243
|
+
# case (3) [-2:space][-1:final letter][cur:not space]
|
244
|
+
self._mFinalCharVisualScore += 1
|
245
|
+
self._mBeforePrev = self._mPrev
|
246
|
+
self._mPrev = cur
|
247
|
+
|
248
|
+
# Forever detecting, till the end or until both model probers return
|
249
|
+
# eNotMe (handled above)
|
250
|
+
return eDetecting
|
251
|
+
|
252
|
+
def get_charset_name(self):
|
253
|
+
# Make the decision: is it Logical or Visual?
|
254
|
+
# If the final letter score distance is dominant enough, rely on it.
|
255
|
+
finalsub = self._mFinalCharLogicalScore - self._mFinalCharVisualScore
|
256
|
+
if finalsub >= MIN_FINAL_CHAR_DISTANCE:
|
257
|
+
return LOGICAL_HEBREW_NAME
|
258
|
+
if finalsub <= -MIN_FINAL_CHAR_DISTANCE:
|
259
|
+
return VISUAL_HEBREW_NAME
|
260
|
+
|
261
|
+
# It's not dominant enough, try to rely on the model scores instead.
|
262
|
+
modelsub = (self._mLogicalProber.get_confidence()
|
263
|
+
- self._mVisualProber.get_confidence())
|
264
|
+
if modelsub > MIN_MODEL_DISTANCE:
|
265
|
+
return LOGICAL_HEBREW_NAME
|
266
|
+
if modelsub < -MIN_MODEL_DISTANCE:
|
267
|
+
return VISUAL_HEBREW_NAME
|
268
|
+
|
269
|
+
# Still no good, back to final letter distance, maybe it'll save the
|
270
|
+
# day.
|
271
|
+
if finalsub < 0.0:
|
272
|
+
return VISUAL_HEBREW_NAME
|
273
|
+
|
274
|
+
# (finalsub > 0 - Logical) or (don't know what to do) default to
|
275
|
+
# Logical.
|
276
|
+
return LOGICAL_HEBREW_NAME
|
277
|
+
|
278
|
+
def get_state(self):
|
279
|
+
# Remain active as long as any of the model probers are active.
|
280
|
+
if (self._mLogicalProber.get_state() == eNotMe) and \
|
281
|
+
(self._mVisualProber.get_state() == eNotMe):
|
282
|
+
return eNotMe
|
283
|
+
return eDetecting
|
Binary file
|