ffi-yajl 0.0.4-universal-java → 0.1.0-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +114 -30
- data/ext/ffi_yajl/ext/encoder/extconf.rb +5 -5
- data/ext/ffi_yajl/ext/parser/extconf.rb +5 -5
- data/lib/ffi_yajl/ffi.rb +2 -1
- data/lib/ffi_yajl/version.rb +1 -1
- data/spec/ffi_yajl/encoder_spec.rb +6 -6
- data/spec/ffi_yajl/json_gem_spec.rb +13 -13
- data/spec/ffi_yajl/parser_spec.rb +9 -9
- metadata +17 -175
- data/ext/libyajl2/extconf.rb +0 -60
- data/ext/libyajl2/vendored/.gitignore +0 -3
- data/ext/libyajl2/vendored/BUILDING +0 -23
- data/ext/libyajl2/vendored/BUILDING.win32 +0 -27
- data/ext/libyajl2/vendored/CMakeLists.txt +0 -79
- data/ext/libyajl2/vendored/COPYING +0 -13
- data/ext/libyajl2/vendored/ChangeLog +0 -175
- data/ext/libyajl2/vendored/README +0 -74
- data/ext/libyajl2/vendored/TODO +0 -9
- data/ext/libyajl2/vendored/YAJLDoc.cmake +0 -26
- data/ext/libyajl2/vendored/configure +0 -79
- data/ext/libyajl2/vendored/example/CMakeLists.txt +0 -23
- data/ext/libyajl2/vendored/example/README.md +0 -7
- data/ext/libyajl2/vendored/example/parse_config.c +0 -69
- data/ext/libyajl2/vendored/example/sample.config +0 -101
- data/ext/libyajl2/vendored/perf/CMakeLists.txt +0 -23
- data/ext/libyajl2/vendored/perf/documents.c +0 -1418
- data/ext/libyajl2/vendored/perf/documents.h +0 -28
- data/ext/libyajl2/vendored/perf/perftest.c +0 -134
- data/ext/libyajl2/vendored/reformatter/CMakeLists.txt +0 -39
- data/ext/libyajl2/vendored/reformatter/json_reformat.c +0 -194
- data/ext/libyajl2/vendored/src/CMakeLists.txt +0 -86
- data/ext/libyajl2/vendored/src/YAJL.dxy +0 -1258
- data/ext/libyajl2/vendored/src/api/yajl_common.h +0 -75
- data/ext/libyajl2/vendored/src/api/yajl_gen.h +0 -157
- data/ext/libyajl2/vendored/src/api/yajl_parse.h +0 -226
- data/ext/libyajl2/vendored/src/api/yajl_tree.h +0 -185
- data/ext/libyajl2/vendored/src/api/yajl_version.h.cmake +0 -23
- data/ext/libyajl2/vendored/src/yajl +0 -33
- data/ext/libyajl2/vendored/src/yajl.c +0 -175
- data/ext/libyajl2/vendored/src/yajl.pc.cmake +0 -9
- data/ext/libyajl2/vendored/src/yajl_alloc.c +0 -52
- data/ext/libyajl2/vendored/src/yajl_alloc.h +0 -34
- data/ext/libyajl2/vendored/src/yajl_buf.c +0 -103
- data/ext/libyajl2/vendored/src/yajl_buf.h +0 -57
- data/ext/libyajl2/vendored/src/yajl_bytestack.h +0 -69
- data/ext/libyajl2/vendored/src/yajl_encode.c +0 -220
- data/ext/libyajl2/vendored/src/yajl_encode.h +0 -34
- data/ext/libyajl2/vendored/src/yajl_gen.c +0 -354
- data/ext/libyajl2/vendored/src/yajl_lex.c +0 -763
- data/ext/libyajl2/vendored/src/yajl_lex.h +0 -117
- data/ext/libyajl2/vendored/src/yajl_parser.c +0 -498
- data/ext/libyajl2/vendored/src/yajl_parser.h +0 -78
- data/ext/libyajl2/vendored/src/yajl_tree.c +0 -503
- data/ext/libyajl2/vendored/src/yajl_version.c +0 -7
- data/ext/libyajl2/vendored/test/CMakeLists.txt +0 -23
- data/ext/libyajl2/vendored/test/cases/ac_difficult_json_c_test_case_with_comments.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ac_difficult_json_c_test_case_with_comments.json.gold +0 -36
- data/ext/libyajl2/vendored/test/cases/ac_simple_with_comments.json +0 -11
- data/ext/libyajl2/vendored/test/cases/ac_simple_with_comments.json.gold +0 -9
- data/ext/libyajl2/vendored/test/cases/ag_false_then_garbage.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ag_false_then_garbage.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/ag_null_then_garbage.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ag_null_then_garbage.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/ag_true_then_garbage.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ag_true_then_garbage.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/am_eof.json +0 -1
- data/ext/libyajl2/vendored/test/cases/am_eof.json.gold +0 -4
- data/ext/libyajl2/vendored/test/cases/am_integers.json +0 -1
- data/ext/libyajl2/vendored/test/cases/am_integers.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/am_multiple.json +0 -3
- data/ext/libyajl2/vendored/test/cases/am_multiple.json.gold +0 -5
- data/ext/libyajl2/vendored/test/cases/am_stuff.json +0 -7
- data/ext/libyajl2/vendored/test/cases/am_stuff.json.gold +0 -14
- data/ext/libyajl2/vendored/test/cases/ap_array_open.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ap_array_open.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/ap_eof_str.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ap_eof_str.json.gold +0 -1
- data/ext/libyajl2/vendored/test/cases/ap_map_open.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ap_map_open.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/ap_partial_ok.json +0 -1
- data/ext/libyajl2/vendored/test/cases/ap_partial_ok.json.gold +0 -4
- data/ext/libyajl2/vendored/test/cases/array.json +0 -6
- data/ext/libyajl2/vendored/test/cases/array.json.gold +0 -22
- data/ext/libyajl2/vendored/test/cases/array_close.json +0 -1
- data/ext/libyajl2/vendored/test/cases/array_close.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/bignums.json +0 -1
- data/ext/libyajl2/vendored/test/cases/bignums.json.gold +0 -5
- data/ext/libyajl2/vendored/test/cases/bogus_char.json +0 -4
- data/ext/libyajl2/vendored/test/cases/bogus_char.json.gold +0 -10
- data/ext/libyajl2/vendored/test/cases/codepoints_from_unicode_org.json +0 -1
- data/ext/libyajl2/vendored/test/cases/codepoints_from_unicode_org.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/deep_arrays.json +0 -1
- data/ext/libyajl2/vendored/test/cases/deep_arrays.json.gold +0 -2049
- data/ext/libyajl2/vendored/test/cases/difficult_json_c_test_case.json +0 -1
- data/ext/libyajl2/vendored/test/cases/difficult_json_c_test_case.json.gold +0 -36
- data/ext/libyajl2/vendored/test/cases/doubles.json +0 -1
- data/ext/libyajl2/vendored/test/cases/doubles.json.gold +0 -7
- data/ext/libyajl2/vendored/test/cases/doubles_in_array.json +0 -1
- data/ext/libyajl2/vendored/test/cases/doubles_in_array.json.gold +0 -8
- data/ext/libyajl2/vendored/test/cases/empty_array.json +0 -1
- data/ext/libyajl2/vendored/test/cases/empty_array.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/empty_string.json +0 -1
- data/ext/libyajl2/vendored/test/cases/empty_string.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/escaped_bulgarian.json +0 -4
- data/ext/libyajl2/vendored/test/cases/escaped_bulgarian.json.gold +0 -7
- data/ext/libyajl2/vendored/test/cases/escaped_foobar.json +0 -1
- data/ext/libyajl2/vendored/test/cases/escaped_foobar.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/false.json +0 -1
- data/ext/libyajl2/vendored/test/cases/false.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/fg_false_then_garbage.json +0 -1
- data/ext/libyajl2/vendored/test/cases/fg_false_then_garbage.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/fg_issue_7.json +0 -1
- data/ext/libyajl2/vendored/test/cases/fg_issue_7.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/fg_null_then_garbage.json +0 -1
- data/ext/libyajl2/vendored/test/cases/fg_null_then_garbage.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/fg_true_then_garbage.json +0 -1
- data/ext/libyajl2/vendored/test/cases/fg_true_then_garbage.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/four_byte_utf8.json +0 -2
- data/ext/libyajl2/vendored/test/cases/four_byte_utf8.json.gold +0 -5
- data/ext/libyajl2/vendored/test/cases/high_overflow.json +0 -1
- data/ext/libyajl2/vendored/test/cases/high_overflow.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/integers.json +0 -3
- data/ext/libyajl2/vendored/test/cases/integers.json.gold +0 -14
- data/ext/libyajl2/vendored/test/cases/invalid_utf8.json +0 -1
- data/ext/libyajl2/vendored/test/cases/invalid_utf8.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/isolated_surrogate_marker.json +0 -1
- data/ext/libyajl2/vendored/test/cases/isolated_surrogate_marker.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/leading_zero_in_number.json +0 -1
- data/ext/libyajl2/vendored/test/cases/leading_zero_in_number.json.gold +0 -5
- data/ext/libyajl2/vendored/test/cases/lonely_minus_sign.json +0 -7
- data/ext/libyajl2/vendored/test/cases/lonely_minus_sign.json.gold +0 -9
- data/ext/libyajl2/vendored/test/cases/lonely_number.json +0 -1
- data/ext/libyajl2/vendored/test/cases/lonely_number.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/low_overflow.json +0 -1
- data/ext/libyajl2/vendored/test/cases/low_overflow.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/map_close.json +0 -1
- data/ext/libyajl2/vendored/test/cases/map_close.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/missing_integer_after_decimal_point.json +0 -1
- data/ext/libyajl2/vendored/test/cases/missing_integer_after_decimal_point.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/missing_integer_after_exponent.json +0 -1
- data/ext/libyajl2/vendored/test/cases/missing_integer_after_exponent.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/multiple.json +0 -3
- data/ext/libyajl2/vendored/test/cases/multiple.json.gold +0 -4
- data/ext/libyajl2/vendored/test/cases/non_utf8_char_in_string.json +0 -1
- data/ext/libyajl2/vendored/test/cases/non_utf8_char_in_string.json.gold +0 -8
- data/ext/libyajl2/vendored/test/cases/np_partial_bad.json +0 -1
- data/ext/libyajl2/vendored/test/cases/np_partial_bad.json.gold +0 -5
- data/ext/libyajl2/vendored/test/cases/null.json +0 -1
- data/ext/libyajl2/vendored/test/cases/null.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/nulls_and_bools.json +0 -5
- data/ext/libyajl2/vendored/test/cases/nulls_and_bools.json.gold +0 -9
- data/ext/libyajl2/vendored/test/cases/simple.json +0 -5
- data/ext/libyajl2/vendored/test/cases/simple.json.gold +0 -9
- data/ext/libyajl2/vendored/test/cases/simple_with_comments.json +0 -11
- data/ext/libyajl2/vendored/test/cases/simple_with_comments.json.gold +0 -5
- data/ext/libyajl2/vendored/test/cases/string_invalid_escape.json +0 -1
- data/ext/libyajl2/vendored/test/cases/string_invalid_escape.json.gold +0 -3
- data/ext/libyajl2/vendored/test/cases/string_invalid_hex_char.json +0 -1
- data/ext/libyajl2/vendored/test/cases/string_invalid_hex_char.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/string_with_escapes.json +0 -3
- data/ext/libyajl2/vendored/test/cases/string_with_escapes.json.gold +0 -7
- data/ext/libyajl2/vendored/test/cases/string_with_invalid_newline.json +0 -2
- data/ext/libyajl2/vendored/test/cases/string_with_invalid_newline.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/three_byte_utf8.json +0 -1
- data/ext/libyajl2/vendored/test/cases/three_byte_utf8.json.gold +0 -7
- data/ext/libyajl2/vendored/test/cases/true.json +0 -1
- data/ext/libyajl2/vendored/test/cases/true.json.gold +0 -2
- data/ext/libyajl2/vendored/test/cases/unescaped_bulgarian.json +0 -1
- data/ext/libyajl2/vendored/test/cases/unescaped_bulgarian.json.gold +0 -4
- data/ext/libyajl2/vendored/test/cases/zerobyte.json +0 -1
- data/ext/libyajl2/vendored/test/cases/zerobyte.json.gold +0 -0
- data/ext/libyajl2/vendored/test/run_tests.sh +0 -94
- data/ext/libyajl2/vendored/test/yajl_test.c +0 -281
- data/ext/libyajl2/vendored/verify/CMakeLists.txt +0 -39
- data/ext/libyajl2/vendored/verify/json_verify.c +0 -116
- data/lib/libyajl.so +0 -0
- data/lib/libyajl.so.2 +0 -0
- data/lib/libyajl.so.2.0.5 +0 -0
- data/lib/libyajl_s.a +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af5127a16b987f2de8da3819dd1a98e2384870e
|
4
|
+
data.tar.gz: 6962689b6508a53174de9c17dfd23b79b0d4163f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 738f09fd70f72f5d02fd76f4df92daf454e8d409d2b0a1c833cac6d4e227502739d72d720a59d21e388676800778cd25a948aacfb08c9deabe10c331b4b28d61
|
7
|
+
data.tar.gz: 4b6bd23a4ac0844e61d5682afa565abcd6961996c9de0e04e1dc461b40ee5f030f5cddb6962bbb79f9804ff3b8947d4d5f554dc4af6e05bb2993b5a9bf23f0a5
|
data/Rakefile
CHANGED
@@ -1,35 +1,13 @@
|
|
1
1
|
require 'rspec/core/rake_task'
|
2
2
|
require 'rubygems/package_task'
|
3
3
|
require 'rake/extensiontask'
|
4
|
+
require 'ffi_yajl/version'
|
4
5
|
|
5
6
|
Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path|
|
6
7
|
gemspec = eval(IO.read(gemspec_path))
|
7
8
|
Gem::PackageTask.new(gemspec).define
|
8
9
|
end
|
9
10
|
|
10
|
-
require 'ffi_yajl/version'
|
11
|
-
|
12
|
-
desc "Run all specs against both extensions"
|
13
|
-
task :spec do
|
14
|
-
Rake::Task["spec:ffi"].invoke
|
15
|
-
Rake::Task["spec:ext"].invoke
|
16
|
-
end
|
17
|
-
|
18
|
-
namespace :spec do
|
19
|
-
desc "Run all specs against ffi extension"
|
20
|
-
RSpec::Core::RakeTask.new(:ffi) do |t|
|
21
|
-
ENV['FORCE_FFI_YAJL'] = "ffi"
|
22
|
-
t.pattern = FileList['spec/**/*_spec.rb']
|
23
|
-
end
|
24
|
-
if !defined?(RUBY_ENGINE) || RUBY_ENGINE !~ /jruby/
|
25
|
-
desc "Run all specs again c extension"
|
26
|
-
RSpec::Core::RakeTask.new(:ext) do |t|
|
27
|
-
ENV['FORCE_FFI_YAJL'] = "ext"
|
28
|
-
t.pattern = FileList['spec/**/*_spec.rb']
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
11
|
desc "Build it and ship it"
|
34
12
|
task :ship => [:clean, :gem] do
|
35
13
|
sh("git tag #{FFI_Yajl::VERSION}")
|
@@ -56,13 +34,6 @@ end
|
|
56
34
|
|
57
35
|
spec = Gem::Specification.load('ffi-yajl.gemspec')
|
58
36
|
|
59
|
-
Rake::ExtensionTask.new do |ext|
|
60
|
-
ext.name = 'libyajl'
|
61
|
-
ext.lib_dir = 'lib'
|
62
|
-
ext.ext_dir = 'ext/libyajl2'
|
63
|
-
ext.gem_spec = spec
|
64
|
-
end
|
65
|
-
|
66
37
|
Rake::ExtensionTask.new do |ext|
|
67
38
|
ext.name = 'encoder'
|
68
39
|
ext.lib_dir = 'lib/ffi_yajl/ext'
|
@@ -76,3 +47,116 @@ Rake::ExtensionTask.new do |ext|
|
|
76
47
|
ext.ext_dir = 'ext/ffi_yajl/ext/parser'
|
77
48
|
ext.gem_spec = spec
|
78
49
|
end
|
50
|
+
|
51
|
+
#
|
52
|
+
# test tasks
|
53
|
+
#
|
54
|
+
|
55
|
+
desc "Run all specs against both extensions"
|
56
|
+
task :spec do
|
57
|
+
Rake::Task["spec:ffi"].invoke
|
58
|
+
Rake::Task["spec:ext"].invoke
|
59
|
+
end
|
60
|
+
|
61
|
+
namespace :spec do
|
62
|
+
desc "Run all specs against ffi extension"
|
63
|
+
RSpec::Core::RakeTask.new(:ffi) do |t|
|
64
|
+
ENV['FORCE_FFI_YAJL'] = "ffi"
|
65
|
+
t.pattern = FileList['spec/**/*_spec.rb']
|
66
|
+
end
|
67
|
+
if !defined?(RUBY_ENGINE) || RUBY_ENGINE !~ /jruby/
|
68
|
+
desc "Run all specs again c extension"
|
69
|
+
RSpec::Core::RakeTask.new(:ext) do |t|
|
70
|
+
ENV['FORCE_FFI_YAJL'] = "ext"
|
71
|
+
t.pattern = FileList['spec/**/*_spec.rb']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
if RUBY_VERSION.to_f >= 1.9
|
77
|
+
namespace :integration do
|
78
|
+
begin
|
79
|
+
require 'kitchen'
|
80
|
+
rescue LoadError
|
81
|
+
task :vagrant do
|
82
|
+
puts "test-kitchen gem is not installed"
|
83
|
+
end
|
84
|
+
task :cloud do
|
85
|
+
puts "test-kitchen gem is not installed"
|
86
|
+
end
|
87
|
+
else
|
88
|
+
desc 'Run Test Kitchen with Vagrant'
|
89
|
+
task :vagrant do
|
90
|
+
Kitchen.logger = Kitchen.default_file_logger
|
91
|
+
Kitchen::Config.new.instances.each do |instance|
|
92
|
+
instance.test(:always)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
desc 'Run Test Kitchen with cloud plugins'
|
97
|
+
task :cloud do
|
98
|
+
if ENV['TRAVIS_PULL_REQUEST'] != 'true'
|
99
|
+
ENV['KITCHEN_YAML'] = '.kitchen.cloud.yml'
|
100
|
+
sh "kitchen test --concurrency 4"
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
namespace :style do
|
106
|
+
desc 'Run Ruby style checks'
|
107
|
+
begin
|
108
|
+
require 'rubocop/rake_task'
|
109
|
+
rescue LoadError
|
110
|
+
task :rubocop do
|
111
|
+
puts "rubocop gem is not installed"
|
112
|
+
end
|
113
|
+
else
|
114
|
+
Rubocop::RakeTask.new(:rubocop) do |t|
|
115
|
+
t.fail_on_error = false
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
desc 'Run Ruby smell checks'
|
120
|
+
begin
|
121
|
+
require 'reek/rake/task'
|
122
|
+
rescue LoadError
|
123
|
+
task :reek do
|
124
|
+
puts "reek gem is not installed"
|
125
|
+
end
|
126
|
+
else
|
127
|
+
Reek::Rake::Task.new(:reek) do |t|
|
128
|
+
t.fail_on_error = false
|
129
|
+
# t.config_files = '.reek.yml'
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
else
|
134
|
+
namespace :integration do
|
135
|
+
task :vagrant do
|
136
|
+
puts "test-kitchen unsupported on ruby 1.8"
|
137
|
+
end
|
138
|
+
task :cloud do
|
139
|
+
puts "test-kitchen unsupported on ruby 1.8"
|
140
|
+
end
|
141
|
+
end
|
142
|
+
namespace :style do
|
143
|
+
task :rubocop do
|
144
|
+
puts "rubocop unsupported on ruby 1.8"
|
145
|
+
end
|
146
|
+
task :reek do
|
147
|
+
puts "reek unsupported on ruby 1.8"
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
|
153
|
+
desc 'Run all style checks'
|
154
|
+
task :style => ['style:rubocop', 'style:reek']
|
155
|
+
|
156
|
+
desc 'Run style + spec tests by default on travis'
|
157
|
+
task :travis => ['style', 'spec']
|
158
|
+
|
159
|
+
desc 'Run style, spec and test kichen on travis'
|
160
|
+
task :travis_all => ['style', 'spec', 'integration:cloud']
|
161
|
+
|
162
|
+
task :default => ['style', 'spec', 'integration:vagrant']
|
@@ -1,16 +1,16 @@
|
|
1
1
|
require 'mkmf'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'libyajl2'
|
2
4
|
|
3
5
|
# the customer is always right, ruby is always compiled to be stupid
|
4
6
|
$CFLAGS = ENV['CFLAGS'] if ENV['CFLAGS']
|
5
7
|
$LDFLAGS = ENV['LDFLAGS'] if ENV['LDFLAGS']
|
6
8
|
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
7
9
|
|
8
|
-
#
|
9
|
-
|
10
|
-
$
|
11
|
-
$LDFLAGS = "-L#{gem_root}/lib #{$CFLAGS}"
|
10
|
+
# pick up the vendored libyajl2 out of the libyajl2 gem
|
11
|
+
$CFLAGS = "-I#{Libyajl2.include_path} -L#{Libyajl2.opt_path} #{$CFLAGS}"
|
12
|
+
$LDFLAGS = "-L#{Libyajl2.opt_path} #{$CFLAGS}"
|
12
13
|
|
13
|
-
puts gem_root
|
14
14
|
puts $CFLAGS
|
15
15
|
puts $LDFLAGS
|
16
16
|
|
@@ -1,16 +1,16 @@
|
|
1
1
|
require 'mkmf'
|
2
|
+
require 'rubygems'
|
3
|
+
require 'libyajl2'
|
2
4
|
|
3
5
|
# the customer is always right, ruby is always compiled to be stupid
|
4
6
|
$CFLAGS = ENV['CFLAGS'] if ENV['CFLAGS']
|
5
7
|
$LDFLAGS = ENV['LDFLAGS'] if ENV['LDFLAGS']
|
6
8
|
RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
|
7
9
|
|
8
|
-
#
|
9
|
-
|
10
|
-
$
|
11
|
-
$LDFLAGS = "-L#{gem_root}/lib #{$CFLAGS}"
|
10
|
+
# pick up the vendored libyajl2 out of the libyajl2 gem
|
11
|
+
$CFLAGS = "-I#{Libyajl2.include_path} -L#{Libyajl2.opt_path} #{$CFLAGS}"
|
12
|
+
$LDFLAGS = "-L#{Libyajl2.opt_path} #{$CFLAGS}"
|
12
13
|
|
13
|
-
puts gem_root
|
14
14
|
puts $CFLAGS
|
15
15
|
puts $LDFLAGS
|
16
16
|
|
data/lib/ffi_yajl/ffi.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
|
3
|
+
require 'libyajl2'
|
3
4
|
require 'ffi'
|
4
5
|
|
5
6
|
module FFI_Yajl
|
6
7
|
extend ::FFI::Library
|
7
8
|
|
8
9
|
libname = ::FFI.map_library_name("yajl")
|
9
|
-
libpath = File.expand_path(File.join(
|
10
|
+
libpath = File.expand_path(File.join(Libyajl2.opt_path, libname))
|
10
11
|
|
11
12
|
if File.file?(libpath)
|
12
13
|
# use our vendored version of libyajl2 if we find it installed
|
data/lib/ffi_yajl/version.rb
CHANGED
@@ -7,17 +7,17 @@ describe "FFI_Yajl::Encoder" do
|
|
7
7
|
let(:encoder) { FFI_Yajl::Encoder.new }
|
8
8
|
|
9
9
|
it "encodes fixnums in keys as strings" do
|
10
|
-
ruby = {1 => 2}
|
10
|
+
ruby = { 1 => 2 }
|
11
11
|
expect(encoder.encode(ruby)).to eq('{"1":2}')
|
12
12
|
end
|
13
13
|
|
14
14
|
it "encodes floats in keys as strings" do
|
15
|
-
ruby = {1.1 => 2}
|
15
|
+
ruby = { 1.1 => 2 }
|
16
16
|
expect(encoder.encode(ruby)).to eq('{"1.1":2}')
|
17
17
|
end
|
18
18
|
|
19
19
|
it "encodes bignums in keys as strings" do
|
20
|
-
ruby = {12345678901234567890 => 2}
|
20
|
+
ruby = { 12345678901234567890 => 2 }
|
21
21
|
expect(encoder.encode(ruby)).to eq('{"12345678901234567890":2}')
|
22
22
|
end
|
23
23
|
|
@@ -37,17 +37,17 @@ describe "FFI_Yajl::Encoder" do
|
|
37
37
|
end
|
38
38
|
|
39
39
|
it "encodes symbols in keys as strings" do
|
40
|
-
ruby = {:thing => 1}
|
40
|
+
ruby = { :thing => 1 }
|
41
41
|
expect(encoder.encode(ruby)).to eq('{"thing":1}')
|
42
42
|
end
|
43
43
|
|
44
44
|
it "encodes symbols in values as strings" do
|
45
|
-
ruby = {"thing" => :one}
|
45
|
+
ruby = { "thing" => :one }
|
46
46
|
expect(encoder.encode(ruby)).to eq('{"thing":"one"}')
|
47
47
|
end
|
48
48
|
|
49
49
|
it "can encode 32-bit unsigned ints" do
|
50
|
-
ruby = {"gid"=>4294967294}
|
50
|
+
ruby = { "gid"=>4294967294 }
|
51
51
|
expect(encoder.encode(ruby)).to eq('{"gid":4294967294}')
|
52
52
|
end
|
53
53
|
|
@@ -39,7 +39,7 @@ describe "JSON Gem Compat API" do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
it "should not mixin #to_json on a hash" do
|
42
|
-
expect({:foo => "bar"}.respond_to?(:to_json)).to be_false
|
42
|
+
expect({ :foo => "bar" }.respond_to?(:to_json)).to be_false
|
43
43
|
end
|
44
44
|
|
45
45
|
it "should not mixin #to_json on a trueclass" do
|
@@ -90,13 +90,13 @@ describe "JSON Gem Compat API" do
|
|
90
90
|
after(:all) { JSON.default_options[:symbolize_keys] = @saved_default }
|
91
91
|
|
92
92
|
it "the default behavior should be to not symbolize keys" do
|
93
|
-
expect(JSON.parse('{"foo": 1234}')).to eq(
|
93
|
+
expect(JSON.parse('{"foo": 1234}')).to eq( "foo" => 1234 )
|
94
94
|
end
|
95
95
|
|
96
96
|
it "changing the default_options should change the behavior to true" do
|
97
97
|
pending("implement symbolize keys")
|
98
98
|
JSON.default_options[:symbolize_keys] = true
|
99
|
-
expect(JSON.parse('{"foo": 1234}')).to eq(
|
99
|
+
expect(JSON.parse('{"foo": 1234}')).to eq( :foo => 1234 )
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
@@ -105,24 +105,24 @@ describe "JSON Gem Compat API" do
|
|
105
105
|
after(:all) { JSON.default_options[:symbolize_names] = @saved_default }
|
106
106
|
|
107
107
|
it "the default behavior should be to not symbolize keys" do
|
108
|
-
expect(JSON.parse('{"foo": 1234}')).to eq(
|
108
|
+
expect(JSON.parse('{"foo": 1234}')).to eq( "foo" => 1234 )
|
109
109
|
end
|
110
110
|
|
111
111
|
it "changing the default_options should change the behavior to true" do
|
112
112
|
pending("implement symbolize keys")
|
113
113
|
JSON.default_options[:symbolize_names] = true
|
114
|
-
expect(JSON.parse('{"foo": 1234}')).to eq(
|
114
|
+
expect(JSON.parse('{"foo": 1234}')).to eq( :foo => 1234 )
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
118
118
|
it "should support passing symbolize_names to JSON.parse" do
|
119
119
|
pending("implement symbolize keys")
|
120
|
-
expect(JSON.parse('{"foo": 1234}', :symbolize_names => true)).to eq(
|
120
|
+
expect(JSON.parse('{"foo": 1234}', :symbolize_names => true)).to eq( :foo => 1234 )
|
121
121
|
end
|
122
122
|
|
123
123
|
it "should support passing symbolize_keys to JSON.parse" do
|
124
124
|
pending("implement symbolize keys")
|
125
|
-
expect(JSON.parse('{"foo": 1234}', :symbolize_keys => true)).to eq(
|
125
|
+
expect(JSON.parse('{"foo": 1234}', :symbolize_keys => true)).to eq( :foo => 1234 )
|
126
126
|
end
|
127
127
|
|
128
128
|
context "when encode arbitrary classes via their default to_json method" do
|
@@ -267,7 +267,7 @@ describe "JSON Gem Compat API" do
|
|
267
267
|
end
|
268
268
|
|
269
269
|
it "Hash#to_json should work" do
|
270
|
-
expect({"a"=>"b"}.to_json).to eq(%Q{{"a":"b"}})
|
270
|
+
expect({ "a"=>"b" }.to_json).to eq(%Q{{"a":"b"}})
|
271
271
|
end
|
272
272
|
|
273
273
|
it "Fixnum#to_json should work" do
|
@@ -305,7 +305,7 @@ describe "JSON Gem Compat API" do
|
|
305
305
|
'e' => { 'foo' => 'bar' },
|
306
306
|
'g' => "blah",
|
307
307
|
'h' => 1000.0,
|
308
|
-
'i' => 0.001
|
308
|
+
'i' => 0.001,
|
309
309
|
}
|
310
310
|
|
311
311
|
@json2 = '{"a":2,"b":3.141,"c":"c","d":[1,"b",3.14],"e":{"foo":"bar"},"g":"blah","h":1000.0,"i":0.001}'
|
@@ -329,10 +329,10 @@ describe "JSON Gem Compat API" do
|
|
329
329
|
expect(JSON.parse(@json2)).to eq(JSON.parse(json))
|
330
330
|
parsed_json = JSON.parse(json)
|
331
331
|
expect(@hash).to eq(parsed_json)
|
332
|
-
json = JSON.generate(
|
332
|
+
json = JSON.generate( 1=>2 )
|
333
333
|
expect('{"1":2}').to eql(json)
|
334
334
|
parsed_json = JSON.parse(json)
|
335
|
-
expect(
|
335
|
+
expect( "1"=>2 ).to eq(parsed_json)
|
336
336
|
end
|
337
337
|
|
338
338
|
it "should be able to unparse pretty" do
|
@@ -340,11 +340,11 @@ describe "JSON Gem Compat API" do
|
|
340
340
|
expect(JSON.parse(@json3)).to eq(JSON.parse(json))
|
341
341
|
parsed_json = JSON.parse(json)
|
342
342
|
expect(@hash).to eq(parsed_json)
|
343
|
-
json = JSON.pretty_generate(
|
343
|
+
json = JSON.pretty_generate( 1=>2 )
|
344
344
|
test = "{\n \"1\": 2\n}".chomp
|
345
345
|
expect(test).to eq(json)
|
346
346
|
parsed_json = JSON.parse(json)
|
347
|
-
expect(
|
347
|
+
expect( "1"=>2 ).to eq(parsed_json)
|
348
348
|
end
|
349
349
|
|
350
350
|
it "JSON.generate should handle nil second argument" do
|
@@ -29,49 +29,49 @@ describe "FFI_Yajl::Parser" do
|
|
29
29
|
context "when parsing floats" do
|
30
30
|
it "parses simple floating point values" do
|
31
31
|
json = '{"foo": 3.14159265358979}'
|
32
|
-
expect(parser.parse(json)).to eql(
|
32
|
+
expect(parser.parse(json)).to eql( "foo" => 3.14159265358979 )
|
33
33
|
end
|
34
34
|
|
35
35
|
it "parses simple negative floating point values" do
|
36
36
|
json = '{"foo":-2.00231930436153}'
|
37
|
-
expect(parser.parse(json)).to eql(
|
37
|
+
expect(parser.parse(json)).to eql( "foo" => -2.00231930436153 )
|
38
38
|
end
|
39
39
|
|
40
40
|
it "parses floats with negative exponents and a large E" do
|
41
41
|
json = '{"foo": 1.602176565E-19}'
|
42
|
-
expect(parser.parse(json)).to eql(
|
42
|
+
expect(parser.parse(json)).to eql( "foo" => 1.602176565e-19 )
|
43
43
|
end
|
44
44
|
|
45
45
|
it "parses floats with negative exponents and a small e" do
|
46
46
|
json = '{"foo": 6.6260689633e-34 }'
|
47
|
-
expect(parser.parse(json)).to eql(
|
47
|
+
expect(parser.parse(json)).to eql( "foo" => 6.6260689633e-34 )
|
48
48
|
end
|
49
49
|
|
50
50
|
it "parses floats with positive exponents and a large E" do
|
51
51
|
json = '{"foo": 6.0221413E+23}'
|
52
|
-
expect(parser.parse(json)).to eql(
|
52
|
+
expect(parser.parse(json)).to eql( "foo" => 6.0221413e+23 )
|
53
53
|
end
|
54
54
|
|
55
55
|
it "parses floats with positive exponents and a small e" do
|
56
56
|
json = '{"foo": 8.9875517873681764e+9 }'
|
57
|
-
expect(parser.parse(json)).to eql(
|
57
|
+
expect(parser.parse(json)).to eql( "foo" => 8.9875517873681764e+9 )
|
58
58
|
end
|
59
59
|
|
60
60
|
it "parses floats with an exponent without a sign and a large E" do
|
61
61
|
json = '{"foo": 2.99792458E8 }'
|
62
|
-
expect(parser.parse(json)).to eql(
|
62
|
+
expect(parser.parse(json)).to eql( "foo" => 2.99792458e+8 )
|
63
63
|
end
|
64
64
|
|
65
65
|
it "parses floats with an exponent without a sign and a small e" do
|
66
66
|
json = '{"foo": 1.0973731568539e7 }'
|
67
|
-
expect(parser.parse(json)).to eql(
|
67
|
+
expect(parser.parse(json)).to eql( "foo" => 1.0973731568539e+7 )
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
71
|
context "when parsing unicode in hash keys" do
|
72
72
|
it "handles heavy metal umlauts in keys" do
|
73
73
|
json = '{"München": "Bayern"}'
|
74
|
-
expect(parser.parse(json)).to eql(
|
74
|
+
expect(parser.parse(json)).to eql( "München" => "Bayern" )
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-yajl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: universal-java
|
6
6
|
authors:
|
7
7
|
- Lamont Granquist
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -80,12 +80,25 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '1.9'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: libyajl2
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
description: Ruby FFI wrapper around YAJL 2.x
|
84
98
|
email: lamont@scriptkiddie.org
|
85
99
|
executables:
|
86
100
|
- ffi-yajl-bench
|
87
|
-
extensions:
|
88
|
-
- ext/libyajl2/extconf.rb
|
101
|
+
extensions: []
|
89
102
|
extra_rdoc_files:
|
90
103
|
- README.md
|
91
104
|
- LICENSE
|
@@ -98,173 +111,6 @@ files:
|
|
98
111
|
- ext/ffi_yajl/ext/encoder/extconf.rb
|
99
112
|
- ext/ffi_yajl/ext/parser/extconf.rb
|
100
113
|
- ext/ffi_yajl/ext/parser/parser.c
|
101
|
-
- ext/libyajl2/extconf.rb
|
102
|
-
- ext/libyajl2/vendored/.git
|
103
|
-
- ext/libyajl2/vendored/.gitignore
|
104
|
-
- ext/libyajl2/vendored/BUILDING
|
105
|
-
- ext/libyajl2/vendored/BUILDING.win32
|
106
|
-
- ext/libyajl2/vendored/CMakeLists.txt
|
107
|
-
- ext/libyajl2/vendored/COPYING
|
108
|
-
- ext/libyajl2/vendored/ChangeLog
|
109
|
-
- ext/libyajl2/vendored/README
|
110
|
-
- ext/libyajl2/vendored/TODO
|
111
|
-
- ext/libyajl2/vendored/YAJLDoc.cmake
|
112
|
-
- ext/libyajl2/vendored/configure
|
113
|
-
- ext/libyajl2/vendored/example/CMakeLists.txt
|
114
|
-
- ext/libyajl2/vendored/example/README.md
|
115
|
-
- ext/libyajl2/vendored/example/parse_config.c
|
116
|
-
- ext/libyajl2/vendored/example/sample.config
|
117
|
-
- ext/libyajl2/vendored/perf/CMakeLists.txt
|
118
|
-
- ext/libyajl2/vendored/perf/documents.c
|
119
|
-
- ext/libyajl2/vendored/perf/documents.h
|
120
|
-
- ext/libyajl2/vendored/perf/perftest.c
|
121
|
-
- ext/libyajl2/vendored/reformatter/CMakeLists.txt
|
122
|
-
- ext/libyajl2/vendored/reformatter/json_reformat.c
|
123
|
-
- ext/libyajl2/vendored/src/CMakeLists.txt
|
124
|
-
- ext/libyajl2/vendored/src/YAJL.dxy
|
125
|
-
- ext/libyajl2/vendored/src/api/yajl_common.h
|
126
|
-
- ext/libyajl2/vendored/src/api/yajl_gen.h
|
127
|
-
- ext/libyajl2/vendored/src/api/yajl_parse.h
|
128
|
-
- ext/libyajl2/vendored/src/api/yajl_tree.h
|
129
|
-
- ext/libyajl2/vendored/src/api/yajl_version.h.cmake
|
130
|
-
- ext/libyajl2/vendored/src/yajl
|
131
|
-
- ext/libyajl2/vendored/src/yajl.c
|
132
|
-
- ext/libyajl2/vendored/src/yajl.pc.cmake
|
133
|
-
- ext/libyajl2/vendored/src/yajl_alloc.c
|
134
|
-
- ext/libyajl2/vendored/src/yajl_alloc.h
|
135
|
-
- ext/libyajl2/vendored/src/yajl_buf.c
|
136
|
-
- ext/libyajl2/vendored/src/yajl_buf.h
|
137
|
-
- ext/libyajl2/vendored/src/yajl_bytestack.h
|
138
|
-
- ext/libyajl2/vendored/src/yajl_encode.c
|
139
|
-
- ext/libyajl2/vendored/src/yajl_encode.h
|
140
|
-
- ext/libyajl2/vendored/src/yajl_gen.c
|
141
|
-
- ext/libyajl2/vendored/src/yajl_lex.c
|
142
|
-
- ext/libyajl2/vendored/src/yajl_lex.h
|
143
|
-
- ext/libyajl2/vendored/src/yajl_parser.c
|
144
|
-
- ext/libyajl2/vendored/src/yajl_parser.h
|
145
|
-
- ext/libyajl2/vendored/src/yajl_tree.c
|
146
|
-
- ext/libyajl2/vendored/src/yajl_version.c
|
147
|
-
- ext/libyajl2/vendored/test/CMakeLists.txt
|
148
|
-
- ext/libyajl2/vendored/test/cases/ac_difficult_json_c_test_case_with_comments.json
|
149
|
-
- ext/libyajl2/vendored/test/cases/ac_difficult_json_c_test_case_with_comments.json.gold
|
150
|
-
- ext/libyajl2/vendored/test/cases/ac_simple_with_comments.json
|
151
|
-
- ext/libyajl2/vendored/test/cases/ac_simple_with_comments.json.gold
|
152
|
-
- ext/libyajl2/vendored/test/cases/ag_false_then_garbage.json
|
153
|
-
- ext/libyajl2/vendored/test/cases/ag_false_then_garbage.json.gold
|
154
|
-
- ext/libyajl2/vendored/test/cases/ag_null_then_garbage.json
|
155
|
-
- ext/libyajl2/vendored/test/cases/ag_null_then_garbage.json.gold
|
156
|
-
- ext/libyajl2/vendored/test/cases/ag_true_then_garbage.json
|
157
|
-
- ext/libyajl2/vendored/test/cases/ag_true_then_garbage.json.gold
|
158
|
-
- ext/libyajl2/vendored/test/cases/am_eof.json
|
159
|
-
- ext/libyajl2/vendored/test/cases/am_eof.json.gold
|
160
|
-
- ext/libyajl2/vendored/test/cases/am_integers.json
|
161
|
-
- ext/libyajl2/vendored/test/cases/am_integers.json.gold
|
162
|
-
- ext/libyajl2/vendored/test/cases/am_multiple.json
|
163
|
-
- ext/libyajl2/vendored/test/cases/am_multiple.json.gold
|
164
|
-
- ext/libyajl2/vendored/test/cases/am_stuff.json
|
165
|
-
- ext/libyajl2/vendored/test/cases/am_stuff.json.gold
|
166
|
-
- ext/libyajl2/vendored/test/cases/ap_array_open.json
|
167
|
-
- ext/libyajl2/vendored/test/cases/ap_array_open.json.gold
|
168
|
-
- ext/libyajl2/vendored/test/cases/ap_eof_str.json
|
169
|
-
- ext/libyajl2/vendored/test/cases/ap_eof_str.json.gold
|
170
|
-
- ext/libyajl2/vendored/test/cases/ap_map_open.json
|
171
|
-
- ext/libyajl2/vendored/test/cases/ap_map_open.json.gold
|
172
|
-
- ext/libyajl2/vendored/test/cases/ap_partial_ok.json
|
173
|
-
- ext/libyajl2/vendored/test/cases/ap_partial_ok.json.gold
|
174
|
-
- ext/libyajl2/vendored/test/cases/array.json
|
175
|
-
- ext/libyajl2/vendored/test/cases/array.json.gold
|
176
|
-
- ext/libyajl2/vendored/test/cases/array_close.json
|
177
|
-
- ext/libyajl2/vendored/test/cases/array_close.json.gold
|
178
|
-
- ext/libyajl2/vendored/test/cases/bignums.json
|
179
|
-
- ext/libyajl2/vendored/test/cases/bignums.json.gold
|
180
|
-
- ext/libyajl2/vendored/test/cases/bogus_char.json
|
181
|
-
- ext/libyajl2/vendored/test/cases/bogus_char.json.gold
|
182
|
-
- ext/libyajl2/vendored/test/cases/codepoints_from_unicode_org.json
|
183
|
-
- ext/libyajl2/vendored/test/cases/codepoints_from_unicode_org.json.gold
|
184
|
-
- ext/libyajl2/vendored/test/cases/deep_arrays.json
|
185
|
-
- ext/libyajl2/vendored/test/cases/deep_arrays.json.gold
|
186
|
-
- ext/libyajl2/vendored/test/cases/difficult_json_c_test_case.json
|
187
|
-
- ext/libyajl2/vendored/test/cases/difficult_json_c_test_case.json.gold
|
188
|
-
- ext/libyajl2/vendored/test/cases/doubles.json
|
189
|
-
- ext/libyajl2/vendored/test/cases/doubles.json.gold
|
190
|
-
- ext/libyajl2/vendored/test/cases/doubles_in_array.json
|
191
|
-
- ext/libyajl2/vendored/test/cases/doubles_in_array.json.gold
|
192
|
-
- ext/libyajl2/vendored/test/cases/empty_array.json
|
193
|
-
- ext/libyajl2/vendored/test/cases/empty_array.json.gold
|
194
|
-
- ext/libyajl2/vendored/test/cases/empty_string.json
|
195
|
-
- ext/libyajl2/vendored/test/cases/empty_string.json.gold
|
196
|
-
- ext/libyajl2/vendored/test/cases/escaped_bulgarian.json
|
197
|
-
- ext/libyajl2/vendored/test/cases/escaped_bulgarian.json.gold
|
198
|
-
- ext/libyajl2/vendored/test/cases/escaped_foobar.json
|
199
|
-
- ext/libyajl2/vendored/test/cases/escaped_foobar.json.gold
|
200
|
-
- ext/libyajl2/vendored/test/cases/false.json
|
201
|
-
- ext/libyajl2/vendored/test/cases/false.json.gold
|
202
|
-
- ext/libyajl2/vendored/test/cases/fg_false_then_garbage.json
|
203
|
-
- ext/libyajl2/vendored/test/cases/fg_false_then_garbage.json.gold
|
204
|
-
- ext/libyajl2/vendored/test/cases/fg_issue_7.json
|
205
|
-
- ext/libyajl2/vendored/test/cases/fg_issue_7.json.gold
|
206
|
-
- ext/libyajl2/vendored/test/cases/fg_null_then_garbage.json
|
207
|
-
- ext/libyajl2/vendored/test/cases/fg_null_then_garbage.json.gold
|
208
|
-
- ext/libyajl2/vendored/test/cases/fg_true_then_garbage.json
|
209
|
-
- ext/libyajl2/vendored/test/cases/fg_true_then_garbage.json.gold
|
210
|
-
- ext/libyajl2/vendored/test/cases/four_byte_utf8.json
|
211
|
-
- ext/libyajl2/vendored/test/cases/four_byte_utf8.json.gold
|
212
|
-
- ext/libyajl2/vendored/test/cases/high_overflow.json
|
213
|
-
- ext/libyajl2/vendored/test/cases/high_overflow.json.gold
|
214
|
-
- ext/libyajl2/vendored/test/cases/integers.json
|
215
|
-
- ext/libyajl2/vendored/test/cases/integers.json.gold
|
216
|
-
- ext/libyajl2/vendored/test/cases/invalid_utf8.json
|
217
|
-
- ext/libyajl2/vendored/test/cases/invalid_utf8.json.gold
|
218
|
-
- ext/libyajl2/vendored/test/cases/isolated_surrogate_marker.json
|
219
|
-
- ext/libyajl2/vendored/test/cases/isolated_surrogate_marker.json.gold
|
220
|
-
- ext/libyajl2/vendored/test/cases/leading_zero_in_number.json
|
221
|
-
- ext/libyajl2/vendored/test/cases/leading_zero_in_number.json.gold
|
222
|
-
- ext/libyajl2/vendored/test/cases/lonely_minus_sign.json
|
223
|
-
- ext/libyajl2/vendored/test/cases/lonely_minus_sign.json.gold
|
224
|
-
- ext/libyajl2/vendored/test/cases/lonely_number.json
|
225
|
-
- ext/libyajl2/vendored/test/cases/lonely_number.json.gold
|
226
|
-
- ext/libyajl2/vendored/test/cases/low_overflow.json
|
227
|
-
- ext/libyajl2/vendored/test/cases/low_overflow.json.gold
|
228
|
-
- ext/libyajl2/vendored/test/cases/map_close.json
|
229
|
-
- ext/libyajl2/vendored/test/cases/map_close.json.gold
|
230
|
-
- ext/libyajl2/vendored/test/cases/missing_integer_after_decimal_point.json
|
231
|
-
- ext/libyajl2/vendored/test/cases/missing_integer_after_decimal_point.json.gold
|
232
|
-
- ext/libyajl2/vendored/test/cases/missing_integer_after_exponent.json
|
233
|
-
- ext/libyajl2/vendored/test/cases/missing_integer_after_exponent.json.gold
|
234
|
-
- ext/libyajl2/vendored/test/cases/multiple.json
|
235
|
-
- ext/libyajl2/vendored/test/cases/multiple.json.gold
|
236
|
-
- ext/libyajl2/vendored/test/cases/non_utf8_char_in_string.json
|
237
|
-
- ext/libyajl2/vendored/test/cases/non_utf8_char_in_string.json.gold
|
238
|
-
- ext/libyajl2/vendored/test/cases/np_partial_bad.json
|
239
|
-
- ext/libyajl2/vendored/test/cases/np_partial_bad.json.gold
|
240
|
-
- ext/libyajl2/vendored/test/cases/null.json
|
241
|
-
- ext/libyajl2/vendored/test/cases/null.json.gold
|
242
|
-
- ext/libyajl2/vendored/test/cases/nulls_and_bools.json
|
243
|
-
- ext/libyajl2/vendored/test/cases/nulls_and_bools.json.gold
|
244
|
-
- ext/libyajl2/vendored/test/cases/simple.json
|
245
|
-
- ext/libyajl2/vendored/test/cases/simple.json.gold
|
246
|
-
- ext/libyajl2/vendored/test/cases/simple_with_comments.json
|
247
|
-
- ext/libyajl2/vendored/test/cases/simple_with_comments.json.gold
|
248
|
-
- ext/libyajl2/vendored/test/cases/string_invalid_escape.json
|
249
|
-
- ext/libyajl2/vendored/test/cases/string_invalid_escape.json.gold
|
250
|
-
- ext/libyajl2/vendored/test/cases/string_invalid_hex_char.json
|
251
|
-
- ext/libyajl2/vendored/test/cases/string_invalid_hex_char.json.gold
|
252
|
-
- ext/libyajl2/vendored/test/cases/string_with_escapes.json
|
253
|
-
- ext/libyajl2/vendored/test/cases/string_with_escapes.json.gold
|
254
|
-
- ext/libyajl2/vendored/test/cases/string_with_invalid_newline.json
|
255
|
-
- ext/libyajl2/vendored/test/cases/string_with_invalid_newline.json.gold
|
256
|
-
- ext/libyajl2/vendored/test/cases/three_byte_utf8.json
|
257
|
-
- ext/libyajl2/vendored/test/cases/three_byte_utf8.json.gold
|
258
|
-
- ext/libyajl2/vendored/test/cases/true.json
|
259
|
-
- ext/libyajl2/vendored/test/cases/true.json.gold
|
260
|
-
- ext/libyajl2/vendored/test/cases/unescaped_bulgarian.json
|
261
|
-
- ext/libyajl2/vendored/test/cases/unescaped_bulgarian.json.gold
|
262
|
-
- ext/libyajl2/vendored/test/cases/zerobyte.json
|
263
|
-
- ext/libyajl2/vendored/test/cases/zerobyte.json.gold
|
264
|
-
- ext/libyajl2/vendored/test/run_tests.sh
|
265
|
-
- ext/libyajl2/vendored/test/yajl_test.c
|
266
|
-
- ext/libyajl2/vendored/verify/CMakeLists.txt
|
267
|
-
- ext/libyajl2/vendored/verify/json_verify.c
|
268
114
|
- lib/ffi_yajl.rb
|
269
115
|
- lib/ffi_yajl/benchmark.rb
|
270
116
|
- lib/ffi_yajl/benchmark/MIT-LICENSE
|
@@ -295,10 +141,6 @@ files:
|
|
295
141
|
- lib/ffi_yajl/json_gem.rb
|
296
142
|
- lib/ffi_yajl/parser.rb
|
297
143
|
- lib/ffi_yajl/version.rb
|
298
|
-
- lib/libyajl.so
|
299
|
-
- lib/libyajl.so.2
|
300
|
-
- lib/libyajl.so.2.0.5
|
301
|
-
- lib/libyajl_s.a
|
302
144
|
- spec/ffi_yajl/encoder_spec.rb
|
303
145
|
- spec/ffi_yajl/json_gem_spec.rb
|
304
146
|
- spec/ffi_yajl/parser_spec.rb
|