lounge_lizard 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Guardfile +33 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/Rakefile +43 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/circle.yml +14 -0
- data/ext/drafter/CHANGELOG.md +278 -0
- data/ext/drafter/Dockerfile +17 -0
- data/ext/drafter/Makefile +62 -0
- data/ext/drafter/appveyor.yml +17 -0
- data/ext/drafter/bin/drafter +0 -0
- data/ext/drafter/build/Makefile +387 -0
- data/ext/drafter/build/drafter.Makefile +6 -0
- data/ext/drafter/build/drafter.target.mk +159 -0
- data/ext/drafter/build/ext/snowcrash/libmarkdownparser.target.mk +141 -0
- data/ext/drafter/build/ext/snowcrash/libsnowcrash.target.mk +154 -0
- data/ext/drafter/build/ext/snowcrash/libsundown.target.mk +149 -0
- data/ext/drafter/build/ext/snowcrash/perf-libsnowcrash.target.mk +147 -0
- data/ext/drafter/build/ext/snowcrash/snowcrash.Makefile +6 -0
- data/ext/drafter/build/gyp-mac-tool +606 -0
- data/ext/drafter/build/libdrafter.target.mk +186 -0
- data/ext/drafter/build/libsos.target.mk +137 -0
- data/ext/drafter/build/out/Release/drafter +0 -0
- data/ext/drafter/build/out/Release/libdrafter.dylib +0 -0
- data/ext/drafter/build/out/Release/libmarkdownparser.a +0 -0
- data/ext/drafter/build/out/Release/libsnowcrash.a +0 -0
- data/ext/drafter/build/out/Release/libsos.a +0 -0
- data/ext/drafter/build/out/Release/libsundown.a +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/config.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/main.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/drafter/src/reporting.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/ConversionContext.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/NamedTypesRegistry.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractAPI.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractDataStructure.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractElementFactory.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/RefractSourceMap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/Render.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/Serialize.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeAST.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeResult.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter_private.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/ComparableVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Element.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/ExpandVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/IsExpandableVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/JSONSchemaVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/PrintVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Query.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/Registry.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/RenderJSONVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/SerializeCompactVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/SerializeVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/TypeQueryVisitor.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libdrafter/src/refract/VisitorUtils.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Blueprint.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/BlueprintSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HTTP.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HeadersParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSON.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONOneOfParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONSourcemap.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONTypeSectionParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONValueMemberParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Section.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Signature.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/UriTemplateParser.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/posix/RegexMatch.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/snowcrash.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsos/ext/sos/src/sos.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_href_e.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_html_e.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html_smartypants.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.o +0 -0
- data/ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.o +0 -0
- data/ext/drafter/circle.yml +32 -0
- data/ext/drafter/config.gypi +10 -0
- data/ext/drafter/config.mk +5 -0
- data/ext/drafter/configure +224 -0
- data/ext/drafter/drafter.gyp +189 -0
- data/ext/drafter/drafter.xcworkspace/contents.xcworkspacedata +13 -0
- data/ext/drafter/ext/snowcrash/Makefile +58 -0
- data/ext/drafter/ext/snowcrash/appveyor.yml +7 -0
- data/ext/drafter/ext/snowcrash/common.gypi +165 -0
- data/ext/drafter/ext/snowcrash/configure +197 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/Makefile +90 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/CONTRIBUTING.md +10 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile +84 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile.win +33 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/smartypants.c +72 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/sundown.c +80 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h +37 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_href_e.c +108 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_html_e.c +84 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.c +647 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.h +77 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html_smartypants.c +389 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html_block_names.txt +25 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.c +297 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.h +51 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.c +225 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.h +96 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/html_blocks.h +206 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.c +2726 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.h +147 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.c +204 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/src_map.h +58 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.c +81 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.h +29 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/sundown.def +20 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/markdown/markdown.vcproj +188 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/msvc.sln +38 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/sundown/sundown.vcproj +206 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.cc +160 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.h +90 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.cc +152 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.h +103 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.cc +388 -0
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.h +106 -0
- data/ext/drafter/ext/snowcrash/snowcrash.gyp +196 -0
- data/ext/drafter/ext/snowcrash/src/ActionParser.h +560 -0
- data/ext/drafter/ext/snowcrash/src/AssetParser.h +123 -0
- data/ext/drafter/ext/snowcrash/src/AttributesParser.h +123 -0
- data/ext/drafter/ext/snowcrash/src/Blueprint.cc +90 -0
- data/ext/drafter/ext/snowcrash/src/Blueprint.h +489 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintParser.h +845 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintSourcemap.cc +81 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintSourcemap.h +345 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintUtility.h +111 -0
- data/ext/drafter/ext/snowcrash/src/CodeBlockUtility.h +276 -0
- data/ext/drafter/ext/snowcrash/src/DataStructureGroupParser.h +157 -0
- data/ext/drafter/ext/snowcrash/src/HTTP.cc +49 -0
- data/ext/drafter/ext/snowcrash/src/HTTP.h +108 -0
- data/ext/drafter/ext/snowcrash/src/HeadersParser.cc +117 -0
- data/ext/drafter/ext/snowcrash/src/HeadersParser.h +377 -0
- data/ext/drafter/ext/snowcrash/src/MSON.cc +272 -0
- data/ext/drafter/ext/snowcrash/src/MSON.h +405 -0
- data/ext/drafter/ext/snowcrash/src/MSONMixinParser.h +103 -0
- data/ext/drafter/ext/snowcrash/src/MSONNamedTypeParser.h +135 -0
- data/ext/drafter/ext/snowcrash/src/MSONOneOfParser.cc +132 -0
- data/ext/drafter/ext/snowcrash/src/MSONOneOfParser.h +80 -0
- data/ext/drafter/ext/snowcrash/src/MSONParameterParser.h +166 -0
- data/ext/drafter/ext/snowcrash/src/MSONPropertyMemberParser.h +106 -0
- data/ext/drafter/ext/snowcrash/src/MSONSourcemap.cc +141 -0
- data/ext/drafter/ext/snowcrash/src/MSONSourcemap.h +181 -0
- data/ext/drafter/ext/snowcrash/src/MSONTypeSectionParser.cc +209 -0
- data/ext/drafter/ext/snowcrash/src/MSONTypeSectionParser.h +213 -0
- data/ext/drafter/ext/snowcrash/src/MSONUtility.h +506 -0
- data/ext/drafter/ext/snowcrash/src/MSONValueMemberParser.cc +214 -0
- data/ext/drafter/ext/snowcrash/src/MSONValueMemberParser.h +390 -0
- data/ext/drafter/ext/snowcrash/src/ModelTable.h +87 -0
- data/ext/drafter/ext/snowcrash/src/ParameterParser.h +516 -0
- data/ext/drafter/ext/snowcrash/src/ParametersParser.h +222 -0
- data/ext/drafter/ext/snowcrash/src/PayloadParser.h +733 -0
- data/ext/drafter/ext/snowcrash/src/Platform.h +33 -0
- data/ext/drafter/ext/snowcrash/src/RegexMatch.h +32 -0
- data/ext/drafter/ext/snowcrash/src/RelationParser.h +87 -0
- data/ext/drafter/ext/snowcrash/src/ResourceGroupParser.h +297 -0
- data/ext/drafter/ext/snowcrash/src/ResourceParser.h +536 -0
- data/ext/drafter/ext/snowcrash/src/Section.cc +48 -0
- data/ext/drafter/ext/snowcrash/src/Section.h +60 -0
- data/ext/drafter/ext/snowcrash/src/SectionParser.h +246 -0
- data/ext/drafter/ext/snowcrash/src/SectionParserData.h +109 -0
- data/ext/drafter/ext/snowcrash/src/SectionProcessor.h +299 -0
- data/ext/drafter/ext/snowcrash/src/Signature.cc +75 -0
- data/ext/drafter/ext/snowcrash/src/Signature.h +103 -0
- data/ext/drafter/ext/snowcrash/src/SignatureSectionProcessor.h +442 -0
- data/ext/drafter/ext/snowcrash/src/SourceAnnotation.h +166 -0
- data/ext/drafter/ext/snowcrash/src/StringUtility.h +323 -0
- data/ext/drafter/ext/snowcrash/src/UriTemplateParser.cc +195 -0
- data/ext/drafter/ext/snowcrash/src/UriTemplateParser.h +240 -0
- data/ext/drafter/ext/snowcrash/src/ValuesParser.h +111 -0
- data/ext/drafter/ext/snowcrash/src/posix/RegexMatch.cc +99 -0
- data/ext/drafter/ext/snowcrash/src/snowcrash.cc +90 -0
- data/ext/drafter/ext/snowcrash/src/snowcrash.h +44 -0
- data/ext/drafter/ext/snowcrash/src/win/RegexMatch.cc +78 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/AUTHORS +12 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/DEPS +23 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/OWNERS +1 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/PRESUBMIT.py +137 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/buildbot_run.py +136 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/commit_queue/OWNERS +6 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/buildbot/commit_queue/cq_config.json +15 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/codereview.settings +10 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/data/win/large-pdb-shim.cc +12 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp +8 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp.bat +5 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/gyp_main.py +16 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSNew.py +340 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSSettings.py +1096 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.py +270 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.py +445 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.py +548 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.py +608 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/easy_xml.py +157 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/flock_tool.py +54 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/analyzer.py +741 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/android.py +1069 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/cmake.py +1248 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/dump_dependency_json.py +99 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/eclipse.py +425 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/gypd.py +94 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.py +2218 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/make.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/msvs.py +3467 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/ninja.py +2427 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/ninja.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.py +1300 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/input.py +2899 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/input.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/mac_tool.py +605 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/msvs_emulation.py +1093 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/msvs_emulation.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ninja_syntax.py +160 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ninja_syntax.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ordered_dict.py +289 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/simple_copy.py +46 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/simple_copy.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/win_tool.py +314 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.py +1664 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_ninja.py +276 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_ninja.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.py +2927 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xml_fix.py +69 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylintrc +307 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/samples/samples +81 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/samples/samples.bat +5 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/setup.py +19 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/emacs/gyp.el +275 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/graphviz.py +100 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_gyp.py +155 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_sln.py +169 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_vcproj.py +329 -0
- data/ext/drafter/ext/snowcrash/vcbuild.bat +139 -0
- data/ext/drafter/ext/sos/Makefile +62 -0
- data/ext/drafter/ext/sos/src/sos.cc +235 -0
- data/ext/drafter/ext/sos/src/sos.h +188 -0
- data/ext/drafter/ext/sos/src/sosJSON.h +121 -0
- data/ext/drafter/ext/sos/src/sosYAML.h +105 -0
- data/ext/drafter/src/ConversionContext.cc +39 -0
- data/ext/drafter/src/ConversionContext.h +34 -0
- data/ext/drafter/src/NamedTypesRegistry.cc +405 -0
- data/ext/drafter/src/NamedTypesRegistry.h +28 -0
- data/ext/drafter/src/NodeInfo.h +143 -0
- data/ext/drafter/src/RefractAPI.cc +579 -0
- data/ext/drafter/src/RefractAPI.h +28 -0
- data/ext/drafter/src/RefractDataStructure.cc +1199 -0
- data/ext/drafter/src/RefractDataStructure.h +26 -0
- data/ext/drafter/src/RefractElementFactory.cc +107 -0
- data/ext/drafter/src/RefractElementFactory.h +67 -0
- data/ext/drafter/src/RefractSourceMap.cc +29 -0
- data/ext/drafter/src/RefractSourceMap.h +57 -0
- data/ext/drafter/src/Render.cc +157 -0
- data/ext/drafter/src/Render.h +40 -0
- data/ext/drafter/src/Serialize.cc +160 -0
- data/ext/drafter/src/Serialize.h +289 -0
- data/ext/drafter/src/SerializeAST.cc +507 -0
- data/ext/drafter/src/SerializeAST.h +29 -0
- data/ext/drafter/src/SerializeResult.cc +170 -0
- data/ext/drafter/src/SerializeResult.h +34 -0
- data/ext/drafter/src/SerializeSourcemap.cc +331 -0
- data/ext/drafter/src/SerializeSourcemap.h +21 -0
- data/ext/drafter/src/Version.h +40 -0
- data/ext/drafter/src/config.cc +91 -0
- data/ext/drafter/src/config.h +38 -0
- data/ext/drafter/src/drafter.cc +137 -0
- data/ext/drafter/src/drafter.h +102 -0
- data/ext/drafter/src/drafter_private.cc +85 -0
- data/ext/drafter/src/drafter_private.h +34 -0
- data/ext/drafter/src/main.cc +137 -0
- data/ext/drafter/src/refract/AppendDecorator.h +58 -0
- data/ext/drafter/src/refract/Build.h +67 -0
- data/ext/drafter/src/refract/ComparableVisitor.cc +43 -0
- data/ext/drafter/src/refract/ComparableVisitor.h +62 -0
- data/ext/drafter/src/refract/Element.cc +409 -0
- data/ext/drafter/src/refract/Element.h +656 -0
- data/ext/drafter/src/refract/ElementFwd.h +37 -0
- data/ext/drafter/src/refract/ElementInserter.h +59 -0
- data/ext/drafter/src/refract/Exception.h +31 -0
- data/ext/drafter/src/refract/ExpandVisitor.cc +359 -0
- data/ext/drafter/src/refract/ExpandVisitor.h +58 -0
- data/ext/drafter/src/refract/FilterVisitor.h +52 -0
- data/ext/drafter/src/refract/IsExpandableVisitor.cc +140 -0
- data/ext/drafter/src/refract/IsExpandableVisitor.h +31 -0
- data/ext/drafter/src/refract/Iterate.h +160 -0
- data/ext/drafter/src/refract/JSONSchemaVisitor.cc +675 -0
- data/ext/drafter/src/refract/JSONSchemaVisitor.h +73 -0
- data/ext/drafter/src/refract/PrintVisitor.cc +164 -0
- data/ext/drafter/src/refract/PrintVisitor.h +50 -0
- data/ext/drafter/src/refract/Query.cc +13 -0
- data/ext/drafter/src/refract/Query.h +38 -0
- data/ext/drafter/src/refract/Registry.cc +114 -0
- data/ext/drafter/src/refract/Registry.h +43 -0
- data/ext/drafter/src/refract/RenderJSONVisitor.cc +255 -0
- data/ext/drafter/src/refract/RenderJSONVisitor.h +51 -0
- data/ext/drafter/src/refract/SerializeCompactVisitor.cc +167 -0
- data/ext/drafter/src/refract/SerializeCompactVisitor.h +56 -0
- data/ext/drafter/src/refract/SerializeVisitor.cc +214 -0
- data/ext/drafter/src/refract/SerializeVisitor.h +55 -0
- data/ext/drafter/src/refract/TypeQueryVisitor.cc +46 -0
- data/ext/drafter/src/refract/TypeQueryVisitor.h +110 -0
- data/ext/drafter/src/refract/Visitor.h +126 -0
- data/ext/drafter/src/refract/VisitorUtils.cc +63 -0
- data/ext/drafter/src/refract/VisitorUtils.h +231 -0
- data/ext/drafter/src/reporting.cc +263 -0
- data/ext/drafter/src/reporting.h +39 -0
- data/ext/drafter/src/stream.h +148 -0
- data/ext/drafter/tools/homebrew/drafter.rb +18 -0
- data/ext/drafter/tools/make-tarball.sh +39 -0
- data/ext/drafter/tools/refract-filter.py +96 -0
- data/ext/drafter/tools/release.sh +17 -0
- data/ext/drafter/vcbuild.bat +203 -0
- data/lib/lounge_lizard/binding.rb +29 -0
- data/lib/lounge_lizard/version.rb +3 -0
- data/lib/lounge_lizard.rb +18 -0
- data/lounge_lizard.gemspec +37 -0
- metadata +547 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 94e47f2db7586b6eea4e40cdd1671658b7154205
|
4
|
+
data.tar.gz: 76daea6dabef3cd100dc7ea9c5b6fb5b7fb4d823
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 651ccbf76c6bdeb18718f9ea72e397b6d559094c81c4253ac7f69a46dd52efae2f0c7756a8b7f19212900763c9c78fb130cd690f0660454cb482770913a21353
|
7
|
+
data.tar.gz: e18b631c08edf3f244427152537b16b398a51a19d01334411ad9d9086deeb0c190927c3f20975bd443b5a2f67339592501beb908c37869ccc986b1bc51470a70
|
data/.gitignore
ADDED
data/.gitmodules
ADDED
data/.rspec
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at david.garcia@moviepilot.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
guard :bundler do
|
2
|
+
require 'guard/bundler'
|
3
|
+
require 'guard/bundler/verify'
|
4
|
+
helper = Guard::Bundler::Verify.new
|
5
|
+
|
6
|
+
files = ['Gemfile']
|
7
|
+
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
|
8
|
+
|
9
|
+
# Assume files are symlinked from somewhere
|
10
|
+
files.each { |file| watch(helper.real_path(file)) }
|
11
|
+
end
|
12
|
+
|
13
|
+
guard 'ctags-bundler', src_path: ['app', 'lib', 'spec/support'] do
|
14
|
+
watch(/^(app|lib|spec\/support)\/.*\.rb$/)
|
15
|
+
watch('Gemfile.lock')
|
16
|
+
end
|
17
|
+
|
18
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
19
|
+
require 'guard/rspec/dsl'
|
20
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
21
|
+
|
22
|
+
# Feel free to open issues for suggestions and improvements
|
23
|
+
|
24
|
+
# RSpec files
|
25
|
+
rspec = dsl.rspec
|
26
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
27
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
28
|
+
watch(rspec.spec_files)
|
29
|
+
|
30
|
+
# Ruby files
|
31
|
+
ruby = dsl.ruby
|
32
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
33
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 David Garcia
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# Lounge Lizard [![Circle CI](https://circleci.com/gh/moviepilot/lounge_lizard/tree/master.svg?style=shield)](https://circleci.com/gh/moviepilot/lounge_lizard/tree/master) [![Coverage Status](https://coveralls.io/repos/moviepilot/lounge_lizard/badge.svg?branch=master&service=github)](https://coveralls.io/github/moviepilot/lounge_lizard?branch=master)
|
2
|
+
|
3
|
+
![](https://cloud.githubusercontent.com/assets/3609616/21100043/238d67cc-c072-11e6-9f4e-252e9cb1ae19.jpg)
|
4
|
+
|
5
|
+
A small [drafter](https://github.com/apiaryio/drafter) binding. As [redsnow](https://github.com/apiaryio/redsnow)
|
6
|
+
is outdated and deprecated, we implemented a binding for the parsing method of drafter.
|
7
|
+
|
8
|
+
The drafter version used by the current Lounge Lizard version is 3.2.2
|
9
|
+
|
10
|
+
### Drafter
|
11
|
+
|
12
|
+
This is just ruby wrapper to use Drafter. Check [drafter's repository](https://github.com/apiaryio/drafter) for more info
|
13
|
+
|
14
|
+
## Install
|
15
|
+
|
16
|
+
```sh
|
17
|
+
$ gem install lounge_lizard
|
18
|
+
```
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
`LoungeLizard.parse(mson_string_content)` will return a hash representing the AST of the mson file.
|
22
|
+
|
23
|
+
You can also call the c++ function directly. For an example, just check `lib/lounge_lizard.rb`:
|
24
|
+
|
25
|
+
`LoungeLizard.drafter_parse_blueprint_to(mson_string_content, ffi_pointer, options_struct)`
|
26
|
+
|
27
|
+
## Build
|
28
|
+
|
29
|
+
1. Clone the repo + fetch the submodules(this is, drafter and its dependencies):
|
30
|
+
|
31
|
+
```sh
|
32
|
+
$ git clone git://github.com/moviepilot/lounge_lizard.git
|
33
|
+
$ cd lounge_lizard
|
34
|
+
$ git submodule update --init --recursive
|
35
|
+
```
|
36
|
+
|
37
|
+
2. Lounge Lizard has drafter as a native extension. This meaning, drafter is
|
38
|
+
a c++ library you need to compile it before using it. `rake` will take care of
|
39
|
+
compiling it:
|
40
|
+
|
41
|
+
```sh
|
42
|
+
$ rake
|
43
|
+
```
|
44
|
+
|
45
|
+
## Credit
|
46
|
+
|
47
|
+
The way this gem is build is very similar to [redsnow](https://github.com/apiaryio/redsnow). So cheers to them!
|
48
|
+
|
49
|
+
## License
|
50
|
+
MIT License. See the [LICENSE](https://github.com/moviepilot/lounge_lizard/blob/master/LICENSE) file.
|
data/Rakefile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'Could not load bundler/gem_tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
begin
|
8
|
+
require 'rspec/core/rake_task'
|
9
|
+
rescue LoadError
|
10
|
+
puts 'Could not load rspec/core/rake_tas'
|
11
|
+
end
|
12
|
+
|
13
|
+
RSpec::Core::RakeTask.new(:spec)
|
14
|
+
|
15
|
+
task default: :compile
|
16
|
+
|
17
|
+
require 'ffi'
|
18
|
+
|
19
|
+
task default: :compile
|
20
|
+
|
21
|
+
desc 'Compile drafter'
|
22
|
+
task :compile do
|
23
|
+
prefix = FFI::Platform.mac? ? '' : 'lib.target/'
|
24
|
+
path = File.expand_path("ext/drafter/build/out/Release/#{prefix}libdrafter.#{FFI::Platform::LIBSUFFIX}", File.dirname(__FILE__))
|
25
|
+
puts "Path to the compiled drafter library: #{path}"
|
26
|
+
if !File.exist?(path) || ENV['RECOMPILE']
|
27
|
+
puts 'The library does not exist, lets compile it'
|
28
|
+
unless File.directory?(File.expand_path('ext/drafter/ext/snowcrash/src'))
|
29
|
+
puts 'Initializing submodules as they are not checked out...'
|
30
|
+
`git submodule update --init --recursive`
|
31
|
+
end
|
32
|
+
puts 'Compiling...'
|
33
|
+
`cd #{File.expand_path('ext/drafter/')} && ./configure --shared && make drafter`
|
34
|
+
status = $CHILD_STATUS.to_i
|
35
|
+
if status == 0
|
36
|
+
puts 'Compiling done.'
|
37
|
+
else
|
38
|
+
raise 'Compiling error, exiting.'
|
39
|
+
end
|
40
|
+
else
|
41
|
+
puts 'Extension already compiled. To recompile set env variable RECOMPILE=true.'
|
42
|
+
end
|
43
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'lounge_lizard'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/circle.yml
ADDED
@@ -0,0 +1,278 @@
|
|
1
|
+
# Drafter Changelog
|
2
|
+
|
3
|
+
## 3.2.2
|
4
|
+
|
5
|
+
### Bug Fixes
|
6
|
+
|
7
|
+
* Ensure that escaped property names in MSON are not treated as markdown.
|
8
|
+
[snowcrash#422](https://github.com/apiaryio/snowcrash/pull/422)
|
9
|
+
|
10
|
+
|
11
|
+
## 3.2.1
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* Properly handle MD "code fences" while parsing headers (related to
|
16
|
+
changes in sundown paser)
|
17
|
+
|
18
|
+
* fix crash - changes in sundown leads to crash for undisclosed item list
|
19
|
+
|
20
|
+
## 3.2.0
|
21
|
+
|
22
|
+
### Enhancements
|
23
|
+
|
24
|
+
* Improved sourcemaps of warnings when encountering malformed headers
|
25
|
+
|
26
|
+
* Added warning when default and sample is specified without value
|
27
|
+
|
28
|
+
* Improved JSON Schema regarding defaults
|
29
|
+
[#424](https://github.com/apiaryio/drafter/issues/424)
|
30
|
+
|
31
|
+
## 3.1.3
|
32
|
+
|
33
|
+
### Bug Fixes
|
34
|
+
|
35
|
+
* Handle `fixed-type` with variable property names when generating JSON
|
36
|
+
Schemas.
|
37
|
+
[#390](https://github.com/apiaryio/drafter/issues/390)
|
38
|
+
|
39
|
+
* Drafter will now check the validity of header names and provide a warning
|
40
|
+
for invalid characters found within a header name. Invalid headers will be
|
41
|
+
skipped in the parse outputs.
|
42
|
+
[#382](https://github.com/apiaryio/drafter/issues/382)
|
43
|
+
|
44
|
+
* Fix handling of escaped parameter identifiers with the older non-MSON
|
45
|
+
parameter syntax.
|
46
|
+
[#391](https://github.com/apiaryio/drafter/issues/391)
|
47
|
+
|
48
|
+
* Rectify JSON Schema generation for variable property names
|
49
|
+
[#367](https://github.com/apiaryio/drafter/issues/367)
|
50
|
+
|
51
|
+
## 3.1.2
|
52
|
+
|
53
|
+
### Enhancements
|
54
|
+
|
55
|
+
* Add missing sourcemaps for named type references
|
56
|
+
[#386](https://github.com/apiaryio/drafter/issues/386)
|
57
|
+
|
58
|
+
* Warn user on "action" with non-absolute path
|
59
|
+
[#350](https://github.com/apiaryio/drafter/issues/350)
|
60
|
+
|
61
|
+
### Bug Fixes
|
62
|
+
|
63
|
+
* Prevent crashing and improve structure of result from parsing regarding
|
64
|
+
markdown lists.
|
65
|
+
|
66
|
+
* Correctly set the content type for custom JSON Schema.
|
67
|
+
[#392](https://github.com/apiaryio/drafter/issues/392)
|
68
|
+
|
69
|
+
* Fix the JSON Schema generated when using `fixed-type` attribute
|
70
|
+
[#389](https://github.com/apiaryio/drafter/issues/389)
|
71
|
+
|
72
|
+
* Fix and improve URI Template parameters validation
|
73
|
+
[#402](https://github.com/apiaryio/drafter/issues/402)
|
74
|
+
|
75
|
+
## 3.1.1
|
76
|
+
|
77
|
+
### Bug Fixes
|
78
|
+
|
79
|
+
* Prevent crashing when no default value is specified for enum members
|
80
|
+
|
81
|
+
## 3.1.0
|
82
|
+
|
83
|
+
### Enhancements
|
84
|
+
|
85
|
+
* Warn when primitive values in MSON doesn't follow the given type format
|
86
|
+
[#334](https://github.com/apiaryio/drafter/issues/334)
|
87
|
+
|
88
|
+
### Bug Fixes
|
89
|
+
|
90
|
+
* While overriding a property on an inherited object, the description and type
|
91
|
+
annotation was not being overridden.
|
92
|
+
[#366](https://github.com/apiaryio/drafter/issues/366)
|
93
|
+
|
94
|
+
* Always give an error when unable to find named type.
|
95
|
+
[snowcrash#354](https://github.com/apiaryio/snowcrash/issues/354)
|
96
|
+
|
97
|
+
* Ensure that escaped values in MSON are not treated as markdown
|
98
|
+
[#365](https://github.com/apiaryio/drafter/issues/365)
|
99
|
+
|
100
|
+
* Fixes detection of parameters using the MSON syntax when the description of a
|
101
|
+
parameter includes `(` or `)`.
|
102
|
+
[snowcrash#345](https://github.com/apiaryio/snowcrash/issues/345)
|
103
|
+
|
104
|
+
|
105
|
+
## 3.1.0-pre.0
|
106
|
+
|
107
|
+
### Enhancements
|
108
|
+
|
109
|
+
* Warn about reserved characters in Named type declaration.
|
110
|
+
[snowcrash#335](https://github.com/apiaryio/snowcrash/issues/335)
|
111
|
+
|
112
|
+
* Add `fixed-type` keyword support.
|
113
|
+
[mson#66](https://github.com/apiaryio/mson/issues/66)
|
114
|
+
|
115
|
+
* Add warnings when the given MSON type attributes contradict each other.
|
116
|
+
|
117
|
+
### Bug Fixes
|
118
|
+
|
119
|
+
* Ensure that sample values are rendered in JSON Schema when using the `fixed`
|
120
|
+
attribute.
|
121
|
+
[#343](https://github.com/apiaryio/drafter/issues/343)
|
122
|
+
|
123
|
+
* Prevents an empty properties section being treated as an unrecognized block.
|
124
|
+
[#127](https://github.com/apiaryio/drafter/issues/127)
|
125
|
+
[snowcrash#200](https://github.com/apiaryio/snowcrash/issues/200)
|
126
|
+
|
127
|
+
* Fixes rendering when One Of contains member sections with named types.
|
128
|
+
[#360](https://github.com/apiaryio/drafter/issues/360)
|
129
|
+
|
130
|
+
* Default and sample enum values will take precedence as the example value in
|
131
|
+
the rendered JSON structure over the enum members.
|
132
|
+
|
133
|
+
* Add type attributes for array values.
|
134
|
+
[#193](https://github.com/apiaryio/drafter/issues/193)
|
135
|
+
|
136
|
+
* Value members with required will not have items in JSON Schema anymore.
|
137
|
+
[#371](https://github.com/apiaryio/drafter/issues/371)
|
138
|
+
|
139
|
+
* Ensures that MSON validation warnings are present when generating APIB AST.
|
140
|
+
|
141
|
+
* Improved validation of `Request` keyword matching.
|
142
|
+
|
143
|
+
## 3.0.0
|
144
|
+
|
145
|
+
### Breaking
|
146
|
+
|
147
|
+
* Drafter now uses C++11.
|
148
|
+
|
149
|
+
The following compiler versions are supported:
|
150
|
+
|
151
|
+
* Microsoft Visual C++ 2013 or higher
|
152
|
+
* GCC 4.8 or higher
|
153
|
+
* Clang 3.5 or higher
|
154
|
+
|
155
|
+
### Enhancements
|
156
|
+
|
157
|
+
* Drafter now provides a full C and C++ API interface, you may now validate,
|
158
|
+
parse and serialize an API Blueprint. Please see `drafter.h` header for full
|
159
|
+
API documentation.
|
160
|
+
|
161
|
+
* Improve error messages for a few blueprint errors
|
162
|
+
|
163
|
+
### Bug Fixes
|
164
|
+
|
165
|
+
* Correctly render named primitive types when used as a nested or member
|
166
|
+
type such as `items (array[Other Type])` in JSON.
|
167
|
+
[#312](https://github.com/apiaryio/drafter/issues/312)
|
168
|
+
|
169
|
+
* Fixes an issue where defining an implicit object data structure would raise
|
170
|
+
an invalid syntax warning and not be parsed.
|
171
|
+
[#318](https://github.com/apiaryio/drafter/issues/318)
|
172
|
+
|
173
|
+
* Prevent causing an infinite loop when parsing a resource which inherits from
|
174
|
+
itself.
|
175
|
+
[#328](https://github.com/apiaryio/drafter/issues/328)
|
176
|
+
|
177
|
+
* Correctly parse object samples within arrays.
|
178
|
+
[#246](https://github.com/apiaryio/drafter/issues/246)
|
179
|
+
|
180
|
+
* Correctly render JSON Schema when `fixed` is used on attributes section or named type [mson#60](https://github.com/apiaryio/mson/issues/60)
|
181
|
+
|
182
|
+
|
183
|
+
## 2.3.1
|
184
|
+
|
185
|
+
### Bug Fixes
|
186
|
+
|
187
|
+
* Fixes a bug when a referenced mixin inherits another named type
|
188
|
+
[#254](https://github.com/apiaryio/drafter/issues/254)
|
189
|
+
|
190
|
+
* Some of the errors have been changed to warnings
|
191
|
+
|
192
|
+
* Fixes "One Of" JSON rendering. This fix does not include JSON schema
|
193
|
+
for multiple `One of` definition in MSON object.
|
194
|
+
[#288](https://github.com/apiaryio/drafter/issues/288)
|
195
|
+
|
196
|
+
|
197
|
+
## 2.3.0
|
198
|
+
|
199
|
+
### Bug Fixes
|
200
|
+
|
201
|
+
* Parameters in Refract output will no longer contain a `content` value
|
202
|
+
when there is no sample value.
|
203
|
+
[#286](https://github.com/apiaryio/drafter/issues/286)
|
204
|
+
|
205
|
+
* Errors raised from Snowcrash, the underlying parser are now treated
|
206
|
+
as errors. This resolves an issue where Drafter would get into an
|
207
|
+
infinite loop when certain circular references are found in MSON
|
208
|
+
Data Structures.
|
209
|
+
[#255](https://github.com/apiaryio/drafter/issues/255)
|
210
|
+
|
211
|
+
* Errors raised from drafter are now correctly treated as errors,
|
212
|
+
previously they were exposed as warnings.
|
213
|
+
|
214
|
+
* Improved error reporting with source maps when using cdrafter.
|
215
|
+
|
216
|
+
* Resolved an issue when using a mixins from implicit objects would raise a
|
217
|
+
warning that the implicit object was not an object.
|
218
|
+
[#138](https://github.com/apiaryio/drafter/issues/138)
|
219
|
+
[#243](https://github.com/apiaryio/drafter/issues/243)
|
220
|
+
|
221
|
+
|
222
|
+
## 2.3.0-pre.2
|
223
|
+
|
224
|
+
This release restores an API that caused a breaking change in the
|
225
|
+
previous pre-release 2.3.0-pre.1.
|
226
|
+
|
227
|
+
## 2.3.0-pre.1
|
228
|
+
|
229
|
+
### Bug Fixes
|
230
|
+
|
231
|
+
* It was causing lot of different problems like segmentation faults, stack
|
232
|
+
overflows or even infinite loops depending on what error was ignored.
|
233
|
+
[#269](https://github.com/apiaryio/drafter/issues/269)
|
234
|
+
|
235
|
+
* Variable property name issues are fixed including correct generation
|
236
|
+
of JSON Schema.
|
237
|
+
|
238
|
+
* Improved error reporting. Some of the semantic errors like circular
|
239
|
+
references were issued without a sourcemap information, that is not
|
240
|
+
the case anymore.
|
241
|
+
|
242
|
+
* `httpRequest` and `httpResponse` payloads now have source maps attached while
|
243
|
+
using the Refract output.
|
244
|
+
[#259](https://github.com/apiaryio/drafter/issues/259)
|
245
|
+
|
246
|
+
|
247
|
+
## 2.3.0-pre.0
|
248
|
+
|
249
|
+
### Enhancements
|
250
|
+
|
251
|
+
* Partial implementation of
|
252
|
+
[RFC 4: Request Parameters](https://github.com/apiaryio/api-blueprint-rfcs/blob/master/rfcs/0004-request-parameters.md)
|
253
|
+
has been added. Request parameters are now parsed, however validation
|
254
|
+
of these parameters is not yet handled.
|
255
|
+
|
256
|
+
* Adds support for building Drafter with Microsoft Visual Studio 2015.
|
257
|
+
|
258
|
+
### Bug Fixes
|
259
|
+
|
260
|
+
* The content-type for JSON Schema messageBodySchema is now correctly
|
261
|
+
`application/schema+json`.
|
262
|
+
|
263
|
+
* Fixes a problem while rendering JSON Schema may have resulted in an
|
264
|
+
`ExtendElement` warning.
|
265
|
+
[#217](https://github.com/apiaryio/drafter/issues/217)
|
266
|
+
|
267
|
+
|
268
|
+
## 2.2.0
|
269
|
+
|
270
|
+
### Enhancements
|
271
|
+
|
272
|
+
* The JavaScript API has been aligned with the Protagonist
|
273
|
+
binding, allowing you to use Drafter JS and Protagonist
|
274
|
+
with the same interface.
|
275
|
+
|
276
|
+
### Bug Fixes
|
277
|
+
|
278
|
+
* Fixes a crash when handling circular references in MSON Mixins.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
FROM apiaryio/base-dev-cpp:1.0.0
|
2
|
+
MAINTAINER Apiary "sre@apiary.io"
|
3
|
+
|
4
|
+
|
5
|
+
RUN locale-gen en_US.UTF-8
|
6
|
+
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale
|
7
|
+
RUN dpkg-reconfigure locales
|
8
|
+
|
9
|
+
ADD ./ /drafter
|
10
|
+
|
11
|
+
WORKDIR /drafter
|
12
|
+
|
13
|
+
# It's tempting to put ./configure into RUN, but then you have timestamp issues
|
14
|
+
|
15
|
+
RUN ./configure && make all && make install
|
16
|
+
|
17
|
+
CMD /usr/local/bin/drafter
|
@@ -0,0 +1,62 @@
|
|
1
|
+
-include config.mk
|
2
|
+
|
3
|
+
BUILDTYPE ?= Release
|
4
|
+
BUILD_DIR ?= ./build
|
5
|
+
PYTHON ?= python
|
6
|
+
GYP ?= ./ext/snowcrash/tools/gyp/gyp
|
7
|
+
DESTDIR ?= /usr/local
|
8
|
+
BINDIR ?= $(DESTDIR)/bin
|
9
|
+
|
10
|
+
# Default to verbose builds
|
11
|
+
V ?= 1
|
12
|
+
|
13
|
+
# Targets
|
14
|
+
all: drafter
|
15
|
+
|
16
|
+
libdrafter: config.gypi $(BUILD_DIR)/Makefile
|
17
|
+
$(MAKE) -C $(BUILD_DIR) V=$(V) $@
|
18
|
+
|
19
|
+
test-libdrafter: config.gypi $(BUILD_DIR)/Makefile
|
20
|
+
$(MAKE) -C $(BUILD_DIR) V=$(V) $@
|
21
|
+
mkdir -p ./bin
|
22
|
+
cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/$@ ./bin/$@
|
23
|
+
|
24
|
+
drafter: config.gypi $(BUILD_DIR)/Makefile
|
25
|
+
$(MAKE) -C $(BUILD_DIR) V=$(V) $@
|
26
|
+
mkdir -p ./bin
|
27
|
+
cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/$@ ./bin/$@
|
28
|
+
|
29
|
+
test-capi: config.gypi $(BUILD_DIR)/Makefile
|
30
|
+
$(MAKE) -C $(BUILD_DIR) V=$(V) $@
|
31
|
+
mkdir -p ./bin
|
32
|
+
cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/$@ ./bin/$@
|
33
|
+
|
34
|
+
install: drafter
|
35
|
+
mkdir -p $(BINDIR)
|
36
|
+
cp -f $(BUILD_DIR)/out/$(BUILDTYPE)/drafter $(BINDIR)/drafter
|
37
|
+
|
38
|
+
config.gypi: configure
|
39
|
+
$(PYTHON) ./configure
|
40
|
+
|
41
|
+
$(BUILD_DIR)/Makefile:
|
42
|
+
$(GYP) -f make --generator-output $(BUILD_DIR) --depth=.
|
43
|
+
|
44
|
+
clean:
|
45
|
+
rm -rf $(BUILD_DIR)/out
|
46
|
+
rm -rf ./bin
|
47
|
+
|
48
|
+
distclean:
|
49
|
+
rm -rf ./build
|
50
|
+
rm -f ./config.mk
|
51
|
+
rm -f ./config.gypi
|
52
|
+
rm -rf ./bin
|
53
|
+
|
54
|
+
test: libdrafter test-libdrafter test-capi drafter
|
55
|
+
./bin/test-libdrafter
|
56
|
+
./bin/test-capi
|
57
|
+
|
58
|
+
ifdef INTEGRATION_TESTS
|
59
|
+
bundle exec cucumber
|
60
|
+
endif
|
61
|
+
|
62
|
+
.PHONY: all libdrafter drafter test test-libdrafter install
|
@@ -0,0 +1,17 @@
|
|
1
|
+
version: 1.0.{build}
|
2
|
+
|
3
|
+
# Operating system (build VM template)
|
4
|
+
os: Visual Studio 2015 CTP
|
5
|
+
|
6
|
+
environment:
|
7
|
+
matrix:
|
8
|
+
- VS_VERSION: MSVC2015
|
9
|
+
|
10
|
+
build_script:
|
11
|
+
- git submodule update --init --recursive
|
12
|
+
- bundle install
|
13
|
+
- vcbuild.bat %VS_VERSION%
|
14
|
+
|
15
|
+
test_script:
|
16
|
+
- vcbuild.bat %VS_VERSION% test
|
17
|
+
- vcbuild.bat %VS_VERSION% inttest
|
Binary file
|