lacerda 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +3 -0
- data/lib/lacerda/conversion.rb +6 -1
- data/lib/lacerda/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bac13852d23c73fe1faa29c127a89a300d325a32
|
4
|
+
data.tar.gz: 1b17e5c36381824700205c5ec968e4166a6dbc6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd6b92110ed068699c0a120e9a5c23cdc466defa92c036a7d84c4c8ba61153dca13a466b9cc634207a5634a89db742221ba4870d6d4a2b5c960177f862c235e2
|
7
|
+
data.tar.gz: 6458552ee1163c8fe5d5c2f4b6a5e2e4a4945c6dd74d89688670dca00df2f70aba1104ffc7d8485c64ebf9f1d71d32f75d15972944f9d01811e573b38ecfc59f
|
data/CHANGELOG.markdown
CHANGED
data/lib/lacerda/conversion.rb
CHANGED
@@ -115,9 +115,14 @@ module Lacerda
|
|
115
115
|
input = filename
|
116
116
|
output = filename.gsub(/\.\w+$/, '.blueprint-ast.json')
|
117
117
|
|
118
|
+
# Add Data Structure section automatically
|
119
|
+
mson = open(input).read
|
120
|
+
unless mson[/^\#[ ]*data[ ]+structure/i]
|
121
|
+
mson = "# Data Structure\n#{mson}"
|
122
|
+
end
|
118
123
|
|
119
124
|
parse_result = FFI::MemoryPointer.new :pointer
|
120
|
-
RedSnow::Binding.drafter_c_parse(
|
125
|
+
RedSnow::Binding.drafter_c_parse(mson, 0, parse_result)
|
121
126
|
parse_result = parse_result.get_pointer(0)
|
122
127
|
|
123
128
|
status = -1
|
data/lib/lacerda/version.rb
CHANGED