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 +4 -4
- data/lib/lounge_lizard/version.rb +1 -1
- data/lib/lounge_lizard.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8efaf439f1268412a0b24688c14c29e5a254f57a
|
4
|
+
data.tar.gz: cee91d4b84c1c285c6642f269f9cbf6035cf2df1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8e856f504ef2bb86d5eeb3f8302afebb4d3788b7b1b4dcfa9f4c42c0630eb3c06a49e21287b8ad904fc89c05d13d60093ca699f09e25e871f535d0006b6305b
|
7
|
+
data.tar.gz: bf4f651a310ba962c4ac09cfddda92ebd997b89d9bbde7b0e4af6c53ebb08150a253db487b7efdf07901a4a226a732ac39d0c713ec7afb90a6a92bc353376006
|
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
|
-
|
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.
|
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.
|
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
|