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,259 @@
|
|
1
|
+
# Backport of OrderedDict() class that runs on Python 2.4, 2.5, 2.6, 2.7 and pypy.
|
2
|
+
# Passes Python2.7's test suite and incorporates all the latest updates.
|
3
|
+
# Copyright 2009 Raymond Hettinger, released under the MIT License.
|
4
|
+
# http://code.activestate.com/recipes/576693/
|
5
|
+
try:
|
6
|
+
from thread import get_ident as _get_ident
|
7
|
+
except ImportError:
|
8
|
+
from dummy_thread import get_ident as _get_ident
|
9
|
+
|
10
|
+
try:
|
11
|
+
from _abcoll import KeysView, ValuesView, ItemsView
|
12
|
+
except ImportError:
|
13
|
+
pass
|
14
|
+
|
15
|
+
|
16
|
+
class OrderedDict(dict):
|
17
|
+
'Dictionary that remembers insertion order'
|
18
|
+
# An inherited dict maps keys to values.
|
19
|
+
# The inherited dict provides __getitem__, __len__, __contains__, and get.
|
20
|
+
# The remaining methods are order-aware.
|
21
|
+
# Big-O running times for all methods are the same as for regular dictionaries.
|
22
|
+
|
23
|
+
# The internal self.__map dictionary maps keys to links in a doubly linked list.
|
24
|
+
# The circular doubly linked list starts and ends with a sentinel element.
|
25
|
+
# The sentinel element never gets deleted (this simplifies the algorithm).
|
26
|
+
# Each link is stored as a list of length three: [PREV, NEXT, KEY].
|
27
|
+
|
28
|
+
def __init__(self, *args, **kwds):
|
29
|
+
'''Initialize an ordered dictionary. Signature is the same as for
|
30
|
+
regular dictionaries, but keyword arguments are not recommended
|
31
|
+
because their insertion order is arbitrary.
|
32
|
+
|
33
|
+
'''
|
34
|
+
if len(args) > 1:
|
35
|
+
raise TypeError('expected at most 1 arguments, got %d' % len(args))
|
36
|
+
try:
|
37
|
+
self.__root
|
38
|
+
except AttributeError:
|
39
|
+
self.__root = root = [] # sentinel node
|
40
|
+
root[:] = [root, root, None]
|
41
|
+
self.__map = {}
|
42
|
+
self.__update(*args, **kwds)
|
43
|
+
|
44
|
+
def __setitem__(self, key, value, dict_setitem=dict.__setitem__):
|
45
|
+
'od.__setitem__(i, y) <==> od[i]=y'
|
46
|
+
# Setting a new item creates a new link which goes at the end of the linked
|
47
|
+
# list, and the inherited dictionary is updated with the new key/value pair.
|
48
|
+
if key not in self:
|
49
|
+
root = self.__root
|
50
|
+
last = root[0]
|
51
|
+
last[1] = root[0] = self.__map[key] = [last, root, key]
|
52
|
+
dict_setitem(self, key, value)
|
53
|
+
|
54
|
+
def __delitem__(self, key, dict_delitem=dict.__delitem__):
|
55
|
+
'od.__delitem__(y) <==> del od[y]'
|
56
|
+
# Deleting an existing item uses self.__map to find the link which is
|
57
|
+
# then removed by updating the links in the predecessor and successor nodes.
|
58
|
+
dict_delitem(self, key)
|
59
|
+
link_prev, link_next, key = self.__map.pop(key)
|
60
|
+
link_prev[1] = link_next
|
61
|
+
link_next[0] = link_prev
|
62
|
+
|
63
|
+
def __iter__(self):
|
64
|
+
'od.__iter__() <==> iter(od)'
|
65
|
+
root = self.__root
|
66
|
+
curr = root[1]
|
67
|
+
while curr is not root:
|
68
|
+
yield curr[2]
|
69
|
+
curr = curr[1]
|
70
|
+
|
71
|
+
def __reversed__(self):
|
72
|
+
'od.__reversed__() <==> reversed(od)'
|
73
|
+
root = self.__root
|
74
|
+
curr = root[0]
|
75
|
+
while curr is not root:
|
76
|
+
yield curr[2]
|
77
|
+
curr = curr[0]
|
78
|
+
|
79
|
+
def clear(self):
|
80
|
+
'od.clear() -> None. Remove all items from od.'
|
81
|
+
try:
|
82
|
+
for node in self.__map.itervalues():
|
83
|
+
del node[:]
|
84
|
+
root = self.__root
|
85
|
+
root[:] = [root, root, None]
|
86
|
+
self.__map.clear()
|
87
|
+
except AttributeError:
|
88
|
+
pass
|
89
|
+
dict.clear(self)
|
90
|
+
|
91
|
+
def popitem(self, last=True):
|
92
|
+
'''od.popitem() -> (k, v), return and remove a (key, value) pair.
|
93
|
+
Pairs are returned in LIFO order if last is true or FIFO order if false.
|
94
|
+
|
95
|
+
'''
|
96
|
+
if not self:
|
97
|
+
raise KeyError('dictionary is empty')
|
98
|
+
root = self.__root
|
99
|
+
if last:
|
100
|
+
link = root[0]
|
101
|
+
link_prev = link[0]
|
102
|
+
link_prev[1] = root
|
103
|
+
root[0] = link_prev
|
104
|
+
else:
|
105
|
+
link = root[1]
|
106
|
+
link_next = link[1]
|
107
|
+
root[1] = link_next
|
108
|
+
link_next[0] = root
|
109
|
+
key = link[2]
|
110
|
+
del self.__map[key]
|
111
|
+
value = dict.pop(self, key)
|
112
|
+
return key, value
|
113
|
+
|
114
|
+
# -- the following methods do not depend on the internal structure --
|
115
|
+
|
116
|
+
def keys(self):
|
117
|
+
'od.keys() -> list of keys in od'
|
118
|
+
return list(self)
|
119
|
+
|
120
|
+
def values(self):
|
121
|
+
'od.values() -> list of values in od'
|
122
|
+
return [self[key] for key in self]
|
123
|
+
|
124
|
+
def items(self):
|
125
|
+
'od.items() -> list of (key, value) pairs in od'
|
126
|
+
return [(key, self[key]) for key in self]
|
127
|
+
|
128
|
+
def iterkeys(self):
|
129
|
+
'od.iterkeys() -> an iterator over the keys in od'
|
130
|
+
return iter(self)
|
131
|
+
|
132
|
+
def itervalues(self):
|
133
|
+
'od.itervalues -> an iterator over the values in od'
|
134
|
+
for k in self:
|
135
|
+
yield self[k]
|
136
|
+
|
137
|
+
def iteritems(self):
|
138
|
+
'od.iteritems -> an iterator over the (key, value) items in od'
|
139
|
+
for k in self:
|
140
|
+
yield (k, self[k])
|
141
|
+
|
142
|
+
def update(*args, **kwds):
|
143
|
+
'''od.update(E, **F) -> None. Update od from dict/iterable E and F.
|
144
|
+
|
145
|
+
If E is a dict instance, does: for k in E: od[k] = E[k]
|
146
|
+
If E has a .keys() method, does: for k in E.keys(): od[k] = E[k]
|
147
|
+
Or if E is an iterable of items, does: for k, v in E: od[k] = v
|
148
|
+
In either case, this is followed by: for k, v in F.items(): od[k] = v
|
149
|
+
|
150
|
+
'''
|
151
|
+
if len(args) > 2:
|
152
|
+
raise TypeError('update() takes at most 2 positional '
|
153
|
+
'arguments (%d given)' % (len(args),))
|
154
|
+
elif not args:
|
155
|
+
raise TypeError('update() takes at least 1 argument (0 given)')
|
156
|
+
self = args[0]
|
157
|
+
# Make progressively weaker assumptions about "other"
|
158
|
+
other = ()
|
159
|
+
if len(args) == 2:
|
160
|
+
other = args[1]
|
161
|
+
if isinstance(other, dict):
|
162
|
+
for key in other:
|
163
|
+
self[key] = other[key]
|
164
|
+
elif hasattr(other, 'keys'):
|
165
|
+
for key in other.keys():
|
166
|
+
self[key] = other[key]
|
167
|
+
else:
|
168
|
+
for key, value in other:
|
169
|
+
self[key] = value
|
170
|
+
for key, value in kwds.items():
|
171
|
+
self[key] = value
|
172
|
+
|
173
|
+
__update = update # let subclasses override update without breaking __init__
|
174
|
+
|
175
|
+
__marker = object()
|
176
|
+
|
177
|
+
def pop(self, key, default=__marker):
|
178
|
+
'''od.pop(k[,d]) -> v, remove specified key and return the corresponding value.
|
179
|
+
If key is not found, d is returned if given, otherwise KeyError is raised.
|
180
|
+
|
181
|
+
'''
|
182
|
+
if key in self:
|
183
|
+
result = self[key]
|
184
|
+
del self[key]
|
185
|
+
return result
|
186
|
+
if default is self.__marker:
|
187
|
+
raise KeyError(key)
|
188
|
+
return default
|
189
|
+
|
190
|
+
def setdefault(self, key, default=None):
|
191
|
+
'od.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od'
|
192
|
+
if key in self:
|
193
|
+
return self[key]
|
194
|
+
self[key] = default
|
195
|
+
return default
|
196
|
+
|
197
|
+
def __repr__(self, _repr_running={}):
|
198
|
+
'od.__repr__() <==> repr(od)'
|
199
|
+
call_key = id(self), _get_ident()
|
200
|
+
if call_key in _repr_running:
|
201
|
+
return '...'
|
202
|
+
_repr_running[call_key] = 1
|
203
|
+
try:
|
204
|
+
if not self:
|
205
|
+
return '%s()' % (self.__class__.__name__,)
|
206
|
+
return '%s(%r)' % (self.__class__.__name__, self.items())
|
207
|
+
finally:
|
208
|
+
del _repr_running[call_key]
|
209
|
+
|
210
|
+
def __reduce__(self):
|
211
|
+
'Return state information for pickling'
|
212
|
+
items = [[k, self[k]] for k in self]
|
213
|
+
inst_dict = vars(self).copy()
|
214
|
+
for k in vars(OrderedDict()):
|
215
|
+
inst_dict.pop(k, None)
|
216
|
+
if inst_dict:
|
217
|
+
return (self.__class__, (items,), inst_dict)
|
218
|
+
return self.__class__, (items,)
|
219
|
+
|
220
|
+
def copy(self):
|
221
|
+
'od.copy() -> a shallow copy of od'
|
222
|
+
return self.__class__(self)
|
223
|
+
|
224
|
+
@classmethod
|
225
|
+
def fromkeys(cls, iterable, value=None):
|
226
|
+
'''OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S
|
227
|
+
and values equal to v (which defaults to None).
|
228
|
+
|
229
|
+
'''
|
230
|
+
d = cls()
|
231
|
+
for key in iterable:
|
232
|
+
d[key] = value
|
233
|
+
return d
|
234
|
+
|
235
|
+
def __eq__(self, other):
|
236
|
+
'''od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive
|
237
|
+
while comparison to a regular mapping is order-insensitive.
|
238
|
+
|
239
|
+
'''
|
240
|
+
if isinstance(other, OrderedDict):
|
241
|
+
return len(self)==len(other) and self.items() == other.items()
|
242
|
+
return dict.__eq__(self, other)
|
243
|
+
|
244
|
+
def __ne__(self, other):
|
245
|
+
return not self == other
|
246
|
+
|
247
|
+
# -- the following methods are only used in Python 2.7 --
|
248
|
+
|
249
|
+
def viewkeys(self):
|
250
|
+
"od.viewkeys() -> a set-like object providing a view on od's keys"
|
251
|
+
return KeysView(self)
|
252
|
+
|
253
|
+
def viewvalues(self):
|
254
|
+
"od.viewvalues() -> an object providing a view on od's values"
|
255
|
+
return ValuesView(self)
|
256
|
+
|
257
|
+
def viewitems(self):
|
258
|
+
"od.viewitems() -> a set-like object providing a view on od's items"
|
259
|
+
return ItemsView(self)
|
Binary file
|