redsnow 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +67 -0
- data/Rakefile +1 -1
- data/doc/RedSnow.html +321 -0
- data/doc/RedSnow/Action.html +702 -0
- data/doc/RedSnow/Binding.html +135 -0
- data/doc/RedSnow/Blueprint.html +657 -0
- data/doc/RedSnow/BlueprintNode.html +139 -0
- data/doc/RedSnow/ErrorCodes.html +165 -0
- data/doc/RedSnow/Headers.html +456 -0
- data/doc/RedSnow/KeyValueCollection.html +343 -0
- data/doc/RedSnow/Location.html +391 -0
- data/doc/RedSnow/Metadata.html +343 -0
- data/doc/RedSnow/NamedBlueprintNode.html +444 -0
- data/doc/RedSnow/Object.html +295 -0
- data/doc/RedSnow/Parameter.html +881 -0
- data/doc/RedSnow/Parameters.html +349 -0
- data/doc/RedSnow/ParseResult.html +570 -0
- data/doc/RedSnow/Payload.html +775 -0
- data/doc/RedSnow/Resource.html +790 -0
- data/doc/RedSnow/ResourceGroup.html +521 -0
- data/doc/RedSnow/TransactionExample.html +700 -0
- data/doc/RedSnow/WarningCodes.html +210 -0
- data/doc/_index.html +342 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +136 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +136 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +347 -0
- data/doc/top-level-namespace.html +112 -0
- data/ext/snowcrash/Gemfile +8 -0
- data/ext/snowcrash/Gemfile.lock +40 -0
- data/ext/snowcrash/LICENSE +22 -0
- data/ext/snowcrash/README.md +118 -0
- data/ext/snowcrash/bin/snowcrash +0 -0
- data/ext/snowcrash/bin/test-libsnowcrash +0 -0
- data/ext/snowcrash/build/Makefile +375 -0
- data/ext/snowcrash/build/gyp-mac-tool +511 -0
- data/ext/snowcrash/build/libmarkdownparser.target.mk +137 -0
- data/ext/snowcrash/build/libsnowcrash.target.mk +165 -0
- data/ext/snowcrash/build/libsundown.target.mk +143 -0
- data/ext/snowcrash/build/out/Release/libmarkdownparser.a +0 -0
- data/ext/snowcrash/build/out/Release/libsnowcrash.dylib +0 -0
- data/ext/snowcrash/build/out/Release/libsundown.a +0 -0
- data/ext/snowcrash/build/out/Release/linker.lock +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libmarkdownparser/ext/markdown-parser/src/ByteBuffer.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libmarkdownparser/ext/markdown-parser/src/MarkdownNode.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libmarkdownparser/ext/markdown-parser/src/MarkdownParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CBlueprint.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CBlueprintSourcemap.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/CSourceAnnotation.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/HTTP.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/MarkdownBlock.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/MarkdownParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Parser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/ParserCore.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Section.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Serialize.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/SerializeJSON.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/SerializeYAML.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/Signature.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/UriTemplateParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/csnowcrash.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/posix/RegexMatch.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsnowcrash/src/snowcrash.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/houdini_href_e.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/houdini_html_e.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/html.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/html/html_smartypants.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/autolink.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/buffer.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/markdown.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/src_map.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/libsundown/ext/markdown-parser/ext/sundown/src/stack.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/snowcrash/src/snowcrash/snowcrash.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/houdini_href_e.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/houdini_html_e.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/html.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/html/html_smartypants.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/autolink.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/buffer.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/markdown.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/src_map.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/sundown/sundown/src/stack.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ActionParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-AssetParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-Blueprint.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-BlueprintParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-HeaderParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-HeadersParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-Indentation.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ListUtility.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-MarkdownBlock.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-MarkdownParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ParameterDefinitonParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ParameterParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ParametersParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-Parser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-PayloadParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-RegexMatch.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ResouceGroupParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ResourceGroupParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ResourceParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-SectionParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-SymbolIdentifier.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-SymbolTable.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-UriTemplateParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-ValuesParser.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-Warnings.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-csnowcrash.o +0 -0
- data/ext/snowcrash/build/out/Release/obj.target/test-libsnowcrash/test/test-snowcrash.o +0 -0
- data/ext/snowcrash/build/out/Release/snowcrash +0 -0
- data/ext/snowcrash/build/out/Release/test-libsnowcrash +0 -0
- data/ext/snowcrash/build/perf-libsnowcrash.target.mk +151 -0
- data/ext/snowcrash/build/snowcrash.Makefile +6 -0
- data/ext/snowcrash/build/snowcrash.target.mk +149 -0
- data/ext/snowcrash/build/sundown.target.mk +143 -0
- data/ext/snowcrash/build/test-libsnowcrash.target.mk +170 -0
- data/ext/snowcrash/ext/cmdline/LICENSE +30 -0
- data/ext/snowcrash/ext/cmdline/README.rst +191 -0
- data/ext/snowcrash/ext/cmdline/cmdline.h +817 -0
- data/ext/snowcrash/ext/cmdline/test.cpp +50 -0
- data/ext/snowcrash/ext/cmdline/test2.cpp +61 -0
- data/ext/snowcrash/ext/markdown-parser/LICENSE +22 -0
- data/ext/snowcrash/ext/markdown-parser/README.md +11 -0
- data/ext/snowcrash/ext/markdown-parser/ext/sundown/README.markdown +141 -0
- data/ext/snowcrash/ext/markdown-parser/markdownparser.xcodeproj/project.pbxproj +448 -0
- data/ext/snowcrash/ext/markdown-parser/msvc/test-markdown/test-markdown.vcproj +195 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/LICENSE_1_0.txt +23 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/README.md +24 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/catch-logo-small.png +0 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/assertions.md +64 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/build-systems.md +36 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/command-line.md +155 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/contributing.md +19 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/logging.md +52 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/own-main.md +68 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/reference-index.md +14 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/test-cases-and-sections.md +60 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/test-fixtures.md +32 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/tutorial.md +228 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/whats-changed.md +24 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/docs/why-catch.md +42 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/catch.hpp +202 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/catch_runner.hpp +224 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/catch_with_main.hpp +15 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/external/clara.h +868 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/external/tbc_text_format.h +153 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_approx.hpp +91 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_assertionresult.h +71 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_assertionresult.hpp +91 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_capture.hpp +179 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_clara.h +32 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_commandline.hpp +145 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_common.h +119 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_common.hpp +86 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_compiler_capabilities.h +123 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_config.hpp +178 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_console_colour.hpp +66 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_console_colour_impl.hpp +166 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_context.h +53 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_context_impl.hpp +112 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_debugger.h +49 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_debugger.hpp +100 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_default_main.hpp +38 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_evaluate.hpp +178 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_exception_translator_registry.hpp +75 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_expression_decomposer.hpp +31 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_expression_lhs.hpp +105 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_expressionresult_builder.h +63 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_expressionresult_builder.hpp +98 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_generators.hpp +190 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_generators_impl.hpp +86 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_impl.hpp +92 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_capture.h +46 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_config.h +54 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_exception.h +66 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_generators.h +32 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_registry_hub.h +44 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_reporter.h +265 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_runner.h +19 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_interfaces_testcase.h +37 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_legacy_reporter_adapter.h +59 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_legacy_reporter_adapter.hpp +82 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_list.hpp +150 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_matchers.hpp +233 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_message.h +65 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_message.hpp +43 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_notimplemented_exception.h +35 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_notimplemented_exception.hpp +30 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_objc.hpp +203 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_objc_arc.hpp +51 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_option.hpp +75 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_platform.h +20 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_ptr.hpp +94 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_registry_hub.hpp +83 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_reporter_registrars.hpp +74 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_reporter_registry.hpp +45 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_result_type.h +66 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_runner_impl.hpp +319 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_section.h +55 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_section.hpp +40 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_section_info.h +31 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_section_info.hpp +113 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_sfinae.hpp +44 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_stream.h +33 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_stream.hpp +83 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_streambuf.h +23 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_tags.h +109 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_tags.hpp +137 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_test_case_info.h +84 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_test_case_info.hpp +166 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_test_case_registry_impl.hpp +146 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_test_case_tracker.hpp +148 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_test_registry.hpp +120 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_test_spec.h +65 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_test_spec.hpp +133 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_text.h +24 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_timer.h +35 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_timer.hpp +63 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_tostring.hpp +276 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_totals.hpp +67 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_version.h +37 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_version.hpp +19 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/internal/catch_xmlwriter.hpp +218 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/reporters/catch_reporter_bases.hpp +203 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/reporters/catch_reporter_console.hpp +411 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/reporters/catch_reporter_junit.hpp +226 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/include/reporters/catch_reporter_xml.hpp +151 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/CMake/CMakeLists.txt +38 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/ApproxTests.cpp +112 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/BDDTests.cpp +68 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/Baselines/console.std.approved.txt +778 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/Baselines/console.sw.approved.txt +6995 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/Baselines/console.swa4.approved.txt +322 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/Baselines/junit.sw.approved.txt +562 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/Baselines/xml.sw.approved.txt +7251 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/ClassTests.cpp +57 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/ConditionTests.cpp +334 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/ExceptionTests.cpp +153 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/GeneratorTests.cpp +42 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/MessageTests.cpp +121 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/MiscTests.cpp +341 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SectionTrackerTests.cpp +164 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_common.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_console_colour.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_debugger.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_capture.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_config.cpp +1 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_exception.cpp +1 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_generators.cpp +1 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_registry_hub.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_reporter.cpp +1 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_runner.cpp +1 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_testcase.cpp +1 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_message.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_option.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_ptr.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_stream.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_streambuf.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_tags.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/SurrogateCpps/catch_xmlwriter.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/TestMain.cpp +541 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/TrickyTests.cpp +396 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/VariadicMacrosTests.cpp +31 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/SelfTest/makefile +21 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/VS2008/TestCatch/TestCatch.sln +20 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.cpp +8 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj +394 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/VS2010/TestCatch/TestCatch.sln +20 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/VS2010/TestCatch/TestCatch/TestCatch.vcxproj +148 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj +685 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTest.xcodeproj/project.xcworkspace/xcshareddata/CatchSelfTest.xccheckout +41 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTest/CatchSelfTest.1 +79 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTest/catch_text.cpp +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTestSingle.xcodeproj/project.pbxproj +258 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTestSingle.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTestSingle.xcodeproj/project.xcworkspace/xcshareddata/CatchSelfTestSingle.xccheckout +41 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/CatchSelfTest/CatchSelfTestSingle/dummy.txt +0 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest.xcodeproj/project.pbxproj +265 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest.xcodeproj/project.xcworkspace/xcshareddata/OCTest.xccheckout +41 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest/CatchOCTestCase.h +25 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest/CatchOCTestCase.mm +83 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest/Main.mm +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest/OCTest.1 +79 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest/OCTest.mm +28 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest/TestObj.h +28 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/OCTest/OCTest/TestObj.m +25 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest.xcodeproj/project.pbxproj +299 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest/OCTest.mm +27 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest/TestObj.h +25 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest/TestObj.m +18 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest/en.lproj/InfoPlist.strings +2 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest/iOSTest-Info.plist +47 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/XCode/iOSTest/iOSTest/iOSTest-Prefix.pch +14 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h +114 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/runners/iTchRunner/internal/iTchRunnerMainView.h +189 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/runners/iTchRunner/internal/iTchRunnerReporter.h +115 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/runners/iTchRunner/itChRunnerMain.mm +27 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/projects/runners/iTchRunner/readme +6 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/scripts/approvalTests.py +99 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/scripts/approve.py +29 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/scripts/generateSingleHeader.py +152 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/scripts/scriptCommon.py +4 -0
- data/ext/snowcrash/ext/markdown-parser/test/ext/Catch/single_include/catch.hpp +8544 -0
- data/ext/snowcrash/ext/markdown-parser/test/test-ByteBuffer.cc +83 -0
- data/ext/snowcrash/ext/markdown-parser/test/test-MarkdownParser.cc +628 -0
- data/ext/snowcrash/ext/markdown-parser/test/test-libmarkdownparser.cc +10 -0
- data/ext/snowcrash/features/fixtures/ast.json +154 -0
- data/ext/snowcrash/features/fixtures/ast.yaml +87 -0
- data/ext/snowcrash/features/fixtures/blueprint.apib +84 -0
- data/ext/snowcrash/features/fixtures/invalid_blueprint.apib +4 -0
- data/ext/snowcrash/features/parse.feature +23 -0
- data/ext/snowcrash/features/step_definitions/file_content_step.rb +8 -0
- data/ext/snowcrash/features/support/env.rb +7 -0
- data/ext/snowcrash/features/support/setup.rb +1 -0
- data/ext/snowcrash/features/validate.feature +37 -0
- data/ext/snowcrash/features/version.feature +10 -0
- data/ext/snowcrash/snowcrash.xcodeproj/project.pbxproj +798 -0
- data/ext/snowcrash/test/README.md +7 -0
- data/ext/snowcrash/test/performance/fixtures/fixture-1.apib +174 -0
- data/ext/snowcrash/test/performance/fixtures/fixture-2.apib +2455 -0
- data/ext/snowcrash/test/performance/fixtures/fixture-3.apib +10363 -0
- data/ext/snowcrash/test/performance/fixtures/fixture-4.apib +8390 -0
- data/ext/snowcrash/test/performance/perf-snowcrash.cc +162 -0
- data/ext/snowcrash/test/snowcrashtest.h +88 -0
- data/ext/snowcrash/test/test-ActionParser.cc +491 -0
- data/ext/snowcrash/test/test-AssetParser.cc +224 -0
- data/ext/snowcrash/test/test-Blueprint.cc +32 -0
- data/ext/snowcrash/test/test-BlueprintParser.cc +462 -0
- data/ext/snowcrash/test/test-HeadersParser.cc +256 -0
- data/ext/snowcrash/test/test-Indentation.cc +336 -0
- data/ext/snowcrash/test/test-ParameterParser.cc +499 -0
- data/ext/snowcrash/test/test-ParametersParser.cc +355 -0
- data/ext/snowcrash/test/test-PayloadParser.cc +657 -0
- data/ext/snowcrash/test/test-RegexMatch.cc +35 -0
- data/ext/snowcrash/test/test-ResourceGroupParser.cc +457 -0
- data/ext/snowcrash/test/test-ResourceParser.cc +947 -0
- data/ext/snowcrash/test/test-SectionParser.cc +81 -0
- data/ext/snowcrash/test/test-StringUtility.cc +65 -0
- data/ext/snowcrash/test/test-SymbolIdentifier.cc +53 -0
- data/ext/snowcrash/test/test-SymbolTable.cc +31 -0
- data/ext/snowcrash/test/test-UriTemplateParser.cc +333 -0
- data/ext/snowcrash/test/test-ValuesParser.cc +106 -0
- data/ext/snowcrash/test/test-Warnings.cc +94 -0
- data/ext/snowcrash/test/test-csnowcrash.cc +404 -0
- data/ext/snowcrash/test/test-snowcrash.cc +664 -0
- data/ext/snowcrash/test/vendor/Catch/LICENSE_1_0.txt +23 -0
- data/ext/snowcrash/test/vendor/Catch/README.md +24 -0
- data/ext/snowcrash/test/vendor/Catch/catch-logo-small.png +0 -0
- data/ext/snowcrash/test/vendor/Catch/docs/assertions.md +59 -0
- data/ext/snowcrash/test/vendor/Catch/docs/command-line.md +137 -0
- data/ext/snowcrash/test/vendor/Catch/docs/logging.md +52 -0
- data/ext/snowcrash/test/vendor/Catch/docs/own-main.md +68 -0
- data/ext/snowcrash/test/vendor/Catch/docs/reference-index.md +13 -0
- data/ext/snowcrash/test/vendor/Catch/docs/test-fixtures.md +32 -0
- data/ext/snowcrash/test/vendor/Catch/docs/tutorial.md +100 -0
- data/ext/snowcrash/test/vendor/Catch/docs/whats-changed.md +24 -0
- data/ext/snowcrash/test/vendor/Catch/docs/why-catch.md +42 -0
- data/ext/snowcrash/test/vendor/Catch/include/catch.hpp +182 -0
- data/ext/snowcrash/test/vendor/Catch/include/catch_runner.hpp +236 -0
- data/ext/snowcrash/test/vendor/Catch/include/catch_with_main.hpp +15 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_approx.hpp +91 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_assertionresult.h +65 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_assertionresult.hpp +91 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_capture.hpp +175 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_commandline.hpp +129 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_common.h +148 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_compiler_capabilities.h +85 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_config.hpp +182 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_console_colour.hpp +66 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_console_colour_impl.hpp +153 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_context.h +53 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_context_impl.hpp +112 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_debugger.hpp +116 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_default_main.hpp +38 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_evaluate.hpp +178 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_exception_translator_registry.hpp +74 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_expression_decomposer.hpp +31 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_expression_lhs.hpp +97 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_expressionresult_builder.h +63 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_expressionresult_builder.hpp +98 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_generators.hpp +190 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_generators_impl.hpp +86 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_impl.hpp +97 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_capture.h +46 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_config.h +32 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_exception.h +66 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_generators.h +32 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_registry_hub.h +45 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_reporter.h +339 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_runner.h +23 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_interfaces_testcase.h +34 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_legacy_reporter_adapter.h +39 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_legacy_reporter_adapter.hpp +84 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_list.hpp +198 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_matchers.hpp +233 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_message.h +65 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_message.hpp +43 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_notimplemented_exception.h +35 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_notimplemented_exception.hpp +30 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_objc.hpp +202 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_objc_arc.hpp +51 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_option.hpp +67 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_ptr.hpp +94 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_registry_hub.hpp +83 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_reporter_registrars.hpp +75 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_reporter_registry.hpp +45 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_result_type.h +66 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_runner_impl.hpp +326 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_running_test.hpp +117 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_section.hpp +56 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_section_info.hpp +113 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_sfinae.hpp +44 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_stream.hpp +90 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_streambuf.h +21 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_tags.hpp +193 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_test_case_info.h +82 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_test_case_info.hpp +127 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_test_case_registry_impl.hpp +151 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_test_registry.hpp +120 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_test_spec.h +166 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_text.h +61 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_text.hpp +92 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_tostring.hpp +224 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_totals.hpp +67 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_version.h +37 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_version.hpp +19 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/catch_xmlwriter.hpp +211 -0
- data/ext/snowcrash/test/vendor/Catch/include/internal/clara.h +553 -0
- data/ext/snowcrash/test/vendor/Catch/include/reporters/catch_reporter_basic.hpp +353 -0
- data/ext/snowcrash/test/vendor/Catch/include/reporters/catch_reporter_console.hpp +397 -0
- data/ext/snowcrash/test/vendor/Catch/include/reporters/catch_reporter_junit.hpp +252 -0
- data/ext/snowcrash/test/vendor/Catch/include/reporters/catch_reporter_xml.hpp +145 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/ApproxTests.cpp +112 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/BDDTests.cpp +68 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/Baselines/approvedResults.txt +14686 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/ClassTests.cpp +57 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/CmdLineTests.cpp +191 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/ConditionTests.cpp +348 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/ExceptionTests.cpp +143 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/GeneratorTests.cpp +42 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/MessageTests.cpp +102 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/MiscTests.cpp +343 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_common.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_console_colour.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_debugger.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_capture.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_config.cpp +1 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_exception.cpp +1 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_generators.cpp +1 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_registry_hub.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_reporter.cpp +1 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_runner.cpp +1 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_interfaces_testcase.cpp +1 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_message.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_option.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_ptr.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_stream.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_streambuf.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_tags.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/SurrogateCpps/catch_xmlwriter.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/TestMain.cpp +561 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/TrickyTests.cpp +382 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/VariadicMacrosTests.cpp +31 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/catch_self_test.cpp +31 -0
- data/ext/snowcrash/test/vendor/Catch/projects/SelfTest/catch_self_test.hpp +177 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/TestCatch.sln +20 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/TestCatch/ReadMe.txt +33 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.cpp +8 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/TestCatch/TestCatch.vcproj +398 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/UpgradeLog.XML +12 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.css +207 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport.xslt +232 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport_Minus.gif +0 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2008/TestCatch/_UpgradeReport_Files/UpgradeReport_Plus.gif +0 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2010/TestCatch/TestCatch.sln +20 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2010/TestCatch/TestCatch/ReadMe.txt +33 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2010/TestCatch/TestCatch/TestCatch.cpp +8 -0
- data/ext/snowcrash/test/vendor/Catch/projects/VS2010/TestCatch/TestCatch/TestCatch.vcxproj +149 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/CatchSelfTest.xcodeproj/project.pbxproj +440 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/CatchSelfTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/CatchSelfTest.xcodeproj/xcuserdata/phil.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist +81 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/CatchSelfTest.xcodeproj/xcuserdata/phil.xcuserdatad/xcschemes/Test.xcscheme +154 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/CatchSelfTest.xcodeproj/xcuserdata/phil.xcuserdatad/xcschemes/xcschememanagement.plist +22 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/CatchSelfTestSingle/CatchSelfTestSingle.1 +79 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/CatchSelfTestSingle/CatchSelfTestSingle.xcodeproj/project.pbxproj +246 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/CatchOCTestCase.h +25 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/CatchOCTestCase.mm +45 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/Main.mm +1 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/OCTest.1 +79 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/OCTest.mm +28 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/OCTest.xcodeproj/project.pbxproj +259 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/OCTest_Prefix.pch +7 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/TestObj.h +25 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode3/OCTest/TestObj.m +18 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj +667 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/xcuserdata/Phil.xcuserdatad/xcschemes/xcschememanagement.plist +22 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTest/CatchSelfTest.1 +79 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTest/catch_text.cpp +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTestSingle.xcodeproj/project.pbxproj +264 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTestSingle.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/CatchSelfTest/CatchSelfTestSingle/dummy.txt +0 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest.xcodeproj/project.pbxproj +249 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest/CatchOCTestCase.h +25 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest/CatchOCTestCase.mm +82 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest/Main.mm +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest/OCTest.1 +79 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest/OCTest.mm +28 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest/TestObj.h +28 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/OCTest/OCTest/TestObj.m +25 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest.xcodeproj/project.pbxproj +299 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest/OCTest.mm +27 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest/TestObj.h +25 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest/TestObj.m +18 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest/en.lproj/InfoPlist.strings +2 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest/iOSTest-Info.plist +47 -0
- data/ext/snowcrash/test/vendor/Catch/projects/XCode4/iOSTest/iOSTest/iOSTest-Prefix.pch +14 -0
- data/ext/snowcrash/test/vendor/Catch/projects/runners/iTchRunner/internal/iTchRunnerAppDelegate.h +114 -0
- data/ext/snowcrash/test/vendor/Catch/projects/runners/iTchRunner/internal/iTchRunnerMainView.h +189 -0
- data/ext/snowcrash/test/vendor/Catch/projects/runners/iTchRunner/internal/iTchRunnerReporter.h +115 -0
- data/ext/snowcrash/test/vendor/Catch/projects/runners/iTchRunner/itChRunnerMain.mm +27 -0
- data/ext/snowcrash/test/vendor/Catch/projects/runners/iTchRunner/readme +6 -0
- data/ext/snowcrash/test/vendor/Catch/scripts/approvalTests.py +63 -0
- data/ext/snowcrash/test/vendor/Catch/scripts/approve.py +14 -0
- data/ext/snowcrash/test/vendor/Catch/scripts/generateSingleHeader.py +117 -0
- data/ext/snowcrash/test/vendor/Catch/scripts/scriptCommon.py +4 -0
- data/ext/snowcrash/test/vendor/Catch/single_include/catch.hpp +8046 -0
- data/ext/snowcrash/tools/README.md +27 -0
- data/ext/snowcrash/tools/gyp/LICENSE +27 -0
- data/ext/snowcrash/tools/gyp/gyptest.py +274 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/MSVSSettings_test.py +1483 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/__init__.pyc +0 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/common.pyc +0 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/common_test.py +72 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/easy_xml_test.py +103 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyc +0 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/generator/msvs_test.py +37 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/generator/ninja_test.py +44 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode_test.py +23 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/input.pyc +0 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/input_test.py +90 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- data/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- data/ext/snowcrash/tools/gyp/tools/README +15 -0
- data/ext/snowcrash/tools/gyp/tools/Xcode/README +5 -0
- data/ext/snowcrash/tools/gyp/tools/emacs/README +12 -0
- data/ext/snowcrash/tools/gyp/tools/emacs/gyp-tests.el +63 -0
- data/ext/snowcrash/tools/gyp/tools/emacs/run-unit-tests.sh +7 -0
- data/ext/snowcrash/tools/gyp/tools/emacs/testdata/media.gyp +1105 -0
- data/ext/snowcrash/tools/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
- data/lib/redsnow.rb +2 -2
- data/lib/redsnow/blueprint.rb +2 -1
- data/lib/redsnow/version.rb +1 -1
- data/pkg/redsnow-0.1.3.gem +0 -0
- data/pkg/redsnow-0.1.4.gem +0 -0
- data/pkg/redsnow-0.1.5.gem +0 -0
- data/pkg/redsnow-0.1.6.gem +0 -0
- data/pkg/redsnow-0.2.0.gem +0 -0
- data/pkg/redsnow-0.2.1.gem +0 -0
- data/pkg/redsnow-0.3.1.gem +0 -0
- data/redsnow.gemspec +2 -1
- data/test/redsnow_binding_test.rb +1 -1
- data/test/redsnow_options_test.rb +4 -4
- metadata +540 -6
- data/.gitignore +0 -34
- data/.gitmodules +0 -3
- data/.travis.yml +0 -21
@@ -0,0 +1,511 @@
|
|
1
|
+
#!/usr/bin/env python
|
2
|
+
# Generated by gyp. Do not edit.
|
3
|
+
# Copyright (c) 2012 Google Inc. All rights reserved.
|
4
|
+
# Use of this source code is governed by a BSD-style license that can be
|
5
|
+
# found in the LICENSE file.
|
6
|
+
|
7
|
+
"""Utility functions to perform Xcode-style build steps.
|
8
|
+
|
9
|
+
These functions are executed via gyp-mac-tool when using the Makefile generator.
|
10
|
+
"""
|
11
|
+
|
12
|
+
import fcntl
|
13
|
+
import fnmatch
|
14
|
+
import glob
|
15
|
+
import json
|
16
|
+
import os
|
17
|
+
import plistlib
|
18
|
+
import re
|
19
|
+
import shutil
|
20
|
+
import string
|
21
|
+
import subprocess
|
22
|
+
import sys
|
23
|
+
import tempfile
|
24
|
+
|
25
|
+
|
26
|
+
def main(args):
|
27
|
+
executor = MacTool()
|
28
|
+
exit_code = executor.Dispatch(args)
|
29
|
+
if exit_code is not None:
|
30
|
+
sys.exit(exit_code)
|
31
|
+
|
32
|
+
|
33
|
+
class MacTool(object):
|
34
|
+
"""This class performs all the Mac tooling steps. The methods can either be
|
35
|
+
executed directly, or dispatched from an argument list."""
|
36
|
+
|
37
|
+
def Dispatch(self, args):
|
38
|
+
"""Dispatches a string command to a method."""
|
39
|
+
if len(args) < 1:
|
40
|
+
raise Exception("Not enough arguments")
|
41
|
+
|
42
|
+
method = "Exec%s" % self._CommandifyName(args[0])
|
43
|
+
return getattr(self, method)(*args[1:])
|
44
|
+
|
45
|
+
def _CommandifyName(self, name_string):
|
46
|
+
"""Transforms a tool name like copy-info-plist to CopyInfoPlist"""
|
47
|
+
return name_string.title().replace('-', '')
|
48
|
+
|
49
|
+
def ExecCopyBundleResource(self, source, dest):
|
50
|
+
"""Copies a resource file to the bundle/Resources directory, performing any
|
51
|
+
necessary compilation on each resource."""
|
52
|
+
extension = os.path.splitext(source)[1].lower()
|
53
|
+
if os.path.isdir(source):
|
54
|
+
# Copy tree.
|
55
|
+
# TODO(thakis): This copies file attributes like mtime, while the
|
56
|
+
# single-file branch below doesn't. This should probably be changed to
|
57
|
+
# be consistent with the single-file branch.
|
58
|
+
if os.path.exists(dest):
|
59
|
+
shutil.rmtree(dest)
|
60
|
+
shutil.copytree(source, dest)
|
61
|
+
elif extension == '.xib':
|
62
|
+
return self._CopyXIBFile(source, dest)
|
63
|
+
elif extension == '.storyboard':
|
64
|
+
return self._CopyXIBFile(source, dest)
|
65
|
+
elif extension == '.strings':
|
66
|
+
self._CopyStringsFile(source, dest)
|
67
|
+
else:
|
68
|
+
shutil.copy(source, dest)
|
69
|
+
|
70
|
+
def _CopyXIBFile(self, source, dest):
|
71
|
+
"""Compiles a XIB file with ibtool into a binary plist in the bundle."""
|
72
|
+
|
73
|
+
# ibtool sometimes crashes with relative paths. See crbug.com/314728.
|
74
|
+
base = os.path.dirname(os.path.realpath(__file__))
|
75
|
+
if os.path.relpath(source):
|
76
|
+
source = os.path.join(base, source)
|
77
|
+
if os.path.relpath(dest):
|
78
|
+
dest = os.path.join(base, dest)
|
79
|
+
|
80
|
+
args = ['xcrun', 'ibtool', '--errors', '--warnings', '--notices',
|
81
|
+
'--output-format', 'human-readable-text', '--compile', dest, source]
|
82
|
+
ibtool_section_re = re.compile(r'/\*.*\*/')
|
83
|
+
ibtool_re = re.compile(r'.*note:.*is clipping its content')
|
84
|
+
ibtoolout = subprocess.Popen(args, stdout=subprocess.PIPE)
|
85
|
+
current_section_header = None
|
86
|
+
for line in ibtoolout.stdout:
|
87
|
+
if ibtool_section_re.match(line):
|
88
|
+
current_section_header = line
|
89
|
+
elif not ibtool_re.match(line):
|
90
|
+
if current_section_header:
|
91
|
+
sys.stdout.write(current_section_header)
|
92
|
+
current_section_header = None
|
93
|
+
sys.stdout.write(line)
|
94
|
+
return ibtoolout.returncode
|
95
|
+
|
96
|
+
def _CopyStringsFile(self, source, dest):
|
97
|
+
"""Copies a .strings file using iconv to reconvert the input into UTF-16."""
|
98
|
+
input_code = self._DetectInputEncoding(source) or "UTF-8"
|
99
|
+
|
100
|
+
# Xcode's CpyCopyStringsFile / builtin-copyStrings seems to call
|
101
|
+
# CFPropertyListCreateFromXMLData() behind the scenes; at least it prints
|
102
|
+
# CFPropertyListCreateFromXMLData(): Old-style plist parser: missing
|
103
|
+
# semicolon in dictionary.
|
104
|
+
# on invalid files. Do the same kind of validation.
|
105
|
+
import CoreFoundation
|
106
|
+
s = open(source, 'rb').read()
|
107
|
+
d = CoreFoundation.CFDataCreate(None, s, len(s))
|
108
|
+
_, error = CoreFoundation.CFPropertyListCreateFromXMLData(None, d, 0, None)
|
109
|
+
if error:
|
110
|
+
return
|
111
|
+
|
112
|
+
fp = open(dest, 'wb')
|
113
|
+
fp.write(s.decode(input_code).encode('UTF-16'))
|
114
|
+
fp.close()
|
115
|
+
|
116
|
+
def _DetectInputEncoding(self, file_name):
|
117
|
+
"""Reads the first few bytes from file_name and tries to guess the text
|
118
|
+
encoding. Returns None as a guess if it can't detect it."""
|
119
|
+
fp = open(file_name, 'rb')
|
120
|
+
try:
|
121
|
+
header = fp.read(3)
|
122
|
+
except e:
|
123
|
+
fp.close()
|
124
|
+
return None
|
125
|
+
fp.close()
|
126
|
+
if header.startswith("\xFE\xFF"):
|
127
|
+
return "UTF-16"
|
128
|
+
elif header.startswith("\xFF\xFE"):
|
129
|
+
return "UTF-16"
|
130
|
+
elif header.startswith("\xEF\xBB\xBF"):
|
131
|
+
return "UTF-8"
|
132
|
+
else:
|
133
|
+
return None
|
134
|
+
|
135
|
+
def ExecCopyInfoPlist(self, source, dest, *keys):
|
136
|
+
"""Copies the |source| Info.plist to the destination directory |dest|."""
|
137
|
+
# Read the source Info.plist into memory.
|
138
|
+
fd = open(source, 'r')
|
139
|
+
lines = fd.read()
|
140
|
+
fd.close()
|
141
|
+
|
142
|
+
# Insert synthesized key/value pairs (e.g. BuildMachineOSBuild).
|
143
|
+
plist = plistlib.readPlistFromString(lines)
|
144
|
+
if keys:
|
145
|
+
plist = dict(plist.items() + json.loads(keys[0]).items())
|
146
|
+
lines = plistlib.writePlistToString(plist)
|
147
|
+
|
148
|
+
# Go through all the environment variables and replace them as variables in
|
149
|
+
# the file.
|
150
|
+
IDENT_RE = re.compile('[/\s]')
|
151
|
+
for key in os.environ:
|
152
|
+
if key.startswith('_'):
|
153
|
+
continue
|
154
|
+
evar = '${%s}' % key
|
155
|
+
evalue = os.environ[key]
|
156
|
+
lines = string.replace(lines, evar, evalue)
|
157
|
+
|
158
|
+
# Xcode supports various suffices on environment variables, which are
|
159
|
+
# all undocumented. :rfc1034identifier is used in the standard project
|
160
|
+
# template these days, and :identifier was used earlier. They are used to
|
161
|
+
# convert non-url characters into things that look like valid urls --
|
162
|
+
# except that the replacement character for :identifier, '_' isn't valid
|
163
|
+
# in a URL either -- oops, hence :rfc1034identifier was born.
|
164
|
+
evar = '${%s:identifier}' % key
|
165
|
+
evalue = IDENT_RE.sub('_', os.environ[key])
|
166
|
+
lines = string.replace(lines, evar, evalue)
|
167
|
+
|
168
|
+
evar = '${%s:rfc1034identifier}' % key
|
169
|
+
evalue = IDENT_RE.sub('-', os.environ[key])
|
170
|
+
lines = string.replace(lines, evar, evalue)
|
171
|
+
|
172
|
+
# Remove any keys with values that haven't been replaced.
|
173
|
+
lines = lines.split('\n')
|
174
|
+
for i in range(len(lines)):
|
175
|
+
if lines[i].strip().startswith("<string>${"):
|
176
|
+
lines[i] = None
|
177
|
+
lines[i - 1] = None
|
178
|
+
lines = '\n'.join(filter(lambda x: x is not None, lines))
|
179
|
+
|
180
|
+
# Write out the file with variables replaced.
|
181
|
+
fd = open(dest, 'w')
|
182
|
+
fd.write(lines)
|
183
|
+
fd.close()
|
184
|
+
|
185
|
+
# Now write out PkgInfo file now that the Info.plist file has been
|
186
|
+
# "compiled".
|
187
|
+
self._WritePkgInfo(dest)
|
188
|
+
|
189
|
+
def _WritePkgInfo(self, info_plist):
|
190
|
+
"""This writes the PkgInfo file from the data stored in Info.plist."""
|
191
|
+
plist = plistlib.readPlist(info_plist)
|
192
|
+
if not plist:
|
193
|
+
return
|
194
|
+
|
195
|
+
# Only create PkgInfo for executable types.
|
196
|
+
package_type = plist['CFBundlePackageType']
|
197
|
+
if package_type != 'APPL':
|
198
|
+
return
|
199
|
+
|
200
|
+
# The format of PkgInfo is eight characters, representing the bundle type
|
201
|
+
# and bundle signature, each four characters. If that is missing, four
|
202
|
+
# '?' characters are used instead.
|
203
|
+
signature_code = plist.get('CFBundleSignature', '????')
|
204
|
+
if len(signature_code) != 4: # Wrong length resets everything, too.
|
205
|
+
signature_code = '?' * 4
|
206
|
+
|
207
|
+
dest = os.path.join(os.path.dirname(info_plist), 'PkgInfo')
|
208
|
+
fp = open(dest, 'w')
|
209
|
+
fp.write('%s%s' % (package_type, signature_code))
|
210
|
+
fp.close()
|
211
|
+
|
212
|
+
def ExecFlock(self, lockfile, *cmd_list):
|
213
|
+
"""Emulates the most basic behavior of Linux's flock(1)."""
|
214
|
+
# Rely on exception handling to report errors.
|
215
|
+
fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
|
216
|
+
fcntl.flock(fd, fcntl.LOCK_EX)
|
217
|
+
return subprocess.call(cmd_list)
|
218
|
+
|
219
|
+
def ExecFilterLibtool(self, *cmd_list):
|
220
|
+
"""Calls libtool and filters out '/path/to/libtool: file: foo.o has no
|
221
|
+
symbols'."""
|
222
|
+
libtool_re = re.compile(r'^.*libtool: file: .* has no symbols$')
|
223
|
+
libtoolout = subprocess.Popen(cmd_list, stderr=subprocess.PIPE)
|
224
|
+
_, err = libtoolout.communicate()
|
225
|
+
for line in err.splitlines():
|
226
|
+
if not libtool_re.match(line):
|
227
|
+
print >>sys.stderr, line
|
228
|
+
return libtoolout.returncode
|
229
|
+
|
230
|
+
def ExecPackageFramework(self, framework, version):
|
231
|
+
"""Takes a path to Something.framework and the Current version of that and
|
232
|
+
sets up all the symlinks."""
|
233
|
+
# Find the name of the binary based on the part before the ".framework".
|
234
|
+
binary = os.path.basename(framework).split('.')[0]
|
235
|
+
|
236
|
+
CURRENT = 'Current'
|
237
|
+
RESOURCES = 'Resources'
|
238
|
+
VERSIONS = 'Versions'
|
239
|
+
|
240
|
+
if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
|
241
|
+
# Binary-less frameworks don't seem to contain symlinks (see e.g.
|
242
|
+
# chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
|
243
|
+
return
|
244
|
+
|
245
|
+
# Move into the framework directory to set the symlinks correctly.
|
246
|
+
pwd = os.getcwd()
|
247
|
+
os.chdir(framework)
|
248
|
+
|
249
|
+
# Set up the Current version.
|
250
|
+
self._Relink(version, os.path.join(VERSIONS, CURRENT))
|
251
|
+
|
252
|
+
# Set up the root symlinks.
|
253
|
+
self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
|
254
|
+
self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
|
255
|
+
|
256
|
+
# Back to where we were before!
|
257
|
+
os.chdir(pwd)
|
258
|
+
|
259
|
+
def _Relink(self, dest, link):
|
260
|
+
"""Creates a symlink to |dest| named |link|. If |link| already exists,
|
261
|
+
it is overwritten."""
|
262
|
+
if os.path.lexists(link):
|
263
|
+
os.remove(link)
|
264
|
+
os.symlink(dest, link)
|
265
|
+
|
266
|
+
def ExecCodeSignBundle(self, key, resource_rules, entitlements, provisioning):
|
267
|
+
"""Code sign a bundle.
|
268
|
+
|
269
|
+
This function tries to code sign an iOS bundle, following the same
|
270
|
+
algorithm as Xcode:
|
271
|
+
1. copy ResourceRules.plist from the user or the SDK into the bundle,
|
272
|
+
2. pick the provisioning profile that best match the bundle identifier,
|
273
|
+
and copy it into the bundle as embedded.mobileprovision,
|
274
|
+
3. copy Entitlements.plist from user or SDK next to the bundle,
|
275
|
+
4. code sign the bundle.
|
276
|
+
"""
|
277
|
+
resource_rules_path = self._InstallResourceRules(resource_rules)
|
278
|
+
substitutions, overrides = self._InstallProvisioningProfile(
|
279
|
+
provisioning, self._GetCFBundleIdentifier())
|
280
|
+
entitlements_path = self._InstallEntitlements(
|
281
|
+
entitlements, substitutions, overrides)
|
282
|
+
subprocess.check_call([
|
283
|
+
'codesign', '--force', '--sign', key, '--resource-rules',
|
284
|
+
resource_rules_path, '--entitlements', entitlements_path,
|
285
|
+
os.path.join(
|
286
|
+
os.environ['TARGET_BUILD_DIR'],
|
287
|
+
os.environ['FULL_PRODUCT_NAME'])])
|
288
|
+
|
289
|
+
def _InstallResourceRules(self, resource_rules):
|
290
|
+
"""Installs ResourceRules.plist from user or SDK into the bundle.
|
291
|
+
|
292
|
+
Args:
|
293
|
+
resource_rules: string, optional, path to the ResourceRules.plist file
|
294
|
+
to use, default to "${SDKROOT}/ResourceRules.plist"
|
295
|
+
|
296
|
+
Returns:
|
297
|
+
Path to the copy of ResourceRules.plist into the bundle.
|
298
|
+
"""
|
299
|
+
source_path = resource_rules
|
300
|
+
target_path = os.path.join(
|
301
|
+
os.environ['BUILT_PRODUCTS_DIR'],
|
302
|
+
os.environ['CONTENTS_FOLDER_PATH'],
|
303
|
+
'ResourceRules.plist')
|
304
|
+
if not source_path:
|
305
|
+
source_path = os.path.join(
|
306
|
+
os.environ['SDKROOT'], 'ResourceRules.plist')
|
307
|
+
shutil.copy2(source_path, target_path)
|
308
|
+
return target_path
|
309
|
+
|
310
|
+
def _InstallProvisioningProfile(self, profile, bundle_identifier):
|
311
|
+
"""Installs embedded.mobileprovision into the bundle.
|
312
|
+
|
313
|
+
Args:
|
314
|
+
profile: string, optional, short name of the .mobileprovision file
|
315
|
+
to use, if empty or the file is missing, the best file installed
|
316
|
+
will be used
|
317
|
+
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
318
|
+
|
319
|
+
Returns:
|
320
|
+
A tuple containing two dictionary: variables substitutions and values
|
321
|
+
to overrides when generating the entitlements file.
|
322
|
+
"""
|
323
|
+
source_path, provisioning_data, team_id = self._FindProvisioningProfile(
|
324
|
+
profile, bundle_identifier)
|
325
|
+
target_path = os.path.join(
|
326
|
+
os.environ['BUILT_PRODUCTS_DIR'],
|
327
|
+
os.environ['CONTENTS_FOLDER_PATH'],
|
328
|
+
'embedded.mobileprovision')
|
329
|
+
shutil.copy2(source_path, target_path)
|
330
|
+
substitutions = self._GetSubstitutions(bundle_identifier, team_id + '.')
|
331
|
+
return substitutions, provisioning_data['Entitlements']
|
332
|
+
|
333
|
+
def _FindProvisioningProfile(self, profile, bundle_identifier):
|
334
|
+
"""Finds the .mobileprovision file to use for signing the bundle.
|
335
|
+
|
336
|
+
Checks all the installed provisioning profiles (or if the user specified
|
337
|
+
the PROVISIONING_PROFILE variable, only consult it) and select the most
|
338
|
+
specific that correspond to the bundle identifier.
|
339
|
+
|
340
|
+
Args:
|
341
|
+
profile: string, optional, short name of the .mobileprovision file
|
342
|
+
to use, if empty or the file is missing, the best file installed
|
343
|
+
will be used
|
344
|
+
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
345
|
+
|
346
|
+
Returns:
|
347
|
+
A tuple of the path to the selected provisioning profile, the data of
|
348
|
+
the embedded plist in the provisioning profile and the team identifier
|
349
|
+
to use for code signing.
|
350
|
+
|
351
|
+
Raises:
|
352
|
+
SystemExit: if no .mobileprovision can be used to sign the bundle.
|
353
|
+
"""
|
354
|
+
profiles_dir = os.path.join(
|
355
|
+
os.environ['HOME'], 'Library', 'MobileDevice', 'Provisioning Profiles')
|
356
|
+
if not os.path.isdir(profiles_dir):
|
357
|
+
print >>sys.stderr, (
|
358
|
+
'cannot find mobile provisioning for %s' % bundle_identifier)
|
359
|
+
sys.exit(1)
|
360
|
+
provisioning_profiles = None
|
361
|
+
if profile:
|
362
|
+
profile_path = os.path.join(profiles_dir, profile + '.mobileprovision')
|
363
|
+
if os.path.exists(profile_path):
|
364
|
+
provisioning_profiles = [profile_path]
|
365
|
+
if not provisioning_profiles:
|
366
|
+
provisioning_profiles = glob.glob(
|
367
|
+
os.path.join(profiles_dir, '*.mobileprovision'))
|
368
|
+
valid_provisioning_profiles = {}
|
369
|
+
for profile_path in provisioning_profiles:
|
370
|
+
profile_data = self._LoadProvisioningProfile(profile_path)
|
371
|
+
app_id_pattern = profile_data.get(
|
372
|
+
'Entitlements', {}).get('application-identifier', '')
|
373
|
+
for team_identifier in profile_data.get('TeamIdentifier', []):
|
374
|
+
app_id = '%s.%s' % (team_identifier, bundle_identifier)
|
375
|
+
if fnmatch.fnmatch(app_id, app_id_pattern):
|
376
|
+
valid_provisioning_profiles[app_id_pattern] = (
|
377
|
+
profile_path, profile_data, team_identifier)
|
378
|
+
if not valid_provisioning_profiles:
|
379
|
+
print >>sys.stderr, (
|
380
|
+
'cannot find mobile provisioning for %s' % bundle_identifier)
|
381
|
+
sys.exit(1)
|
382
|
+
# If the user has multiple provisioning profiles installed that can be
|
383
|
+
# used for ${bundle_identifier}, pick the most specific one (ie. the
|
384
|
+
# provisioning profile whose pattern is the longest).
|
385
|
+
selected_key = max(valid_provisioning_profiles, key=lambda v: len(v))
|
386
|
+
return valid_provisioning_profiles[selected_key]
|
387
|
+
|
388
|
+
def _LoadProvisioningProfile(self, profile_path):
|
389
|
+
"""Extracts the plist embedded in a provisioning profile.
|
390
|
+
|
391
|
+
Args:
|
392
|
+
profile_path: string, path to the .mobileprovision file
|
393
|
+
|
394
|
+
Returns:
|
395
|
+
Content of the plist embedded in the provisioning profile as a dictionary.
|
396
|
+
"""
|
397
|
+
with tempfile.NamedTemporaryFile() as temp:
|
398
|
+
subprocess.check_call([
|
399
|
+
'security', 'cms', '-D', '-i', profile_path, '-o', temp.name])
|
400
|
+
return self._LoadPlistMaybeBinary(temp.name)
|
401
|
+
|
402
|
+
def _LoadPlistMaybeBinary(self, plist_path):
|
403
|
+
"""Loads into a memory a plist possibly encoded in binary format.
|
404
|
+
|
405
|
+
This is a wrapper around plistlib.readPlist that tries to convert the
|
406
|
+
plist to the XML format if it can't be parsed (assuming that it is in
|
407
|
+
the binary format).
|
408
|
+
|
409
|
+
Args:
|
410
|
+
plist_path: string, path to a plist file, in XML or binary format
|
411
|
+
|
412
|
+
Returns:
|
413
|
+
Content of the plist as a dictionary.
|
414
|
+
"""
|
415
|
+
try:
|
416
|
+
# First, try to read the file using plistlib that only supports XML,
|
417
|
+
# and if an exception is raised, convert a temporary copy to XML and
|
418
|
+
# load that copy.
|
419
|
+
return plistlib.readPlist(plist_path)
|
420
|
+
except:
|
421
|
+
pass
|
422
|
+
with tempfile.NamedTemporaryFile() as temp:
|
423
|
+
shutil.copy2(plist_path, temp.name)
|
424
|
+
subprocess.check_call(['plutil', '-convert', 'xml1', temp.name])
|
425
|
+
return plistlib.readPlist(temp.name)
|
426
|
+
|
427
|
+
def _GetSubstitutions(self, bundle_identifier, app_identifier_prefix):
|
428
|
+
"""Constructs a dictionary of variable substitutions for Entitlements.plist.
|
429
|
+
|
430
|
+
Args:
|
431
|
+
bundle_identifier: string, value of CFBundleIdentifier from Info.plist
|
432
|
+
app_identifier_prefix: string, value for AppIdentifierPrefix
|
433
|
+
|
434
|
+
Returns:
|
435
|
+
Dictionary of substitutions to apply when generating Entitlements.plist.
|
436
|
+
"""
|
437
|
+
return {
|
438
|
+
'CFBundleIdentifier': bundle_identifier,
|
439
|
+
'AppIdentifierPrefix': app_identifier_prefix,
|
440
|
+
}
|
441
|
+
|
442
|
+
def _GetCFBundleIdentifier(self):
|
443
|
+
"""Extracts CFBundleIdentifier value from Info.plist in the bundle.
|
444
|
+
|
445
|
+
Returns:
|
446
|
+
Value of CFBundleIdentifier in the Info.plist located in the bundle.
|
447
|
+
"""
|
448
|
+
info_plist_path = os.path.join(
|
449
|
+
os.environ['TARGET_BUILD_DIR'],
|
450
|
+
os.environ['INFOPLIST_PATH'])
|
451
|
+
info_plist_data = self._LoadPlistMaybeBinary(info_plist_path)
|
452
|
+
return info_plist_data['CFBundleIdentifier']
|
453
|
+
|
454
|
+
def _InstallEntitlements(self, entitlements, substitutions, overrides):
|
455
|
+
"""Generates and install the ${BundleName}.xcent entitlements file.
|
456
|
+
|
457
|
+
Expands variables "$(variable)" pattern in the source entitlements file,
|
458
|
+
add extra entitlements defined in the .mobileprovision file and the copy
|
459
|
+
the generated plist to "${BundlePath}.xcent".
|
460
|
+
|
461
|
+
Args:
|
462
|
+
entitlements: string, optional, path to the Entitlements.plist template
|
463
|
+
to use, defaults to "${SDKROOT}/Entitlements.plist"
|
464
|
+
substitutions: dictionary, variable substitutions
|
465
|
+
overrides: dictionary, values to add to the entitlements
|
466
|
+
|
467
|
+
Returns:
|
468
|
+
Path to the generated entitlements file.
|
469
|
+
"""
|
470
|
+
source_path = entitlements
|
471
|
+
target_path = os.path.join(
|
472
|
+
os.environ['BUILT_PRODUCTS_DIR'],
|
473
|
+
os.environ['PRODUCT_NAME'] + '.xcent')
|
474
|
+
if not source_path:
|
475
|
+
source_path = os.path.join(
|
476
|
+
os.environ['SDKROOT'],
|
477
|
+
'Entitlements.plist')
|
478
|
+
shutil.copy2(source_path, target_path)
|
479
|
+
data = self._LoadPlistMaybeBinary(target_path)
|
480
|
+
data = self._ExpandVariables(data, substitutions)
|
481
|
+
if overrides:
|
482
|
+
for key in overrides:
|
483
|
+
if key not in data:
|
484
|
+
data[key] = overrides[key]
|
485
|
+
plistlib.writePlist(data, target_path)
|
486
|
+
return target_path
|
487
|
+
|
488
|
+
def _ExpandVariables(self, data, substitutions):
|
489
|
+
"""Expands variables "$(variable)" in data.
|
490
|
+
|
491
|
+
Args:
|
492
|
+
data: object, can be either string, list or dictionary
|
493
|
+
substitutions: dictionary, variable substitutions to perform
|
494
|
+
|
495
|
+
Returns:
|
496
|
+
Copy of data where each references to "$(variable)" has been replaced
|
497
|
+
by the corresponding value found in substitutions, or left intact if
|
498
|
+
the key was not found.
|
499
|
+
"""
|
500
|
+
if isinstance(data, str):
|
501
|
+
for key, value in substitutions.iteritems():
|
502
|
+
data = data.replace('$(%s)' % key, value)
|
503
|
+
return data
|
504
|
+
if isinstance(data, list):
|
505
|
+
return [self._ExpandVariables(v, substitutions) for v in data]
|
506
|
+
if isinstance(data, dict):
|
507
|
+
return {k: self._ExpandVariables(data[k], substitutions) for k in data}
|
508
|
+
return data
|
509
|
+
|
510
|
+
if __name__ == '__main__':
|
511
|
+
sys.exit(main(sys.argv[1:]))
|