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
Binary file
|
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
__all__ = ['Mark', 'YAMLError', 'MarkedYAMLError']
|
3
|
+
|
4
|
+
class Mark(object):
|
5
|
+
|
6
|
+
def __init__(self, name, index, line, column, buffer, pointer):
|
7
|
+
self.name = name
|
8
|
+
self.index = index
|
9
|
+
self.line = line
|
10
|
+
self.column = column
|
11
|
+
self.buffer = buffer
|
12
|
+
self.pointer = pointer
|
13
|
+
|
14
|
+
def get_snippet(self, indent=4, max_length=75):
|
15
|
+
if self.buffer is None:
|
16
|
+
return None
|
17
|
+
head = ''
|
18
|
+
start = self.pointer
|
19
|
+
while start > 0 and self.buffer[start-1] not in u'\0\r\n\x85\u2028\u2029':
|
20
|
+
start -= 1
|
21
|
+
if self.pointer-start > max_length/2-1:
|
22
|
+
head = ' ... '
|
23
|
+
start += 5
|
24
|
+
break
|
25
|
+
tail = ''
|
26
|
+
end = self.pointer
|
27
|
+
while end < len(self.buffer) and self.buffer[end] not in u'\0\r\n\x85\u2028\u2029':
|
28
|
+
end += 1
|
29
|
+
if end-self.pointer > max_length/2-1:
|
30
|
+
tail = ' ... '
|
31
|
+
end -= 5
|
32
|
+
break
|
33
|
+
snippet = self.buffer[start:end].encode('utf-8')
|
34
|
+
return ' '*indent + head + snippet + tail + '\n' \
|
35
|
+
+ ' '*(indent+self.pointer-start+len(head)) + '^'
|
36
|
+
|
37
|
+
def __str__(self):
|
38
|
+
snippet = self.get_snippet()
|
39
|
+
where = " in \"%s\", line %d, column %d" \
|
40
|
+
% (self.name, self.line+1, self.column+1)
|
41
|
+
if snippet is not None:
|
42
|
+
where += ":\n"+snippet
|
43
|
+
return where
|
44
|
+
|
45
|
+
class YAMLError(Exception):
|
46
|
+
pass
|
47
|
+
|
48
|
+
class MarkedYAMLError(YAMLError):
|
49
|
+
|
50
|
+
def __init__(self, context=None, context_mark=None,
|
51
|
+
problem=None, problem_mark=None, note=None):
|
52
|
+
self.context = context
|
53
|
+
self.context_mark = context_mark
|
54
|
+
self.problem = problem
|
55
|
+
self.problem_mark = problem_mark
|
56
|
+
self.note = note
|
57
|
+
|
58
|
+
def __str__(self):
|
59
|
+
lines = []
|
60
|
+
if self.context is not None:
|
61
|
+
lines.append(self.context)
|
62
|
+
if self.context_mark is not None \
|
63
|
+
and (self.problem is None or self.problem_mark is None
|
64
|
+
or self.context_mark.name != self.problem_mark.name
|
65
|
+
or self.context_mark.line != self.problem_mark.line
|
66
|
+
or self.context_mark.column != self.problem_mark.column):
|
67
|
+
lines.append(str(self.context_mark))
|
68
|
+
if self.problem is not None:
|
69
|
+
lines.append(self.problem)
|
70
|
+
if self.problem_mark is not None:
|
71
|
+
lines.append(str(self.problem_mark))
|
72
|
+
if self.note is not None:
|
73
|
+
lines.append(self.note)
|
74
|
+
return '\n'.join(lines)
|
75
|
+
|
Binary file
|
@@ -0,0 +1,86 @@
|
|
1
|
+
|
2
|
+
# Abstract classes.
|
3
|
+
|
4
|
+
class Event(object):
|
5
|
+
def __init__(self, start_mark=None, end_mark=None):
|
6
|
+
self.start_mark = start_mark
|
7
|
+
self.end_mark = end_mark
|
8
|
+
def __repr__(self):
|
9
|
+
attributes = [key for key in ['anchor', 'tag', 'implicit', 'value']
|
10
|
+
if hasattr(self, key)]
|
11
|
+
arguments = ', '.join(['%s=%r' % (key, getattr(self, key))
|
12
|
+
for key in attributes])
|
13
|
+
return '%s(%s)' % (self.__class__.__name__, arguments)
|
14
|
+
|
15
|
+
class NodeEvent(Event):
|
16
|
+
def __init__(self, anchor, start_mark=None, end_mark=None):
|
17
|
+
self.anchor = anchor
|
18
|
+
self.start_mark = start_mark
|
19
|
+
self.end_mark = end_mark
|
20
|
+
|
21
|
+
class CollectionStartEvent(NodeEvent):
|
22
|
+
def __init__(self, anchor, tag, implicit, start_mark=None, end_mark=None,
|
23
|
+
flow_style=None):
|
24
|
+
self.anchor = anchor
|
25
|
+
self.tag = tag
|
26
|
+
self.implicit = implicit
|
27
|
+
self.start_mark = start_mark
|
28
|
+
self.end_mark = end_mark
|
29
|
+
self.flow_style = flow_style
|
30
|
+
|
31
|
+
class CollectionEndEvent(Event):
|
32
|
+
pass
|
33
|
+
|
34
|
+
# Implementations.
|
35
|
+
|
36
|
+
class StreamStartEvent(Event):
|
37
|
+
def __init__(self, start_mark=None, end_mark=None, encoding=None):
|
38
|
+
self.start_mark = start_mark
|
39
|
+
self.end_mark = end_mark
|
40
|
+
self.encoding = encoding
|
41
|
+
|
42
|
+
class StreamEndEvent(Event):
|
43
|
+
pass
|
44
|
+
|
45
|
+
class DocumentStartEvent(Event):
|
46
|
+
def __init__(self, start_mark=None, end_mark=None,
|
47
|
+
explicit=None, version=None, tags=None):
|
48
|
+
self.start_mark = start_mark
|
49
|
+
self.end_mark = end_mark
|
50
|
+
self.explicit = explicit
|
51
|
+
self.version = version
|
52
|
+
self.tags = tags
|
53
|
+
|
54
|
+
class DocumentEndEvent(Event):
|
55
|
+
def __init__(self, start_mark=None, end_mark=None,
|
56
|
+
explicit=None):
|
57
|
+
self.start_mark = start_mark
|
58
|
+
self.end_mark = end_mark
|
59
|
+
self.explicit = explicit
|
60
|
+
|
61
|
+
class AliasEvent(NodeEvent):
|
62
|
+
pass
|
63
|
+
|
64
|
+
class ScalarEvent(NodeEvent):
|
65
|
+
def __init__(self, anchor, tag, implicit, value,
|
66
|
+
start_mark=None, end_mark=None, style=None):
|
67
|
+
self.anchor = anchor
|
68
|
+
self.tag = tag
|
69
|
+
self.implicit = implicit
|
70
|
+
self.value = value
|
71
|
+
self.start_mark = start_mark
|
72
|
+
self.end_mark = end_mark
|
73
|
+
self.style = style
|
74
|
+
|
75
|
+
class SequenceStartEvent(CollectionStartEvent):
|
76
|
+
pass
|
77
|
+
|
78
|
+
class SequenceEndEvent(CollectionEndEvent):
|
79
|
+
pass
|
80
|
+
|
81
|
+
class MappingStartEvent(CollectionStartEvent):
|
82
|
+
pass
|
83
|
+
|
84
|
+
class MappingEndEvent(CollectionEndEvent):
|
85
|
+
pass
|
86
|
+
|
Binary file
|
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
__all__ = ['BaseLoader', 'SafeLoader', 'Loader']
|
3
|
+
|
4
|
+
from reader import *
|
5
|
+
from scanner import *
|
6
|
+
from parser import *
|
7
|
+
from composer import *
|
8
|
+
from constructor import *
|
9
|
+
from resolver import *
|
10
|
+
|
11
|
+
class BaseLoader(Reader, Scanner, Parser, Composer, BaseConstructor, BaseResolver):
|
12
|
+
|
13
|
+
def __init__(self, stream):
|
14
|
+
Reader.__init__(self, stream)
|
15
|
+
Scanner.__init__(self)
|
16
|
+
Parser.__init__(self)
|
17
|
+
Composer.__init__(self)
|
18
|
+
BaseConstructor.__init__(self)
|
19
|
+
BaseResolver.__init__(self)
|
20
|
+
|
21
|
+
class SafeLoader(Reader, Scanner, Parser, Composer, SafeConstructor, Resolver):
|
22
|
+
|
23
|
+
def __init__(self, stream):
|
24
|
+
Reader.__init__(self, stream)
|
25
|
+
Scanner.__init__(self)
|
26
|
+
Parser.__init__(self)
|
27
|
+
Composer.__init__(self)
|
28
|
+
SafeConstructor.__init__(self)
|
29
|
+
Resolver.__init__(self)
|
30
|
+
|
31
|
+
class Loader(Reader, Scanner, Parser, Composer, Constructor, Resolver):
|
32
|
+
|
33
|
+
def __init__(self, stream):
|
34
|
+
Reader.__init__(self, stream)
|
35
|
+
Scanner.__init__(self)
|
36
|
+
Parser.__init__(self)
|
37
|
+
Composer.__init__(self)
|
38
|
+
Constructor.__init__(self)
|
39
|
+
Resolver.__init__(self)
|
40
|
+
|
Binary file
|
@@ -0,0 +1,49 @@
|
|
1
|
+
|
2
|
+
class Node(object):
|
3
|
+
def __init__(self, tag, value, start_mark, end_mark):
|
4
|
+
self.tag = tag
|
5
|
+
self.value = value
|
6
|
+
self.start_mark = start_mark
|
7
|
+
self.end_mark = end_mark
|
8
|
+
def __repr__(self):
|
9
|
+
value = self.value
|
10
|
+
#if isinstance(value, list):
|
11
|
+
# if len(value) == 0:
|
12
|
+
# value = '<empty>'
|
13
|
+
# elif len(value) == 1:
|
14
|
+
# value = '<1 item>'
|
15
|
+
# else:
|
16
|
+
# value = '<%d items>' % len(value)
|
17
|
+
#else:
|
18
|
+
# if len(value) > 75:
|
19
|
+
# value = repr(value[:70]+u' ... ')
|
20
|
+
# else:
|
21
|
+
# value = repr(value)
|
22
|
+
value = repr(value)
|
23
|
+
return '%s(tag=%r, value=%s)' % (self.__class__.__name__, self.tag, value)
|
24
|
+
|
25
|
+
class ScalarNode(Node):
|
26
|
+
id = 'scalar'
|
27
|
+
def __init__(self, tag, value,
|
28
|
+
start_mark=None, end_mark=None, style=None):
|
29
|
+
self.tag = tag
|
30
|
+
self.value = value
|
31
|
+
self.start_mark = start_mark
|
32
|
+
self.end_mark = end_mark
|
33
|
+
self.style = style
|
34
|
+
|
35
|
+
class CollectionNode(Node):
|
36
|
+
def __init__(self, tag, value,
|
37
|
+
start_mark=None, end_mark=None, flow_style=None):
|
38
|
+
self.tag = tag
|
39
|
+
self.value = value
|
40
|
+
self.start_mark = start_mark
|
41
|
+
self.end_mark = end_mark
|
42
|
+
self.flow_style = flow_style
|
43
|
+
|
44
|
+
class SequenceNode(CollectionNode):
|
45
|
+
id = 'sequence'
|
46
|
+
|
47
|
+
class MappingNode(CollectionNode):
|
48
|
+
id = 'mapping'
|
49
|
+
|
Binary file
|