redsnow 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/ext/drafter/Dockerfile +17 -0
- data/ext/drafter/bin/drafter +0 -0
- data/ext/drafter/build/Makefile +2 -2
- data/ext/drafter/build/drafter.Makefile +1 -1
- 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/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/cdrafter.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/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/config.gypi +1 -1
- data/ext/drafter/config.mk +1 -1
- data/ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/markdown.c +6 -0
- data/ext/drafter/ext/snowcrash/src/BlueprintParser.h +12 -7
- data/ext/drafter/ext/snowcrash/src/MSONValueMemberParser.cc +13 -3
- data/ext/drafter/ext/snowcrash/src/ParameterParser.h +22 -0
- data/ext/drafter/ext/snowcrash/src/RelationParser.h +14 -2
- data/ext/drafter/ext/snowcrash/src/ResourceParser.h +34 -13
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.pyc +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/make.pyc +0 -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.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- data/ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- data/ext/drafter/ext/sos/src/sos.cc +13 -0
- data/ext/drafter/ext/sos/src/sos.h +7 -0
- data/ext/drafter/ext/sos/src/sosJSON.h +2 -1
- data/ext/drafter/ext/sos/src/sosYAML.h +2 -1
- data/ext/drafter/src/Version.h +1 -1
- data/ext/drafter/tools/homebrew/drafter.rb +1 -1
- data/lib/redsnow/version.rb +1 -1
- data/redsnow.gemspec +1 -1
- metadata +78 -78
- data/Gemfile.lock +0 -105
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 217f4d4cd8e9df9f64d60e3756c5c897d91ed022
|
|
4
|
+
data.tar.gz: fe69ec33cf39eec0b28b42a208990e150c6d70dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a0b24c609dcad88615ce618b8c3c839fa761bed8f07fa6c3a31ba834c0da948b9f6da7dca554daf288e97c2f412f757d08e558b740cc4ff00146f20ed88a25c
|
|
7
|
+
data.tar.gz: 6e4df5e0754024b4a8e31dbdc1e896b3a238526162b5b3f7414a8275f038d67477ed37ecf7949ee0a22a40370c7c7be7dd2005984508635ceb6164d41c983632
|
data/README.md
CHANGED
|
@@ -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
|
data/ext/drafter/bin/drafter
CHANGED
|
Binary file
|
data/ext/drafter/build/Makefile
CHANGED
|
@@ -374,8 +374,8 @@ ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
|
|
|
374
374
|
endif
|
|
375
375
|
|
|
376
376
|
quiet_cmd_regen_makefile = ACTION Regenerating $@
|
|
377
|
-
cmd_regen_makefile = cd $(srcdir); ./ext/snowcrash/tools/gyp/gyp_main.py -fmake --ignore-environment "--toplevel-dir=." -I/Users/
|
|
378
|
-
Makefile: $(srcdir)/ext/snowcrash/common.gypi $(srcdir)/ext/snowcrash/snowcrash.gyp $(srcdir)/config.gypi
|
|
377
|
+
cmd_regen_makefile = cd $(srcdir); ./ext/snowcrash/tools/gyp/gyp_main.py -fmake --ignore-environment "--toplevel-dir=." -I/Users/dan/Projects/redsnow/ext/drafter/config.gypi "--depth=." "--generator-output=build"
|
|
378
|
+
Makefile: $(srcdir)/drafter.gyp $(srcdir)/ext/snowcrash/common.gypi $(srcdir)/ext/snowcrash/snowcrash.gyp $(srcdir)/config.gypi
|
|
379
379
|
$(call do_cmd,regen_makefile)
|
|
380
380
|
|
|
381
381
|
# "all" is a concatenation of the "all" targets from all the included
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/BlueprintSourcemap.o
CHANGED
|
Binary file
|
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HeadersParser.o
CHANGED
|
Binary file
|
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONOneOfParser.o
CHANGED
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONSourcemap.o
CHANGED
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONTypeSectionParser.o
CHANGED
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONValueMemberParser.o
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/UriTemplateParser.o
CHANGED
|
Binary file
|
data/ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/posix/RegexMatch.o
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/ext/drafter/config.gypi
CHANGED
data/ext/drafter/config.mk
CHANGED
|
@@ -1769,6 +1769,12 @@ parse_listitem(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t s
|
|
|
1769
1769
|
|
|
1770
1770
|
in_empty = 0;
|
|
1771
1771
|
|
|
1772
|
+
/* If there is a line which is a heading, it isn't a line item. */
|
|
1773
|
+
if (end > beg && !in_empty && (data[beg] == '#' || is_next_headerline(data + beg, end - beg) != 0)) {
|
|
1774
|
+
*flags |= MKD_LI_END;
|
|
1775
|
+
break;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1772
1778
|
/* source map */
|
|
1773
1779
|
if (map) {
|
|
1774
1780
|
size_t line_cur = src_map_location(map, beg + i);
|
|
@@ -644,7 +644,7 @@ namespace snowcrash {
|
|
|
644
644
|
++elementIt) {
|
|
645
645
|
|
|
646
646
|
if (elementIt->element == Element::CategoryElement) {
|
|
647
|
-
checkResourceLazyReferencing(*elementIt,
|
|
647
|
+
checkResourceLazyReferencing(*elementIt, elementSourceMapIt, pd, out);
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
if (pd.exportSourceMap()) {
|
|
@@ -655,14 +655,14 @@ namespace snowcrash {
|
|
|
655
655
|
|
|
656
656
|
/** Traverses Resource Collection to resolve references with `Pending` state (Lazy referencing) */
|
|
657
657
|
static void checkResourceLazyReferencing(Element& element,
|
|
658
|
-
SourceMap<Element
|
|
658
|
+
Collection<SourceMap<Element> >::iterator& elementSourceMap,
|
|
659
659
|
SectionParserData& pd,
|
|
660
660
|
const ParseResultRef<Blueprint>& out) {
|
|
661
661
|
|
|
662
662
|
Collection<SourceMap<Element> >::iterator resourceElementSourceMapIt;
|
|
663
663
|
|
|
664
664
|
if (pd.exportSourceMap()) {
|
|
665
|
-
resourceElementSourceMapIt = elementSourceMap
|
|
665
|
+
resourceElementSourceMapIt = elementSourceMap->content.elements().collection.begin();
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
for (Elements::iterator resourceElementIt = element.content.elements().begin();
|
|
@@ -670,7 +670,12 @@ namespace snowcrash {
|
|
|
670
670
|
++resourceElementIt) {
|
|
671
671
|
|
|
672
672
|
if (resourceElementIt->element == Element::ResourceElement) {
|
|
673
|
-
|
|
673
|
+
if (pd.exportSourceMap()) {
|
|
674
|
+
checkActionLazyReferencing(resourceElementIt->content.resource, resourceElementSourceMapIt->content.resource, pd, out);
|
|
675
|
+
} else {
|
|
676
|
+
SourceMap<Resource> tempSourceMap;
|
|
677
|
+
checkActionLazyReferencing(resourceElementIt->content.resource, tempSourceMap, pd, out);
|
|
678
|
+
}
|
|
674
679
|
}
|
|
675
680
|
|
|
676
681
|
if (pd.exportSourceMap()) {
|
|
@@ -705,7 +710,7 @@ namespace snowcrash {
|
|
|
705
710
|
|
|
706
711
|
/** Traverses Transaction Example Collection AST to resolve references with `Pending` state (Lazy referencing) */
|
|
707
712
|
static void checkExampleLazyReferencing(Action& action,
|
|
708
|
-
Collection<SourceMap<Action> >::iterator actionSourceMapIt,
|
|
713
|
+
Collection<SourceMap<Action> >::iterator& actionSourceMapIt,
|
|
709
714
|
SectionParserData& pd,
|
|
710
715
|
const ParseResultRef<Blueprint>& out) {
|
|
711
716
|
|
|
@@ -730,7 +735,7 @@ namespace snowcrash {
|
|
|
730
735
|
|
|
731
736
|
/** Traverses Request Collection to resolve references with `Pending` state (Lazy referencing) */
|
|
732
737
|
static void checkRequestLazyReferencing(TransactionExample& transactionExample,
|
|
733
|
-
Collection<SourceMap<TransactionExample> >::iterator transactionExampleSourceMapIt,
|
|
738
|
+
Collection<SourceMap<TransactionExample> >::iterator& transactionExampleSourceMapIt,
|
|
734
739
|
SectionParserData& pd,
|
|
735
740
|
const ParseResultRef<Blueprint>& out) {
|
|
736
741
|
|
|
@@ -770,7 +775,7 @@ namespace snowcrash {
|
|
|
770
775
|
|
|
771
776
|
/** Traverses Response Collection to resolve references with `Pending` state (Lazy referencing) */
|
|
772
777
|
static void checkResponseLazyReferencing(TransactionExample& transactionExample,
|
|
773
|
-
Collection<SourceMap<TransactionExample> >::iterator transactionExampleSourceMapIt,
|
|
778
|
+
Collection<SourceMap<TransactionExample> >::iterator& transactionExampleSourceMapIt,
|
|
774
779
|
SectionParserData& pd,
|
|
775
780
|
const ParseResultRef<Blueprint>& out) {
|
|
776
781
|
|
|
@@ -88,10 +88,20 @@ namespace snowcrash {
|
|
|
88
88
|
IntermediateParseResult<mson::Mixin> mixin(sections.report);
|
|
89
89
|
cur = MSONMixinParser::parse(node, siblings, pd, mixin);
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
if (baseType != mixin.node.baseType) {
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
// WARN: Mixin base type should be compatible with the parent base type
|
|
94
|
+
mdp::CharactersRangeSet sourceMap = mdp::BytesRangeSetToCharactersRangeSet(node->sourceMap, pd.sourceData);
|
|
95
|
+
sections.report.warnings.push_back(Warning("mixin base type should be the same as parent base type. objects should contain object mixins. arrays should contain array mixins",
|
|
96
|
+
LogicalErrorWarning,
|
|
97
|
+
sourceMap));
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
element.build(mixin.node);
|
|
101
|
+
|
|
102
|
+
if (pd.exportSourceMap()) {
|
|
103
|
+
elementSM.mixin = mixin.sourceMap;
|
|
104
|
+
}
|
|
95
105
|
}
|
|
96
106
|
}
|
|
97
107
|
else if (pd.sectionContext() == MSONOneOfSectionType) {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
#include "SectionParser.h"
|
|
13
13
|
#include "ValuesParser.h"
|
|
14
|
+
#include "MSONTypeSectionParser.h"
|
|
14
15
|
#include "RegexMatch.h"
|
|
15
16
|
#include "StringUtility.h"
|
|
16
17
|
|
|
@@ -147,6 +148,27 @@ namespace snowcrash {
|
|
|
147
148
|
subject = GetFirstLine(node->children().front().text, remainingContent);
|
|
148
149
|
TrimString(subject);
|
|
149
150
|
|
|
151
|
+
// Look ahead into nested list items
|
|
152
|
+
for (MarkdownNodeIterator it = node->children().begin();
|
|
153
|
+
it != node->children().end();
|
|
154
|
+
++it) {
|
|
155
|
+
|
|
156
|
+
if (it->type == mdp::ListItemMarkdownNodeType
|
|
157
|
+
&& !it->children().empty()) {
|
|
158
|
+
|
|
159
|
+
mdp::ByteBuffer itSubject, itRemainingContent;
|
|
160
|
+
itSubject = GetFirstLine(it->children().front().text, itRemainingContent);
|
|
161
|
+
TrimString(itSubject);
|
|
162
|
+
|
|
163
|
+
if (RegexMatch(itSubject, MSONDefaultTypeSectionRegex) ||
|
|
164
|
+
RegexMatch(itSubject, MSONSampleTypeSectionRegex) ||
|
|
165
|
+
RegexMatch(itSubject, MSONValueMembersTypeSectionRegex)) {
|
|
166
|
+
|
|
167
|
+
return MSONParameterSectionType;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
150
172
|
ParameterType parameterType = getParameterType(subject);
|
|
151
173
|
|
|
152
174
|
if (parameterType == OldParameterType) {
|
|
@@ -12,10 +12,15 @@
|
|
|
12
12
|
#include "SectionParser.h"
|
|
13
13
|
#include "RegexMatch.h"
|
|
14
14
|
|
|
15
|
+
/** Macro for relation regex */
|
|
16
|
+
#define RELATION_REGEX "^[[:blank:]]*[Rr]elation[[:blank:]]*:"
|
|
17
|
+
|
|
15
18
|
namespace snowcrash {
|
|
16
19
|
|
|
17
20
|
/** Link Relation matching regex */
|
|
18
|
-
const char* const RelationRegex =
|
|
21
|
+
const char* const RelationRegex = RELATION_REGEX;
|
|
22
|
+
|
|
23
|
+
const char* const RelationIdentifierRegex = RELATION_REGEX "[[:blank:]]*([a-z][a-z0-9.-]*)?[[:blank:]]*$";
|
|
19
24
|
|
|
20
25
|
/**
|
|
21
26
|
* Relation Section Processor
|
|
@@ -35,10 +40,17 @@ namespace snowcrash {
|
|
|
35
40
|
signature = GetFirstLine(node->text, remainingContent);
|
|
36
41
|
TrimString(signature);
|
|
37
42
|
|
|
38
|
-
if (RegexCapture(signature,
|
|
43
|
+
if (RegexCapture(signature, RelationIdentifierRegex, captureGroups, 3)) {
|
|
39
44
|
out.node.str = captureGroups[1];
|
|
40
45
|
TrimString(out.node.str);
|
|
41
46
|
}
|
|
47
|
+
else {
|
|
48
|
+
// WARN: Relation identifier contains illegal characters
|
|
49
|
+
mdp::CharactersRangeSet sourceMap = mdp::BytesRangeSetToCharactersRangeSet(node->sourceMap, pd.sourceData);
|
|
50
|
+
out.report.warnings.push_back(Warning("relation identifier contains illegal characters (only lower case letters, numbers, '-' and '.' allowed)",
|
|
51
|
+
FormattingWarning,
|
|
52
|
+
sourceMap));
|
|
53
|
+
}
|
|
42
54
|
|
|
43
55
|
if (pd.exportSourceMap() && !out.node.str.empty()) {
|
|
44
56
|
out.sourceMap.sourceMap.append(node->sourceMap);
|
|
@@ -25,6 +25,9 @@ namespace snowcrash {
|
|
|
25
25
|
/** Named resource matching regex */
|
|
26
26
|
const char* const NamedResourceHeaderRegex = "^[[:blank:]]*" SYMBOL_IDENTIFIER "[[:blank:]]+\\[" URI_TEMPLATE "]$";
|
|
27
27
|
|
|
28
|
+
/** Named endpoint matching regex */
|
|
29
|
+
const char* const NamedEndpointHeaderRegex = "^[[:blank:]]*" SYMBOL_IDENTIFIER "[[:blank:]]+\\[" HTTP_REQUEST_METHOD "[[:blank:]]+" URI_TEMPLATE "]$";
|
|
30
|
+
|
|
28
31
|
/** Internal type alias for Collection iterator of Resource */
|
|
29
32
|
typedef Collection<Resource>::const_iterator ResourceIterator;
|
|
30
33
|
|
|
@@ -49,21 +52,15 @@ namespace snowcrash {
|
|
|
49
52
|
|
|
50
53
|
// Make this section an action
|
|
51
54
|
if (!captureGroups[2].empty()) {
|
|
55
|
+
return processNestedAction(node, node->parent().children(), pd, layout, out);
|
|
56
|
+
}
|
|
57
|
+
} else if (RegexCapture(node->text, NamedEndpointHeaderRegex, captureGroups, 5)) {
|
|
52
58
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
out.node.actions.push_back(action.node);
|
|
58
|
-
layout = RedirectSectionLayout;
|
|
59
|
-
|
|
60
|
-
if (pd.exportSourceMap()) {
|
|
61
|
-
out.sourceMap.actions.collection.push_back(action.sourceMap);
|
|
62
|
-
out.sourceMap.uriTemplate.sourceMap = node->sourceMap;
|
|
63
|
-
}
|
|
59
|
+
out.node.name = captureGroups[1];
|
|
60
|
+
TrimString(out.node.name);
|
|
61
|
+
out.node.uriTemplate = captureGroups[3];
|
|
64
62
|
|
|
65
|
-
|
|
66
|
-
}
|
|
63
|
+
return processNestedAction(node, node->parent().children(), pd, layout, out);
|
|
67
64
|
} else {
|
|
68
65
|
matchNamedResourceHeader(node, out.node);
|
|
69
66
|
}
|
|
@@ -207,6 +204,7 @@ namespace snowcrash {
|
|
|
207
204
|
TrimString(subject);
|
|
208
205
|
|
|
209
206
|
if (RegexMatch(subject, NamedResourceHeaderRegex) ||
|
|
207
|
+
RegexMatch(subject, NamedEndpointHeaderRegex) ||
|
|
210
208
|
RegexMatch(subject, ResourceHeaderRegex)) {
|
|
211
209
|
return ResourceSectionType;
|
|
212
210
|
}
|
|
@@ -336,6 +334,29 @@ namespace snowcrash {
|
|
|
336
334
|
}
|
|
337
335
|
}
|
|
338
336
|
|
|
337
|
+
/**
|
|
338
|
+
* \brief Parse the current node as an action
|
|
339
|
+
*/
|
|
340
|
+
static MarkdownNodeIterator processNestedAction(const MarkdownNodeIterator& node,
|
|
341
|
+
const MarkdownNodes& siblings,
|
|
342
|
+
SectionParserData& pd,
|
|
343
|
+
SectionLayout& layout,
|
|
344
|
+
const ParseResultRef<Resource>& out) {
|
|
345
|
+
|
|
346
|
+
IntermediateParseResult<Action> action(out.report);
|
|
347
|
+
MarkdownNodeIterator cur = ActionParser::parse(node, siblings, pd, action);
|
|
348
|
+
|
|
349
|
+
out.node.actions.push_back(action.node);
|
|
350
|
+
layout = RedirectSectionLayout;
|
|
351
|
+
|
|
352
|
+
if (pd.exportSourceMap()) {
|
|
353
|
+
out.sourceMap.actions.collection.push_back(action.sourceMap);
|
|
354
|
+
out.sourceMap.uriTemplate.sourceMap = node->sourceMap;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
return cur;
|
|
358
|
+
}
|
|
359
|
+
|
|
339
360
|
/** Process Action section */
|
|
340
361
|
static MarkdownNodeIterator processAction(const MarkdownNodeIterator& node,
|
|
341
362
|
const MarkdownNodes& siblings,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -198,3 +198,16 @@ std::string sos::escapeDoubleQuotes(const std::string &input)
|
|
|
198
198
|
|
|
199
199
|
return target;
|
|
200
200
|
}
|
|
201
|
+
|
|
202
|
+
std::string sos::escapeBackslashes(const std::string &input)
|
|
203
|
+
{
|
|
204
|
+
size_t pos = 0;
|
|
205
|
+
std::string target(input);
|
|
206
|
+
|
|
207
|
+
while ((pos = target.find("\\", pos)) != std::string::npos) {
|
|
208
|
+
target.replace(pos, 1, "\\\\");
|
|
209
|
+
pos += 2;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return target;
|
|
213
|
+
}
|
|
@@ -159,6 +159,13 @@ namespace sos {
|
|
|
159
159
|
virtual void indent(size_t level, std::ostream& os) = 0;
|
|
160
160
|
};
|
|
161
161
|
|
|
162
|
+
/**
|
|
163
|
+
* \brief Escape every backslash in input string.
|
|
164
|
+
* \param input A string to escape its backslashes.
|
|
165
|
+
* \return A new string with backslashes escaped.
|
|
166
|
+
*/
|
|
167
|
+
std::string escapeBackslashes(const std::string& input);
|
|
168
|
+
|
|
162
169
|
/**
|
|
163
170
|
* \brief Escape every double quote in input string.
|
|
164
171
|
* \param input A string to escape its double quotes.
|
|
@@ -29,7 +29,8 @@ namespace sos {
|
|
|
29
29
|
|
|
30
30
|
virtual void string(const std::string& value, std::ostream& os) {
|
|
31
31
|
|
|
32
|
-
std::string normalized =
|
|
32
|
+
std::string normalized = escapeBackslashes(value);
|
|
33
|
+
normalized = escapeDoubleQuotes(normalized);
|
|
33
34
|
normalized = escapeNewlines(normalized);
|
|
34
35
|
|
|
35
36
|
os << "\"" << normalized << "\"";
|
|
@@ -29,7 +29,8 @@ namespace sos {
|
|
|
29
29
|
|
|
30
30
|
virtual void string(const std::string& value, std::ostream& os) {
|
|
31
31
|
|
|
32
|
-
std::string normalized =
|
|
32
|
+
std::string normalized = escapeBackslashes(value);
|
|
33
|
+
normalized = escapeDoubleQuotes(normalized);
|
|
33
34
|
normalized = escapeNewlines(normalized);
|
|
34
35
|
|
|
35
36
|
os << " " << "\"" << normalized << "\"";
|
data/ext/drafter/src/Version.h
CHANGED
data/lib/redsnow/version.rb
CHANGED
data/redsnow.gemspec
CHANGED
|
@@ -28,9 +28,9 @@ Gem::Specification.new do |gem|
|
|
|
28
28
|
gem.add_dependency 'bundler', '>= 1.7.0'
|
|
29
29
|
gem.add_dependency 'yard', '~> 0.8.7.4'
|
|
30
30
|
|
|
31
|
+
gem.add_development_dependency 'minitest'
|
|
31
32
|
gem.add_development_dependency 'shoulda'
|
|
32
33
|
gem.add_development_dependency 'mocha'
|
|
33
|
-
gem.add_development_dependency 'turn'
|
|
34
34
|
gem.add_development_dependency 'unindent'
|
|
35
35
|
gem.add_development_dependency 'rubocop'
|
|
36
36
|
gem.add_development_dependency 'guard-rubocop'
|
metadata
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redsnow
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ladislav Prskavec
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: 1.9.3
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - ~>
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 1.9.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: 10.3.2
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: 10.3.2
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - '>='
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: 1.7.0
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- -
|
|
52
|
+
- - '>='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: 1.7.0
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: yard
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- -
|
|
59
|
+
- - ~>
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: 0.8.7.4
|
|
62
62
|
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- -
|
|
66
|
+
- - ~>
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: 0.8.7.4
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: minitest
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
|
-
- -
|
|
73
|
+
- - '>='
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
75
|
version: '0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
|
-
- -
|
|
80
|
+
- - '>='
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
82
|
version: '0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
84
|
+
name: shoulda
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
|
-
- -
|
|
87
|
+
- - '>='
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
89
|
version: '0'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
|
-
- -
|
|
94
|
+
- - '>='
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '0'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
|
-
name:
|
|
98
|
+
name: mocha
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- -
|
|
101
|
+
- - '>='
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- -
|
|
108
|
+
- - '>='
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: unindent
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
|
-
- -
|
|
115
|
+
- - '>='
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
117
|
version: '0'
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
|
-
- -
|
|
122
|
+
- - '>='
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: rubocop
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
|
129
|
-
- -
|
|
129
|
+
- - '>='
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
131
|
version: '0'
|
|
132
132
|
type: :development
|
|
133
133
|
prerelease: false
|
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
|
136
|
-
- -
|
|
136
|
+
- - '>='
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
140
|
name: guard-rubocop
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
|
-
- -
|
|
143
|
+
- - '>='
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
145
|
version: '0'
|
|
146
146
|
type: :development
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
149
|
requirements:
|
|
150
|
-
- -
|
|
150
|
+
- - '>='
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
152
|
version: '0'
|
|
153
153
|
description: Ruby bindings for Snow Crash
|
|
@@ -158,18 +158,24 @@ extensions:
|
|
|
158
158
|
- Rakefile
|
|
159
159
|
extra_rdoc_files: []
|
|
160
160
|
files:
|
|
161
|
+
- lib/redsnow/binding.rb
|
|
162
|
+
- lib/redsnow/blueprint.rb
|
|
163
|
+
- lib/redsnow/object.rb
|
|
164
|
+
- lib/redsnow/parseresult.rb
|
|
165
|
+
- lib/redsnow/sourcemap.rb
|
|
166
|
+
- lib/redsnow/version.rb
|
|
167
|
+
- lib/redsnow.rb
|
|
161
168
|
- Gemfile
|
|
162
|
-
- Gemfile.lock
|
|
163
169
|
- Guardfile
|
|
164
170
|
- Installation.md
|
|
165
171
|
- LICENSE
|
|
166
|
-
-
|
|
172
|
+
- provisioning.sh
|
|
167
173
|
- Rakefile
|
|
174
|
+
- README.md
|
|
175
|
+
- redsnow.gemspec
|
|
168
176
|
- Vagrantfile
|
|
169
|
-
- ext/drafter/Makefile
|
|
170
177
|
- ext/drafter/appveyor.yml
|
|
171
178
|
- ext/drafter/bin/drafter
|
|
172
|
-
- ext/drafter/build/Makefile
|
|
173
179
|
- ext/drafter/build/drafter.Makefile
|
|
174
180
|
- ext/drafter/build/drafter.target.mk
|
|
175
181
|
- ext/drafter/build/ext/snowcrash/libmarkdownparser.target.mk
|
|
@@ -180,6 +186,7 @@ files:
|
|
|
180
186
|
- ext/drafter/build/gyp-mac-tool
|
|
181
187
|
- ext/drafter/build/libdrafter.target.mk
|
|
182
188
|
- ext/drafter/build/libsos.target.mk
|
|
189
|
+
- ext/drafter/build/Makefile
|
|
183
190
|
- ext/drafter/build/out/Release/drafter
|
|
184
191
|
- ext/drafter/build/out/Release/libdrafter.dylib
|
|
185
192
|
- ext/drafter/build/out/Release/libmarkdownparser.a
|
|
@@ -190,29 +197,29 @@ files:
|
|
|
190
197
|
- ext/drafter/build/out/Release/obj.target/drafter/src/config.o
|
|
191
198
|
- ext/drafter/build/out/Release/obj.target/drafter/src/main.o
|
|
192
199
|
- ext/drafter/build/out/Release/obj.target/drafter/src/reporting.o
|
|
200
|
+
- ext/drafter/build/out/Release/obj.target/libdrafter/src/cdrafter.o
|
|
201
|
+
- ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter.o
|
|
193
202
|
- ext/drafter/build/out/Release/obj.target/libdrafter/src/Serialize.o
|
|
194
203
|
- ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeAST.o
|
|
195
204
|
- ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeResult.o
|
|
196
205
|
- ext/drafter/build/out/Release/obj.target/libdrafter/src/SerializeSourcemap.o
|
|
197
|
-
- ext/drafter/build/out/Release/obj.target/libdrafter/src/cdrafter.o
|
|
198
|
-
- ext/drafter/build/out/Release/obj.target/libdrafter/src/drafter.o
|
|
199
206
|
- ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.o
|
|
200
207
|
- ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.o
|
|
201
208
|
- ext/drafter/build/out/Release/obj.target/libmarkdownparser/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.o
|
|
202
209
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Blueprint.o
|
|
203
210
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/BlueprintSourcemap.o
|
|
204
|
-
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HTTP.o
|
|
205
211
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HeadersParser.o
|
|
212
|
+
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/HTTP.o
|
|
206
213
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSON.o
|
|
207
214
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONOneOfParser.o
|
|
208
215
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONSourcemap.o
|
|
209
216
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONTypeSectionParser.o
|
|
210
217
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/MSONValueMemberParser.o
|
|
218
|
+
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/posix/RegexMatch.o
|
|
211
219
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Section.o
|
|
212
220
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/Signature.o
|
|
213
|
-
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/UriTemplateParser.o
|
|
214
|
-
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/posix/RegexMatch.o
|
|
215
221
|
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/snowcrash.o
|
|
222
|
+
- ext/drafter/build/out/Release/obj.target/libsnowcrash/ext/snowcrash/src/UriTemplateParser.o
|
|
216
223
|
- ext/drafter/build/out/Release/obj.target/libsos/ext/sos/src/sos.o
|
|
217
224
|
- ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_href_e.o
|
|
218
225
|
- ext/drafter/build/out/Release/obj.target/libsundown/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini_html_e.o
|
|
@@ -227,16 +234,12 @@ files:
|
|
|
227
234
|
- ext/drafter/config.gypi
|
|
228
235
|
- ext/drafter/config.mk
|
|
229
236
|
- ext/drafter/configure
|
|
237
|
+
- ext/drafter/Dockerfile
|
|
230
238
|
- ext/drafter/drafter.gyp
|
|
231
|
-
- ext/drafter/ext/snowcrash/Makefile
|
|
232
|
-
- ext/drafter/ext/snowcrash/Vagrantfile
|
|
233
239
|
- ext/drafter/ext/snowcrash/appveyor.yml
|
|
234
240
|
- ext/drafter/ext/snowcrash/common.gypi
|
|
235
241
|
- ext/drafter/ext/snowcrash/configure
|
|
236
|
-
- ext/drafter/ext/snowcrash/ext/markdown-parser/Makefile
|
|
237
242
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/CONTRIBUTING.md
|
|
238
|
-
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile
|
|
239
|
-
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile.win
|
|
240
243
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/smartypants.c
|
|
241
244
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/examples/sundown.c
|
|
242
245
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/houdini.h
|
|
@@ -246,6 +249,8 @@ files:
|
|
|
246
249
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html.h
|
|
247
250
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html/html_smartypants.c
|
|
248
251
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/html_block_names.txt
|
|
252
|
+
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile
|
|
253
|
+
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/Makefile.win
|
|
249
254
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.c
|
|
250
255
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/autolink.h
|
|
251
256
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/buffer.c
|
|
@@ -258,6 +263,7 @@ files:
|
|
|
258
263
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.c
|
|
259
264
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/src/stack.h
|
|
260
265
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/ext/sundown/sundown.def
|
|
266
|
+
- ext/drafter/ext/snowcrash/ext/markdown-parser/Makefile
|
|
261
267
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/markdown/markdown.vcproj
|
|
262
268
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/msvc.sln
|
|
263
269
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/msvc/sundown/sundown.vcproj
|
|
@@ -267,6 +273,7 @@ files:
|
|
|
267
273
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownNode.h
|
|
268
274
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.cc
|
|
269
275
|
- ext/drafter/ext/snowcrash/ext/markdown-parser/src/MarkdownParser.h
|
|
276
|
+
- ext/drafter/ext/snowcrash/Makefile
|
|
270
277
|
- ext/drafter/ext/snowcrash/provisioning.sh
|
|
271
278
|
- ext/drafter/ext/snowcrash/snowcrash.gyp
|
|
272
279
|
- ext/drafter/ext/snowcrash/snowcrash.xcworkspace/contents.xcworkspacedata
|
|
@@ -281,10 +288,11 @@ files:
|
|
|
281
288
|
- ext/drafter/ext/snowcrash/src/BlueprintUtility.h
|
|
282
289
|
- ext/drafter/ext/snowcrash/src/CodeBlockUtility.h
|
|
283
290
|
- ext/drafter/ext/snowcrash/src/DataStructureGroupParser.h
|
|
284
|
-
- ext/drafter/ext/snowcrash/src/HTTP.cc
|
|
285
|
-
- ext/drafter/ext/snowcrash/src/HTTP.h
|
|
286
291
|
- ext/drafter/ext/snowcrash/src/HeadersParser.cc
|
|
287
292
|
- ext/drafter/ext/snowcrash/src/HeadersParser.h
|
|
293
|
+
- ext/drafter/ext/snowcrash/src/HTTP.cc
|
|
294
|
+
- ext/drafter/ext/snowcrash/src/HTTP.h
|
|
295
|
+
- ext/drafter/ext/snowcrash/src/ModelTable.h
|
|
288
296
|
- ext/drafter/ext/snowcrash/src/MSON.cc
|
|
289
297
|
- ext/drafter/ext/snowcrash/src/MSON.h
|
|
290
298
|
- ext/drafter/ext/snowcrash/src/MSONMixinParser.h
|
|
@@ -300,11 +308,11 @@ files:
|
|
|
300
308
|
- ext/drafter/ext/snowcrash/src/MSONUtility.h
|
|
301
309
|
- ext/drafter/ext/snowcrash/src/MSONValueMemberParser.cc
|
|
302
310
|
- ext/drafter/ext/snowcrash/src/MSONValueMemberParser.h
|
|
303
|
-
- ext/drafter/ext/snowcrash/src/ModelTable.h
|
|
304
311
|
- ext/drafter/ext/snowcrash/src/ParameterParser.h
|
|
305
312
|
- ext/drafter/ext/snowcrash/src/ParametersParser.h
|
|
306
313
|
- ext/drafter/ext/snowcrash/src/PayloadParser.h
|
|
307
314
|
- ext/drafter/ext/snowcrash/src/Platform.h
|
|
315
|
+
- ext/drafter/ext/snowcrash/src/posix/RegexMatch.cc
|
|
308
316
|
- ext/drafter/ext/snowcrash/src/RegexMatch.h
|
|
309
317
|
- ext/drafter/ext/snowcrash/src/RelationParser.h
|
|
310
318
|
- ext/drafter/ext/snowcrash/src/ResourceGroupParser.h
|
|
@@ -317,32 +325,24 @@ files:
|
|
|
317
325
|
- ext/drafter/ext/snowcrash/src/Signature.cc
|
|
318
326
|
- ext/drafter/ext/snowcrash/src/Signature.h
|
|
319
327
|
- ext/drafter/ext/snowcrash/src/SignatureSectionProcessor.h
|
|
328
|
+
- ext/drafter/ext/snowcrash/src/snowcrash.cc
|
|
329
|
+
- ext/drafter/ext/snowcrash/src/snowcrash.h
|
|
320
330
|
- ext/drafter/ext/snowcrash/src/SourceAnnotation.h
|
|
321
331
|
- ext/drafter/ext/snowcrash/src/StringUtility.h
|
|
322
332
|
- ext/drafter/ext/snowcrash/src/UriTemplateParser.cc
|
|
323
333
|
- ext/drafter/ext/snowcrash/src/UriTemplateParser.h
|
|
324
334
|
- ext/drafter/ext/snowcrash/src/ValuesParser.h
|
|
325
|
-
- ext/drafter/ext/snowcrash/src/posix/RegexMatch.cc
|
|
326
|
-
- ext/drafter/ext/snowcrash/src/snowcrash.cc
|
|
327
|
-
- ext/drafter/ext/snowcrash/src/snowcrash.h
|
|
328
335
|
- ext/drafter/ext/snowcrash/src/win/RegexMatch.cc
|
|
329
336
|
- ext/drafter/ext/snowcrash/tools/gyp/AUTHORS
|
|
330
|
-
- ext/drafter/ext/snowcrash/tools/gyp/DEPS
|
|
331
|
-
- ext/drafter/ext/snowcrash/tools/gyp/OWNERS
|
|
332
|
-
- ext/drafter/ext/snowcrash/tools/gyp/PRESUBMIT.py
|
|
333
337
|
- ext/drafter/ext/snowcrash/tools/gyp/buildbot/buildbot_run.py
|
|
334
338
|
- ext/drafter/ext/snowcrash/tools/gyp/codereview.settings
|
|
335
339
|
- ext/drafter/ext/snowcrash/tools/gyp/data/win/large-pdb-shim.cc
|
|
340
|
+
- ext/drafter/ext/snowcrash/tools/gyp/DEPS
|
|
336
341
|
- ext/drafter/ext/snowcrash/tools/gyp/gyp
|
|
337
342
|
- ext/drafter/ext/snowcrash/tools/gyp/gyp.bat
|
|
338
343
|
- ext/drafter/ext/snowcrash/tools/gyp/gyp_main.py
|
|
339
|
-
- ext/drafter/ext/snowcrash/tools/gyp/
|
|
340
|
-
- ext/drafter/ext/snowcrash/tools/gyp/
|
|
341
|
-
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSSettings.py
|
|
342
|
-
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSToolFile.py
|
|
343
|
-
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUserFile.py
|
|
344
|
-
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.py
|
|
345
|
-
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.py
|
|
344
|
+
- ext/drafter/ext/snowcrash/tools/gyp/OWNERS
|
|
345
|
+
- ext/drafter/ext/snowcrash/tools/gyp/PRESUBMIT.py
|
|
346
346
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.py
|
|
347
347
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/__init__.pyc
|
|
348
348
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/common.py
|
|
@@ -367,6 +367,13 @@ files:
|
|
|
367
367
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/input.pyc
|
|
368
368
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/mac_tool.py
|
|
369
369
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/msvs_emulation.py
|
|
370
|
+
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSNew.py
|
|
371
|
+
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSProject.py
|
|
372
|
+
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSSettings.py
|
|
373
|
+
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSToolFile.py
|
|
374
|
+
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUserFile.py
|
|
375
|
+
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSUtil.py
|
|
376
|
+
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/MSVSVersion.py
|
|
370
377
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ninja_syntax.py
|
|
371
378
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/ordered_dict.py
|
|
372
379
|
- ext/drafter/ext/snowcrash/tools/gyp/pylib/gyp/win_tool.py
|
|
@@ -379,28 +386,21 @@ files:
|
|
|
379
386
|
- ext/drafter/ext/snowcrash/tools/gyp/samples/samples
|
|
380
387
|
- ext/drafter/ext/snowcrash/tools/gyp/samples/samples.bat
|
|
381
388
|
- ext/drafter/ext/snowcrash/tools/gyp/setup.py
|
|
382
|
-
- ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.pbfilespec
|
|
383
|
-
- ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.xclangspec
|
|
384
389
|
- ext/drafter/ext/snowcrash/tools/gyp/tools/emacs/gyp.el
|
|
385
390
|
- ext/drafter/ext/snowcrash/tools/gyp/tools/graphviz.py
|
|
386
391
|
- ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_gyp.py
|
|
387
392
|
- ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_sln.py
|
|
388
393
|
- ext/drafter/ext/snowcrash/tools/gyp/tools/pretty_vcproj.py
|
|
394
|
+
- ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.pbfilespec
|
|
395
|
+
- ext/drafter/ext/snowcrash/tools/gyp/tools/Xcode/Specifications/gyp.xclangspec
|
|
396
|
+
- ext/drafter/ext/snowcrash/Vagrantfile
|
|
389
397
|
- ext/drafter/ext/snowcrash/vcbuild.bat
|
|
390
398
|
- ext/drafter/ext/sos/Makefile
|
|
391
399
|
- ext/drafter/ext/sos/src/sos.cc
|
|
392
400
|
- ext/drafter/ext/sos/src/sos.h
|
|
393
401
|
- ext/drafter/ext/sos/src/sosJSON.h
|
|
394
402
|
- ext/drafter/ext/sos/src/sosYAML.h
|
|
395
|
-
- ext/drafter/
|
|
396
|
-
- ext/drafter/src/Serialize.h
|
|
397
|
-
- ext/drafter/src/SerializeAST.cc
|
|
398
|
-
- ext/drafter/src/SerializeAST.h
|
|
399
|
-
- ext/drafter/src/SerializeResult.cc
|
|
400
|
-
- ext/drafter/src/SerializeResult.h
|
|
401
|
-
- ext/drafter/src/SerializeSourcemap.cc
|
|
402
|
-
- ext/drafter/src/SerializeSourcemap.h
|
|
403
|
-
- ext/drafter/src/Version.h
|
|
403
|
+
- ext/drafter/Makefile
|
|
404
404
|
- ext/drafter/src/cdrafter.cc
|
|
405
405
|
- ext/drafter/src/cdrafter.h
|
|
406
406
|
- ext/drafter/src/config.cc
|
|
@@ -410,18 +410,18 @@ files:
|
|
|
410
410
|
- ext/drafter/src/main.cc
|
|
411
411
|
- ext/drafter/src/reporting.cc
|
|
412
412
|
- ext/drafter/src/reporting.h
|
|
413
|
+
- ext/drafter/src/Serialize.cc
|
|
414
|
+
- ext/drafter/src/Serialize.h
|
|
415
|
+
- ext/drafter/src/SerializeAST.cc
|
|
416
|
+
- ext/drafter/src/SerializeAST.h
|
|
417
|
+
- ext/drafter/src/SerializeResult.cc
|
|
418
|
+
- ext/drafter/src/SerializeResult.h
|
|
419
|
+
- ext/drafter/src/SerializeSourcemap.cc
|
|
420
|
+
- ext/drafter/src/SerializeSourcemap.h
|
|
413
421
|
- ext/drafter/src/stream.h
|
|
422
|
+
- ext/drafter/src/Version.h
|
|
414
423
|
- ext/drafter/tools/homebrew/drafter.rb
|
|
415
424
|
- ext/drafter/vcbuild.bat
|
|
416
|
-
- lib/redsnow.rb
|
|
417
|
-
- lib/redsnow/binding.rb
|
|
418
|
-
- lib/redsnow/blueprint.rb
|
|
419
|
-
- lib/redsnow/object.rb
|
|
420
|
-
- lib/redsnow/parseresult.rb
|
|
421
|
-
- lib/redsnow/sourcemap.rb
|
|
422
|
-
- lib/redsnow/version.rb
|
|
423
|
-
- provisioning.sh
|
|
424
|
-
- redsnow.gemspec
|
|
425
425
|
homepage: https://github.com/apiaryio/redsnow
|
|
426
426
|
licenses:
|
|
427
427
|
- MIT
|
|
@@ -433,17 +433,17 @@ require_paths:
|
|
|
433
433
|
- ext
|
|
434
434
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
435
435
|
requirements:
|
|
436
|
-
- -
|
|
436
|
+
- - '>='
|
|
437
437
|
- !ruby/object:Gem::Version
|
|
438
438
|
version: 1.9.3
|
|
439
439
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
440
440
|
requirements:
|
|
441
|
-
- -
|
|
441
|
+
- - '>='
|
|
442
442
|
- !ruby/object:Gem::Version
|
|
443
443
|
version: '0'
|
|
444
444
|
requirements: []
|
|
445
445
|
rubyforge_project:
|
|
446
|
-
rubygems_version: 2.
|
|
446
|
+
rubygems_version: 2.0.14
|
|
447
447
|
signing_key:
|
|
448
448
|
specification_version: 4
|
|
449
449
|
summary: Ruby bindings for Snow Crash
|
data/Gemfile.lock
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
redsnow (0.4.1)
|
|
5
|
-
bundler (>= 1.7.0)
|
|
6
|
-
ffi (~> 1.9.3)
|
|
7
|
-
rake (>= 10.3.2)
|
|
8
|
-
yard (~> 0.8.7.4)
|
|
9
|
-
|
|
10
|
-
GEM
|
|
11
|
-
remote: https://rubygems.org/
|
|
12
|
-
specs:
|
|
13
|
-
activesupport (4.0.13)
|
|
14
|
-
i18n (~> 0.6, >= 0.6.9)
|
|
15
|
-
minitest (~> 4.2)
|
|
16
|
-
multi_json (~> 1.3)
|
|
17
|
-
thread_safe (~> 0.1)
|
|
18
|
-
tzinfo (~> 0.3.37)
|
|
19
|
-
ansi (1.5.0)
|
|
20
|
-
ast (2.0.0)
|
|
21
|
-
astrolabe (1.3.0)
|
|
22
|
-
parser (>= 2.2.0.pre.3, < 3.0)
|
|
23
|
-
celluloid (0.16.0)
|
|
24
|
-
timers (~> 4.0.0)
|
|
25
|
-
coderay (1.1.0)
|
|
26
|
-
ffi (1.9.8)
|
|
27
|
-
formatador (0.2.5)
|
|
28
|
-
guard (2.12.5)
|
|
29
|
-
formatador (>= 0.2.4)
|
|
30
|
-
listen (~> 2.7)
|
|
31
|
-
lumberjack (~> 1.0)
|
|
32
|
-
nenv (~> 0.1)
|
|
33
|
-
notiffany (~> 0.0)
|
|
34
|
-
pry (>= 0.9.12)
|
|
35
|
-
shellany (~> 0.0)
|
|
36
|
-
thor (>= 0.18.1)
|
|
37
|
-
guard-rubocop (1.2.0)
|
|
38
|
-
guard (~> 2.0)
|
|
39
|
-
rubocop (~> 0.20)
|
|
40
|
-
hitimes (1.2.2)
|
|
41
|
-
i18n (0.7.0)
|
|
42
|
-
listen (2.10.0)
|
|
43
|
-
celluloid (~> 0.16.0)
|
|
44
|
-
rb-fsevent (>= 0.9.3)
|
|
45
|
-
rb-inotify (>= 0.9)
|
|
46
|
-
lumberjack (1.0.9)
|
|
47
|
-
metaclass (0.0.4)
|
|
48
|
-
method_source (0.8.2)
|
|
49
|
-
minitest (4.7.5)
|
|
50
|
-
mocha (1.1.0)
|
|
51
|
-
metaclass (~> 0.0.1)
|
|
52
|
-
multi_json (1.11.0)
|
|
53
|
-
nenv (0.2.0)
|
|
54
|
-
notiffany (0.0.6)
|
|
55
|
-
nenv (~> 0.1)
|
|
56
|
-
shellany (~> 0.0)
|
|
57
|
-
parser (2.2.2.1)
|
|
58
|
-
ast (>= 1.1, < 3.0)
|
|
59
|
-
powerpack (0.1.0)
|
|
60
|
-
pry (0.10.1)
|
|
61
|
-
coderay (~> 1.1.0)
|
|
62
|
-
method_source (~> 0.8.1)
|
|
63
|
-
slop (~> 3.4)
|
|
64
|
-
rainbow (2.0.0)
|
|
65
|
-
rake (10.4.2)
|
|
66
|
-
rb-fsevent (0.9.4)
|
|
67
|
-
rb-inotify (0.9.5)
|
|
68
|
-
ffi (>= 0.5.0)
|
|
69
|
-
rubocop (0.30.1)
|
|
70
|
-
astrolabe (~> 1.3)
|
|
71
|
-
parser (>= 2.2.2.1, < 3.0)
|
|
72
|
-
powerpack (~> 0.1)
|
|
73
|
-
rainbow (>= 1.99.1, < 3.0)
|
|
74
|
-
ruby-progressbar (~> 1.4)
|
|
75
|
-
ruby-progressbar (1.7.5)
|
|
76
|
-
shellany (0.0.1)
|
|
77
|
-
shoulda (3.5.0)
|
|
78
|
-
shoulda-context (~> 1.0, >= 1.0.1)
|
|
79
|
-
shoulda-matchers (>= 1.4.1, < 3.0)
|
|
80
|
-
shoulda-context (1.2.1)
|
|
81
|
-
shoulda-matchers (2.8.0)
|
|
82
|
-
activesupport (>= 3.0.0)
|
|
83
|
-
slop (3.6.0)
|
|
84
|
-
thor (0.19.1)
|
|
85
|
-
thread_safe (0.3.5)
|
|
86
|
-
timers (4.0.1)
|
|
87
|
-
hitimes
|
|
88
|
-
turn (0.9.7)
|
|
89
|
-
ansi
|
|
90
|
-
minitest (~> 4)
|
|
91
|
-
tzinfo (0.3.43)
|
|
92
|
-
unindent (1.0)
|
|
93
|
-
yard (0.8.7.6)
|
|
94
|
-
|
|
95
|
-
PLATFORMS
|
|
96
|
-
ruby
|
|
97
|
-
|
|
98
|
-
DEPENDENCIES
|
|
99
|
-
guard-rubocop
|
|
100
|
-
mocha
|
|
101
|
-
redsnow!
|
|
102
|
-
rubocop
|
|
103
|
-
shoulda
|
|
104
|
-
turn
|
|
105
|
-
unindent
|