lounge_lizard 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94e47f2db7586b6eea4e40cdd1671658b7154205
4
- data.tar.gz: 76daea6dabef3cd100dc7ea9c5b6fb5b7fb4d823
3
+ metadata.gz: 8efaf439f1268412a0b24688c14c29e5a254f57a
4
+ data.tar.gz: cee91d4b84c1c285c6642f269f9cbf6035cf2df1
5
5
  SHA512:
6
- metadata.gz: 651ccbf76c6bdeb18718f9ea72e397b6d559094c81c4253ac7f69a46dd52efae2f0c7756a8b7f19212900763c9c78fb130cd690f0660454cb482770913a21353
7
- data.tar.gz: e18b631c08edf3f244427152537b16b398a51a19d01334411ad9d9086deeb0c190927c3f20975bd443b5a2f67339592501beb908c37869ccc986b1bc51470a70
6
+ metadata.gz: d8e856f504ef2bb86d5eeb3f8302afebb4d3788b7b1b4dcfa9f4c42c0630eb3c06a49e21287b8ad904fc89c05d13d60093ca699f09e25e871f535d0006b6305b
7
+ data.tar.gz: bf4f651a310ba962c4ac09cfddda92ebd997b89d9bbde7b0e4af6c53ebb08150a253db487b7efdf07901a4a226a732ac39d0c713ec7afb90a6a92bc353376006
@@ -1,3 +1,3 @@
1
1
  module LoungeLizard
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
data/lib/lounge_lizard.rb CHANGED
@@ -9,9 +9,7 @@ module LoungeLizard
9
9
  parse_result = FFI::MemoryPointer.new :pointer
10
10
  Binding.drafter_parse_blueprint_to(mson, parse_result, Binding::DrafterOptions.as_json)
11
11
  parse_result = parse_result.get_pointer(0)
12
- result_string = parse_result.read_string unless parse_result.null?
13
- return {} if result_string.to_s.empty?
14
- JSON.parse(result_string)
12
+ parse_result.read_string unless parse_result.null?
15
13
  ensure
16
14
  parse_result.free
17
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lounge_lizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Garcia
@@ -540,7 +540,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
540
540
  version: '0'
541
541
  requirements: []
542
542
  rubyforge_project:
543
- rubygems_version: 2.5.1
543
+ rubygems_version: 2.6.8
544
544
  signing_key:
545
545
  specification_version: 4
546
546
  summary: Ruby binding for mson parsing with apiaryio/drafter