lacerda 0.9.0 → 0.10.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b5b784274c61e1728070e670433cb83197fb188
4
- data.tar.gz: a68ce265609b9e9fe4a4363826b2cda76725a957
3
+ metadata.gz: bac13852d23c73fe1faa29c127a89a300d325a32
4
+ data.tar.gz: 1b17e5c36381824700205c5ec968e4166a6dbc6b
5
5
  SHA512:
6
- metadata.gz: 244a843b84b04b7dd1a60938e74af3699f857f25b9079b1ef1ba3a4a64d8d8484d0a8495a85e73b185d9765e5852f9316ec114d3828645cb9df161fed7cc7f00
7
- data.tar.gz: 5a884c976e7006a6ef99c35281d5ce3e24926663a6ea75a3a77daabe8ef5315a5f4a2f011bb029ec4dce73216d1e9c91983455c2955cbf43863774d03113bf32
6
+ metadata.gz: fd6b92110ed068699c0a120e9a5c23cdc466defa92c036a7d84c4c8ba61153dca13a466b9cc634207a5634a89db742221ba4870d6d4a2b5c960177f862c235e2
7
+ data.tar.gz: 6458552ee1163c8fe5d5c2f4b6a5e2e4a4945c6dd74d89688670dca00df2f70aba1104ffc7d8485c64ebf9f1d71d32f75d15972944f9d01811e573b38ecfc59f
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.10.0 (03-Nov-15)
2
+ - Make `# Data Structure` header for specifications optional
3
+
1
4
  # 0.9.0 (03-Nov-15)
2
5
  - add RSpec reporter
3
6
 
@@ -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(open(input).read, 0, parse_result)
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
@@ -1,3 +1,3 @@
1
1
  module Lacerda
2
- VERSION = '0.9.0'
2
+ VERSION = '0.10.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lacerda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jannis Hermanns