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,209 @@
|
|
1
|
+
from __future__ import absolute_import
|
2
|
+
# Base Exceptions
|
3
|
+
|
4
|
+
|
5
|
+
class HTTPError(Exception):
|
6
|
+
"Base exception used by this module."
|
7
|
+
pass
|
8
|
+
|
9
|
+
|
10
|
+
class HTTPWarning(Warning):
|
11
|
+
"Base warning used by this module."
|
12
|
+
pass
|
13
|
+
|
14
|
+
|
15
|
+
class PoolError(HTTPError):
|
16
|
+
"Base exception for errors caused within a pool."
|
17
|
+
def __init__(self, pool, message):
|
18
|
+
self.pool = pool
|
19
|
+
HTTPError.__init__(self, "%s: %s" % (pool, message))
|
20
|
+
|
21
|
+
def __reduce__(self):
|
22
|
+
# For pickling purposes.
|
23
|
+
return self.__class__, (None, None)
|
24
|
+
|
25
|
+
|
26
|
+
class RequestError(PoolError):
|
27
|
+
"Base exception for PoolErrors that have associated URLs."
|
28
|
+
def __init__(self, pool, url, message):
|
29
|
+
self.url = url
|
30
|
+
PoolError.__init__(self, pool, message)
|
31
|
+
|
32
|
+
def __reduce__(self):
|
33
|
+
# For pickling purposes.
|
34
|
+
return self.__class__, (None, self.url, None)
|
35
|
+
|
36
|
+
|
37
|
+
class SSLError(HTTPError):
|
38
|
+
"Raised when SSL certificate fails in an HTTPS connection."
|
39
|
+
pass
|
40
|
+
|
41
|
+
|
42
|
+
class ProxyError(HTTPError):
|
43
|
+
"Raised when the connection to a proxy fails."
|
44
|
+
pass
|
45
|
+
|
46
|
+
|
47
|
+
class DecodeError(HTTPError):
|
48
|
+
"Raised when automatic decoding based on Content-Type fails."
|
49
|
+
pass
|
50
|
+
|
51
|
+
|
52
|
+
class ProtocolError(HTTPError):
|
53
|
+
"Raised when something unexpected happens mid-request/response."
|
54
|
+
pass
|
55
|
+
|
56
|
+
|
57
|
+
#: Renamed to ProtocolError but aliased for backwards compatibility.
|
58
|
+
ConnectionError = ProtocolError
|
59
|
+
|
60
|
+
|
61
|
+
# Leaf Exceptions
|
62
|
+
|
63
|
+
class MaxRetryError(RequestError):
|
64
|
+
"""Raised when the maximum number of retries is exceeded.
|
65
|
+
|
66
|
+
:param pool: The connection pool
|
67
|
+
:type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
|
68
|
+
:param string url: The requested Url
|
69
|
+
:param exceptions.Exception reason: The underlying error
|
70
|
+
|
71
|
+
"""
|
72
|
+
|
73
|
+
def __init__(self, pool, url, reason=None):
|
74
|
+
self.reason = reason
|
75
|
+
|
76
|
+
message = "Max retries exceeded with url: %s (Caused by %r)" % (
|
77
|
+
url, reason)
|
78
|
+
|
79
|
+
RequestError.__init__(self, pool, url, message)
|
80
|
+
|
81
|
+
|
82
|
+
class HostChangedError(RequestError):
|
83
|
+
"Raised when an existing pool gets a request for a foreign host."
|
84
|
+
|
85
|
+
def __init__(self, pool, url, retries=3):
|
86
|
+
message = "Tried to open a foreign host with url: %s" % url
|
87
|
+
RequestError.__init__(self, pool, url, message)
|
88
|
+
self.retries = retries
|
89
|
+
|
90
|
+
|
91
|
+
class TimeoutStateError(HTTPError):
|
92
|
+
""" Raised when passing an invalid state to a timeout """
|
93
|
+
pass
|
94
|
+
|
95
|
+
|
96
|
+
class TimeoutError(HTTPError):
|
97
|
+
""" Raised when a socket timeout error occurs.
|
98
|
+
|
99
|
+
Catching this error will catch both :exc:`ReadTimeoutErrors
|
100
|
+
<ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
|
101
|
+
"""
|
102
|
+
pass
|
103
|
+
|
104
|
+
|
105
|
+
class ReadTimeoutError(TimeoutError, RequestError):
|
106
|
+
"Raised when a socket timeout occurs while receiving data from a server"
|
107
|
+
pass
|
108
|
+
|
109
|
+
|
110
|
+
# This timeout error does not have a URL attached and needs to inherit from the
|
111
|
+
# base HTTPError
|
112
|
+
class ConnectTimeoutError(TimeoutError):
|
113
|
+
"Raised when a socket timeout occurs while connecting to a server"
|
114
|
+
pass
|
115
|
+
|
116
|
+
|
117
|
+
class NewConnectionError(ConnectTimeoutError, PoolError):
|
118
|
+
"Raised when we fail to establish a new connection. Usually ECONNREFUSED."
|
119
|
+
pass
|
120
|
+
|
121
|
+
|
122
|
+
class EmptyPoolError(PoolError):
|
123
|
+
"Raised when a pool runs out of connections and no more are allowed."
|
124
|
+
pass
|
125
|
+
|
126
|
+
|
127
|
+
class ClosedPoolError(PoolError):
|
128
|
+
"Raised when a request enters a pool after the pool has been closed."
|
129
|
+
pass
|
130
|
+
|
131
|
+
|
132
|
+
class LocationValueError(ValueError, HTTPError):
|
133
|
+
"Raised when there is something wrong with a given URL input."
|
134
|
+
pass
|
135
|
+
|
136
|
+
|
137
|
+
class LocationParseError(LocationValueError):
|
138
|
+
"Raised when get_host or similar fails to parse the URL input."
|
139
|
+
|
140
|
+
def __init__(self, location):
|
141
|
+
message = "Failed to parse: %s" % location
|
142
|
+
HTTPError.__init__(self, message)
|
143
|
+
|
144
|
+
self.location = location
|
145
|
+
|
146
|
+
|
147
|
+
class ResponseError(HTTPError):
|
148
|
+
"Used as a container for an error reason supplied in a MaxRetryError."
|
149
|
+
GENERIC_ERROR = 'too many error responses'
|
150
|
+
SPECIFIC_ERROR = 'too many {status_code} error responses'
|
151
|
+
|
152
|
+
|
153
|
+
class SecurityWarning(HTTPWarning):
|
154
|
+
"Warned when perfoming security reducing actions"
|
155
|
+
pass
|
156
|
+
|
157
|
+
|
158
|
+
class SubjectAltNameWarning(SecurityWarning):
|
159
|
+
"Warned when connecting to a host with a certificate missing a SAN."
|
160
|
+
pass
|
161
|
+
|
162
|
+
|
163
|
+
class InsecureRequestWarning(SecurityWarning):
|
164
|
+
"Warned when making an unverified HTTPS request."
|
165
|
+
pass
|
166
|
+
|
167
|
+
|
168
|
+
class SystemTimeWarning(SecurityWarning):
|
169
|
+
"Warned when system time is suspected to be wrong"
|
170
|
+
pass
|
171
|
+
|
172
|
+
|
173
|
+
class InsecurePlatformWarning(SecurityWarning):
|
174
|
+
"Warned when certain SSL configuration is not available on a platform."
|
175
|
+
pass
|
176
|
+
|
177
|
+
|
178
|
+
class SNIMissingWarning(HTTPWarning):
|
179
|
+
"Warned when making a HTTPS request without SNI available."
|
180
|
+
pass
|
181
|
+
|
182
|
+
|
183
|
+
class DependencyWarning(HTTPWarning):
|
184
|
+
"""
|
185
|
+
Warned when an attempt is made to import a module with missing optional
|
186
|
+
dependencies.
|
187
|
+
"""
|
188
|
+
pass
|
189
|
+
|
190
|
+
|
191
|
+
class ResponseNotChunked(ProtocolError, ValueError):
|
192
|
+
"Response needs to be chunked in order to read it as chunks."
|
193
|
+
pass
|
194
|
+
|
195
|
+
|
196
|
+
class ProxySchemeUnknown(AssertionError, ValueError):
|
197
|
+
"ProxyManager does not support the supplied scheme"
|
198
|
+
# TODO(t-8ch): Stop inheriting from AssertionError in v2.0.
|
199
|
+
|
200
|
+
def __init__(self, scheme):
|
201
|
+
message = "Not supported proxy scheme %s" % scheme
|
202
|
+
super(ProxySchemeUnknown, self).__init__(message)
|
203
|
+
|
204
|
+
|
205
|
+
class HeaderParsingError(HTTPError):
|
206
|
+
"Raised by assert_header_parsing, but we convert it to a log.warning statement."
|
207
|
+
def __init__(self, defects, unparsed_data):
|
208
|
+
message = '%s, unparsed data: %r' % (defects or 'Unknown', unparsed_data)
|
209
|
+
super(HeaderParsingError, self).__init__(message)
|
Binary file
|
@@ -0,0 +1,178 @@
|
|
1
|
+
from __future__ import absolute_import
|
2
|
+
import email.utils
|
3
|
+
import mimetypes
|
4
|
+
|
5
|
+
from .packages import six
|
6
|
+
|
7
|
+
|
8
|
+
def guess_content_type(filename, default='application/octet-stream'):
|
9
|
+
"""
|
10
|
+
Guess the "Content-Type" of a file.
|
11
|
+
|
12
|
+
:param filename:
|
13
|
+
The filename to guess the "Content-Type" of using :mod:`mimetypes`.
|
14
|
+
:param default:
|
15
|
+
If no "Content-Type" can be guessed, default to `default`.
|
16
|
+
"""
|
17
|
+
if filename:
|
18
|
+
return mimetypes.guess_type(filename)[0] or default
|
19
|
+
return default
|
20
|
+
|
21
|
+
|
22
|
+
def format_header_param(name, value):
|
23
|
+
"""
|
24
|
+
Helper function to format and quote a single header parameter.
|
25
|
+
|
26
|
+
Particularly useful for header parameters which might contain
|
27
|
+
non-ASCII values, like file names. This follows RFC 2231, as
|
28
|
+
suggested by RFC 2388 Section 4.4.
|
29
|
+
|
30
|
+
:param name:
|
31
|
+
The name of the parameter, a string expected to be ASCII only.
|
32
|
+
:param value:
|
33
|
+
The value of the parameter, provided as a unicode string.
|
34
|
+
"""
|
35
|
+
if not any(ch in value for ch in '"\\\r\n'):
|
36
|
+
result = '%s="%s"' % (name, value)
|
37
|
+
try:
|
38
|
+
result.encode('ascii')
|
39
|
+
except (UnicodeEncodeError, UnicodeDecodeError):
|
40
|
+
pass
|
41
|
+
else:
|
42
|
+
return result
|
43
|
+
if not six.PY3 and isinstance(value, six.text_type): # Python 2:
|
44
|
+
value = value.encode('utf-8')
|
45
|
+
value = email.utils.encode_rfc2231(value, 'utf-8')
|
46
|
+
value = '%s*=%s' % (name, value)
|
47
|
+
return value
|
48
|
+
|
49
|
+
|
50
|
+
class RequestField(object):
|
51
|
+
"""
|
52
|
+
A data container for request body parameters.
|
53
|
+
|
54
|
+
:param name:
|
55
|
+
The name of this request field.
|
56
|
+
:param data:
|
57
|
+
The data/value body.
|
58
|
+
:param filename:
|
59
|
+
An optional filename of the request field.
|
60
|
+
:param headers:
|
61
|
+
An optional dict-like object of headers to initially use for the field.
|
62
|
+
"""
|
63
|
+
def __init__(self, name, data, filename=None, headers=None):
|
64
|
+
self._name = name
|
65
|
+
self._filename = filename
|
66
|
+
self.data = data
|
67
|
+
self.headers = {}
|
68
|
+
if headers:
|
69
|
+
self.headers = dict(headers)
|
70
|
+
|
71
|
+
@classmethod
|
72
|
+
def from_tuples(cls, fieldname, value):
|
73
|
+
"""
|
74
|
+
A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters.
|
75
|
+
|
76
|
+
Supports constructing :class:`~urllib3.fields.RequestField` from
|
77
|
+
parameter of key/value strings AND key/filetuple. A filetuple is a
|
78
|
+
(filename, data, MIME type) tuple where the MIME type is optional.
|
79
|
+
For example::
|
80
|
+
|
81
|
+
'foo': 'bar',
|
82
|
+
'fakefile': ('foofile.txt', 'contents of foofile'),
|
83
|
+
'realfile': ('barfile.txt', open('realfile').read()),
|
84
|
+
'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'),
|
85
|
+
'nonamefile': 'contents of nonamefile field',
|
86
|
+
|
87
|
+
Field names and filenames must be unicode.
|
88
|
+
"""
|
89
|
+
if isinstance(value, tuple):
|
90
|
+
if len(value) == 3:
|
91
|
+
filename, data, content_type = value
|
92
|
+
else:
|
93
|
+
filename, data = value
|
94
|
+
content_type = guess_content_type(filename)
|
95
|
+
else:
|
96
|
+
filename = None
|
97
|
+
content_type = None
|
98
|
+
data = value
|
99
|
+
|
100
|
+
request_param = cls(fieldname, data, filename=filename)
|
101
|
+
request_param.make_multipart(content_type=content_type)
|
102
|
+
|
103
|
+
return request_param
|
104
|
+
|
105
|
+
def _render_part(self, name, value):
|
106
|
+
"""
|
107
|
+
Overridable helper function to format a single header parameter.
|
108
|
+
|
109
|
+
:param name:
|
110
|
+
The name of the parameter, a string expected to be ASCII only.
|
111
|
+
:param value:
|
112
|
+
The value of the parameter, provided as a unicode string.
|
113
|
+
"""
|
114
|
+
return format_header_param(name, value)
|
115
|
+
|
116
|
+
def _render_parts(self, header_parts):
|
117
|
+
"""
|
118
|
+
Helper function to format and quote a single header.
|
119
|
+
|
120
|
+
Useful for single headers that are composed of multiple items. E.g.,
|
121
|
+
'Content-Disposition' fields.
|
122
|
+
|
123
|
+
:param header_parts:
|
124
|
+
A sequence of (k, v) typles or a :class:`dict` of (k, v) to format
|
125
|
+
as `k1="v1"; k2="v2"; ...`.
|
126
|
+
"""
|
127
|
+
parts = []
|
128
|
+
iterable = header_parts
|
129
|
+
if isinstance(header_parts, dict):
|
130
|
+
iterable = header_parts.items()
|
131
|
+
|
132
|
+
for name, value in iterable:
|
133
|
+
if value:
|
134
|
+
parts.append(self._render_part(name, value))
|
135
|
+
|
136
|
+
return '; '.join(parts)
|
137
|
+
|
138
|
+
def render_headers(self):
|
139
|
+
"""
|
140
|
+
Renders the headers for this request field.
|
141
|
+
"""
|
142
|
+
lines = []
|
143
|
+
|
144
|
+
sort_keys = ['Content-Disposition', 'Content-Type', 'Content-Location']
|
145
|
+
for sort_key in sort_keys:
|
146
|
+
if self.headers.get(sort_key, False):
|
147
|
+
lines.append('%s: %s' % (sort_key, self.headers[sort_key]))
|
148
|
+
|
149
|
+
for header_name, header_value in self.headers.items():
|
150
|
+
if header_name not in sort_keys:
|
151
|
+
if header_value:
|
152
|
+
lines.append('%s: %s' % (header_name, header_value))
|
153
|
+
|
154
|
+
lines.append('\r\n')
|
155
|
+
return '\r\n'.join(lines)
|
156
|
+
|
157
|
+
def make_multipart(self, content_disposition=None, content_type=None,
|
158
|
+
content_location=None):
|
159
|
+
"""
|
160
|
+
Makes this request field into a multipart request field.
|
161
|
+
|
162
|
+
This method overrides "Content-Disposition", "Content-Type" and
|
163
|
+
"Content-Location" headers to the request parameter.
|
164
|
+
|
165
|
+
:param content_type:
|
166
|
+
The 'Content-Type' of the request body.
|
167
|
+
:param content_location:
|
168
|
+
The 'Content-Location' of the request body.
|
169
|
+
|
170
|
+
"""
|
171
|
+
self.headers['Content-Disposition'] = content_disposition or 'form-data'
|
172
|
+
self.headers['Content-Disposition'] += '; '.join([
|
173
|
+
'', self._render_parts(
|
174
|
+
(('name', self._name), ('filename', self._filename))
|
175
|
+
)
|
176
|
+
])
|
177
|
+
self.headers['Content-Type'] = content_type
|
178
|
+
self.headers['Content-Location'] = content_location
|
Binary file
|
@@ -0,0 +1,94 @@
|
|
1
|
+
from __future__ import absolute_import
|
2
|
+
import codecs
|
3
|
+
|
4
|
+
from uuid import uuid4
|
5
|
+
from io import BytesIO
|
6
|
+
|
7
|
+
from .packages import six
|
8
|
+
from .packages.six import b
|
9
|
+
from .fields import RequestField
|
10
|
+
|
11
|
+
writer = codecs.lookup('utf-8')[3]
|
12
|
+
|
13
|
+
|
14
|
+
def choose_boundary():
|
15
|
+
"""
|
16
|
+
Our embarassingly-simple replacement for mimetools.choose_boundary.
|
17
|
+
"""
|
18
|
+
return uuid4().hex
|
19
|
+
|
20
|
+
|
21
|
+
def iter_field_objects(fields):
|
22
|
+
"""
|
23
|
+
Iterate over fields.
|
24
|
+
|
25
|
+
Supports list of (k, v) tuples and dicts, and lists of
|
26
|
+
:class:`~urllib3.fields.RequestField`.
|
27
|
+
|
28
|
+
"""
|
29
|
+
if isinstance(fields, dict):
|
30
|
+
i = six.iteritems(fields)
|
31
|
+
else:
|
32
|
+
i = iter(fields)
|
33
|
+
|
34
|
+
for field in i:
|
35
|
+
if isinstance(field, RequestField):
|
36
|
+
yield field
|
37
|
+
else:
|
38
|
+
yield RequestField.from_tuples(*field)
|
39
|
+
|
40
|
+
|
41
|
+
def iter_fields(fields):
|
42
|
+
"""
|
43
|
+
.. deprecated:: 1.6
|
44
|
+
|
45
|
+
Iterate over fields.
|
46
|
+
|
47
|
+
The addition of :class:`~urllib3.fields.RequestField` makes this function
|
48
|
+
obsolete. Instead, use :func:`iter_field_objects`, which returns
|
49
|
+
:class:`~urllib3.fields.RequestField` objects.
|
50
|
+
|
51
|
+
Supports list of (k, v) tuples and dicts.
|
52
|
+
"""
|
53
|
+
if isinstance(fields, dict):
|
54
|
+
return ((k, v) for k, v in six.iteritems(fields))
|
55
|
+
|
56
|
+
return ((k, v) for k, v in fields)
|
57
|
+
|
58
|
+
|
59
|
+
def encode_multipart_formdata(fields, boundary=None):
|
60
|
+
"""
|
61
|
+
Encode a dictionary of ``fields`` using the multipart/form-data MIME format.
|
62
|
+
|
63
|
+
:param fields:
|
64
|
+
Dictionary of fields or list of (key, :class:`~urllib3.fields.RequestField`).
|
65
|
+
|
66
|
+
:param boundary:
|
67
|
+
If not specified, then a random boundary will be generated using
|
68
|
+
:func:`mimetools.choose_boundary`.
|
69
|
+
"""
|
70
|
+
body = BytesIO()
|
71
|
+
if boundary is None:
|
72
|
+
boundary = choose_boundary()
|
73
|
+
|
74
|
+
for field in iter_field_objects(fields):
|
75
|
+
body.write(b('--%s\r\n' % (boundary)))
|
76
|
+
|
77
|
+
writer(body).write(field.render_headers())
|
78
|
+
data = field.data
|
79
|
+
|
80
|
+
if isinstance(data, int):
|
81
|
+
data = str(data) # Backwards compatibility
|
82
|
+
|
83
|
+
if isinstance(data, six.text_type):
|
84
|
+
writer(body).write(data)
|
85
|
+
else:
|
86
|
+
body.write(data)
|
87
|
+
|
88
|
+
body.write(b'\r\n')
|
89
|
+
|
90
|
+
body.write(b('--%s--\r\n' % (boundary)))
|
91
|
+
|
92
|
+
content_type = str('multipart/form-data; boundary=%s' % boundary)
|
93
|
+
|
94
|
+
return body.getvalue(), content_type
|
Binary file
|
Binary file
|