ffi-yajl 0.1.0-universal-java → 0.1.1-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ffi_yajl/parser.rb +3 -0
- data/lib/ffi_yajl/version.rb +1 -1
- data/spec/ffi_yajl/parser_spec.rb +5 -0
- 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: a357db3a32e45d9bfc7af7f1f6e545666058273f
|
4
|
+
data.tar.gz: 4bf9286b6dfa15e6d202118ddda7e91eb78988e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 603cdebb51b26424c24b6c15d71e667bcd399892a4407999d3cedde03dccccff74cabed0a4ed27c35a9e456b31a248abb17207a673b43a344c0fc554ff14ce66
|
7
|
+
data.tar.gz: 28c4f097656b8f464e12401f96eb34fc94a9a210aea6eb0ecbbe836914a38cb040f3711de9eb7b6575d65f1e8d0f07b73c3d68dd3289b5cf867f2bb946bd6198
|
data/lib/ffi_yajl/parser.rb
CHANGED
data/lib/ffi_yajl/version.rb
CHANGED
@@ -6,6 +6,11 @@ describe "FFI_Yajl::Parser" do
|
|
6
6
|
|
7
7
|
let(:parser) { FFI_Yajl::Parser.new }
|
8
8
|
|
9
|
+
it "returns nil for an empty string (compatibility with yajl-ruby)" do
|
10
|
+
json = ''
|
11
|
+
expect( parser.parse(json) ).to be_nil
|
12
|
+
end
|
13
|
+
|
9
14
|
it "throws an exception when trailing braces are missing" do
|
10
15
|
json = '{{"foo": 1234}'
|
11
16
|
expect { parser.parse(json) }.to raise_error(FFI_Yajl::ParseError)
|