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,227 @@
|
|
1
|
+
|
2
|
+
__all__ = ['BaseResolver', 'Resolver']
|
3
|
+
|
4
|
+
from error import *
|
5
|
+
from nodes import *
|
6
|
+
|
7
|
+
import re
|
8
|
+
|
9
|
+
class ResolverError(YAMLError):
|
10
|
+
pass
|
11
|
+
|
12
|
+
class BaseResolver(object):
|
13
|
+
|
14
|
+
DEFAULT_SCALAR_TAG = u'tag:yaml.org,2002:str'
|
15
|
+
DEFAULT_SEQUENCE_TAG = u'tag:yaml.org,2002:seq'
|
16
|
+
DEFAULT_MAPPING_TAG = u'tag:yaml.org,2002:map'
|
17
|
+
|
18
|
+
yaml_implicit_resolvers = {}
|
19
|
+
yaml_path_resolvers = {}
|
20
|
+
|
21
|
+
def __init__(self):
|
22
|
+
self.resolver_exact_paths = []
|
23
|
+
self.resolver_prefix_paths = []
|
24
|
+
|
25
|
+
def add_implicit_resolver(cls, tag, regexp, first):
|
26
|
+
if not 'yaml_implicit_resolvers' in cls.__dict__:
|
27
|
+
implicit_resolvers = {}
|
28
|
+
for key in cls.yaml_implicit_resolvers:
|
29
|
+
implicit_resolvers[key] = cls.yaml_implicit_resolvers[key][:]
|
30
|
+
cls.yaml_implicit_resolvers = implicit_resolvers
|
31
|
+
if first is None:
|
32
|
+
first = [None]
|
33
|
+
for ch in first:
|
34
|
+
cls.yaml_implicit_resolvers.setdefault(ch, []).append((tag, regexp))
|
35
|
+
add_implicit_resolver = classmethod(add_implicit_resolver)
|
36
|
+
|
37
|
+
def add_path_resolver(cls, tag, path, kind=None):
|
38
|
+
# Note: `add_path_resolver` is experimental. The API could be changed.
|
39
|
+
# `new_path` is a pattern that is matched against the path from the
|
40
|
+
# root to the node that is being considered. `node_path` elements are
|
41
|
+
# tuples `(node_check, index_check)`. `node_check` is a node class:
|
42
|
+
# `ScalarNode`, `SequenceNode`, `MappingNode` or `None`. `None`
|
43
|
+
# matches any kind of a node. `index_check` could be `None`, a boolean
|
44
|
+
# value, a string value, or a number. `None` and `False` match against
|
45
|
+
# any _value_ of sequence and mapping nodes. `True` matches against
|
46
|
+
# any _key_ of a mapping node. A string `index_check` matches against
|
47
|
+
# a mapping value that corresponds to a scalar key which content is
|
48
|
+
# equal to the `index_check` value. An integer `index_check` matches
|
49
|
+
# against a sequence value with the index equal to `index_check`.
|
50
|
+
if not 'yaml_path_resolvers' in cls.__dict__:
|
51
|
+
cls.yaml_path_resolvers = cls.yaml_path_resolvers.copy()
|
52
|
+
new_path = []
|
53
|
+
for element in path:
|
54
|
+
if isinstance(element, (list, tuple)):
|
55
|
+
if len(element) == 2:
|
56
|
+
node_check, index_check = element
|
57
|
+
elif len(element) == 1:
|
58
|
+
node_check = element[0]
|
59
|
+
index_check = True
|
60
|
+
else:
|
61
|
+
raise ResolverError("Invalid path element: %s" % element)
|
62
|
+
else:
|
63
|
+
node_check = None
|
64
|
+
index_check = element
|
65
|
+
if node_check is str:
|
66
|
+
node_check = ScalarNode
|
67
|
+
elif node_check is list:
|
68
|
+
node_check = SequenceNode
|
69
|
+
elif node_check is dict:
|
70
|
+
node_check = MappingNode
|
71
|
+
elif node_check not in [ScalarNode, SequenceNode, MappingNode] \
|
72
|
+
and not isinstance(node_check, basestring) \
|
73
|
+
and node_check is not None:
|
74
|
+
raise ResolverError("Invalid node checker: %s" % node_check)
|
75
|
+
if not isinstance(index_check, (basestring, int)) \
|
76
|
+
and index_check is not None:
|
77
|
+
raise ResolverError("Invalid index checker: %s" % index_check)
|
78
|
+
new_path.append((node_check, index_check))
|
79
|
+
if kind is str:
|
80
|
+
kind = ScalarNode
|
81
|
+
elif kind is list:
|
82
|
+
kind = SequenceNode
|
83
|
+
elif kind is dict:
|
84
|
+
kind = MappingNode
|
85
|
+
elif kind not in [ScalarNode, SequenceNode, MappingNode] \
|
86
|
+
and kind is not None:
|
87
|
+
raise ResolverError("Invalid node kind: %s" % kind)
|
88
|
+
cls.yaml_path_resolvers[tuple(new_path), kind] = tag
|
89
|
+
add_path_resolver = classmethod(add_path_resolver)
|
90
|
+
|
91
|
+
def descend_resolver(self, current_node, current_index):
|
92
|
+
if not self.yaml_path_resolvers:
|
93
|
+
return
|
94
|
+
exact_paths = {}
|
95
|
+
prefix_paths = []
|
96
|
+
if current_node:
|
97
|
+
depth = len(self.resolver_prefix_paths)
|
98
|
+
for path, kind in self.resolver_prefix_paths[-1]:
|
99
|
+
if self.check_resolver_prefix(depth, path, kind,
|
100
|
+
current_node, current_index):
|
101
|
+
if len(path) > depth:
|
102
|
+
prefix_paths.append((path, kind))
|
103
|
+
else:
|
104
|
+
exact_paths[kind] = self.yaml_path_resolvers[path, kind]
|
105
|
+
else:
|
106
|
+
for path, kind in self.yaml_path_resolvers:
|
107
|
+
if not path:
|
108
|
+
exact_paths[kind] = self.yaml_path_resolvers[path, kind]
|
109
|
+
else:
|
110
|
+
prefix_paths.append((path, kind))
|
111
|
+
self.resolver_exact_paths.append(exact_paths)
|
112
|
+
self.resolver_prefix_paths.append(prefix_paths)
|
113
|
+
|
114
|
+
def ascend_resolver(self):
|
115
|
+
if not self.yaml_path_resolvers:
|
116
|
+
return
|
117
|
+
self.resolver_exact_paths.pop()
|
118
|
+
self.resolver_prefix_paths.pop()
|
119
|
+
|
120
|
+
def check_resolver_prefix(self, depth, path, kind,
|
121
|
+
current_node, current_index):
|
122
|
+
node_check, index_check = path[depth-1]
|
123
|
+
if isinstance(node_check, basestring):
|
124
|
+
if current_node.tag != node_check:
|
125
|
+
return
|
126
|
+
elif node_check is not None:
|
127
|
+
if not isinstance(current_node, node_check):
|
128
|
+
return
|
129
|
+
if index_check is True and current_index is not None:
|
130
|
+
return
|
131
|
+
if (index_check is False or index_check is None) \
|
132
|
+
and current_index is None:
|
133
|
+
return
|
134
|
+
if isinstance(index_check, basestring):
|
135
|
+
if not (isinstance(current_index, ScalarNode)
|
136
|
+
and index_check == current_index.value):
|
137
|
+
return
|
138
|
+
elif isinstance(index_check, int) and not isinstance(index_check, bool):
|
139
|
+
if index_check != current_index:
|
140
|
+
return
|
141
|
+
return True
|
142
|
+
|
143
|
+
def resolve(self, kind, value, implicit):
|
144
|
+
if kind is ScalarNode and implicit[0]:
|
145
|
+
if value == u'':
|
146
|
+
resolvers = self.yaml_implicit_resolvers.get(u'', [])
|
147
|
+
else:
|
148
|
+
resolvers = self.yaml_implicit_resolvers.get(value[0], [])
|
149
|
+
resolvers += self.yaml_implicit_resolvers.get(None, [])
|
150
|
+
for tag, regexp in resolvers:
|
151
|
+
if regexp.match(value):
|
152
|
+
return tag
|
153
|
+
implicit = implicit[1]
|
154
|
+
if self.yaml_path_resolvers:
|
155
|
+
exact_paths = self.resolver_exact_paths[-1]
|
156
|
+
if kind in exact_paths:
|
157
|
+
return exact_paths[kind]
|
158
|
+
if None in exact_paths:
|
159
|
+
return exact_paths[None]
|
160
|
+
if kind is ScalarNode:
|
161
|
+
return self.DEFAULT_SCALAR_TAG
|
162
|
+
elif kind is SequenceNode:
|
163
|
+
return self.DEFAULT_SEQUENCE_TAG
|
164
|
+
elif kind is MappingNode:
|
165
|
+
return self.DEFAULT_MAPPING_TAG
|
166
|
+
|
167
|
+
class Resolver(BaseResolver):
|
168
|
+
pass
|
169
|
+
|
170
|
+
Resolver.add_implicit_resolver(
|
171
|
+
u'tag:yaml.org,2002:bool',
|
172
|
+
re.compile(ur'''^(?:yes|Yes|YES|no|No|NO
|
173
|
+
|true|True|TRUE|false|False|FALSE
|
174
|
+
|on|On|ON|off|Off|OFF)$''', re.X),
|
175
|
+
list(u'yYnNtTfFoO'))
|
176
|
+
|
177
|
+
Resolver.add_implicit_resolver(
|
178
|
+
u'tag:yaml.org,2002:float',
|
179
|
+
re.compile(ur'''^(?:[-+]?(?:[0-9][0-9_]*)\.[0-9_]*(?:[eE][-+][0-9]+)?
|
180
|
+
|\.[0-9_]+(?:[eE][-+][0-9]+)?
|
181
|
+
|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*
|
182
|
+
|[-+]?\.(?:inf|Inf|INF)
|
183
|
+
|\.(?:nan|NaN|NAN))$''', re.X),
|
184
|
+
list(u'-+0123456789.'))
|
185
|
+
|
186
|
+
Resolver.add_implicit_resolver(
|
187
|
+
u'tag:yaml.org,2002:int',
|
188
|
+
re.compile(ur'''^(?:[-+]?0b[0-1_]+
|
189
|
+
|[-+]?0[0-7_]+
|
190
|
+
|[-+]?(?:0|[1-9][0-9_]*)
|
191
|
+
|[-+]?0x[0-9a-fA-F_]+
|
192
|
+
|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$''', re.X),
|
193
|
+
list(u'-+0123456789'))
|
194
|
+
|
195
|
+
Resolver.add_implicit_resolver(
|
196
|
+
u'tag:yaml.org,2002:merge',
|
197
|
+
re.compile(ur'^(?:<<)$'),
|
198
|
+
[u'<'])
|
199
|
+
|
200
|
+
Resolver.add_implicit_resolver(
|
201
|
+
u'tag:yaml.org,2002:null',
|
202
|
+
re.compile(ur'''^(?: ~
|
203
|
+
|null|Null|NULL
|
204
|
+
| )$''', re.X),
|
205
|
+
[u'~', u'n', u'N', u''])
|
206
|
+
|
207
|
+
Resolver.add_implicit_resolver(
|
208
|
+
u'tag:yaml.org,2002:timestamp',
|
209
|
+
re.compile(ur'''^(?:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]
|
210
|
+
|[0-9][0-9][0-9][0-9] -[0-9][0-9]? -[0-9][0-9]?
|
211
|
+
(?:[Tt]|[ \t]+)[0-9][0-9]?
|
212
|
+
:[0-9][0-9] :[0-9][0-9] (?:\.[0-9]*)?
|
213
|
+
(?:[ \t]*(?:Z|[-+][0-9][0-9]?(?::[0-9][0-9])?))?)$''', re.X),
|
214
|
+
list(u'0123456789'))
|
215
|
+
|
216
|
+
Resolver.add_implicit_resolver(
|
217
|
+
u'tag:yaml.org,2002:value',
|
218
|
+
re.compile(ur'^(?:=)$'),
|
219
|
+
[u'='])
|
220
|
+
|
221
|
+
# The following resolver is only for documentation purposes. It cannot work
|
222
|
+
# because plain scalars cannot start with '!', '&', or '*'.
|
223
|
+
Resolver.add_implicit_resolver(
|
224
|
+
u'tag:yaml.org,2002:yaml',
|
225
|
+
re.compile(ur'^(?:!|&|\*)$'),
|
226
|
+
list(u'!&*'))
|
227
|
+
|
Binary file
|