ffi-yajl 2.3.1 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +11 -6
- data/ext/ffi_yajl/ext/encoder/extconf.rb +2 -2
- data/ext/ffi_yajl/ext/parser/extconf.rb +2 -2
- data/lib/ffi_yajl.rb +5 -5
- data/lib/ffi_yajl/benchmark/encode.rb +1 -1
- data/lib/ffi_yajl/benchmark/encode_profile.rb +1 -1
- data/lib/ffi_yajl/benchmark/parse.rb +1 -1
- data/lib/ffi_yajl/benchmark/parse_profile.rb +1 -1
- data/lib/ffi_yajl/benchmark/parse_profile_ruby_prof.rb +1 -1
- data/lib/ffi_yajl/benchmark/parse_stream.rb +2 -2
- data/lib/ffi_yajl/ext.rb +3 -3
- data/lib/ffi_yajl/ffi.rb +33 -33
- data/lib/ffi_yajl/ffi/encoder.rb +2 -0
- data/lib/ffi_yajl/ffi/parser.rb +9 -8
- data/lib/ffi_yajl/map_library_name.rb +3 -3
- data/lib/ffi_yajl/version.rb +1 -1
- metadata +3 -9
- data/Rakefile +0 -139
- data/spec/ffi_yajl/encoder_spec.rb +0 -221
- data/spec/ffi_yajl/map_library_name_spec.rb +0 -115
- data/spec/ffi_yajl/parser_spec.rb +0 -569
- data/spec/spec_helper.rb +0 -45
data/spec/spec_helper.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
# Copyright (c) 2015 Lamont Granquist
|
2
|
-
# Copyright (c) 2015 Chef Software, Inc.
|
3
|
-
#
|
4
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
5
|
-
# a copy of this software and associated documentation files (the
|
6
|
-
# "Software"), to deal in the Software without restriction, including
|
7
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
8
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
10
|
-
# the following conditions:
|
11
|
-
#
|
12
|
-
# The above copyright notice and this permission notice shall be
|
13
|
-
# included in all copies or substantial portions of the Software.
|
14
|
-
#
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
-
|
23
|
-
$LOAD_PATH << File.expand_path(File.join(File.dirname( __FILE__ ), "../lib"))
|
24
|
-
|
25
|
-
# load yajl-ruby into the same process (tests that both c-libs can be
|
26
|
-
# linked in the same process). this should work, see:
|
27
|
-
# http://stackoverflow.com/questions/3232822/linking-with-multiple-versions-of-a-library
|
28
|
-
begin
|
29
|
-
require "yajl"
|
30
|
-
rescue LoadError
|
31
|
-
puts "WARN: yajl cannot be loaded, expected if this is jruby"
|
32
|
-
end
|
33
|
-
|
34
|
-
require "ffi_yajl"
|
35
|
-
|
36
|
-
RSpec.configure do |conf|
|
37
|
-
conf.filter_run_excluding unix_only: true unless RUBY_PLATFORM !~ /mswin|mingw|windows/
|
38
|
-
conf.filter_run_excluding ruby_gte_193: true unless RUBY_VERSION.to_f >= 2.0 || RUBY_VERSION =~ /^1\.9\.3/
|
39
|
-
|
40
|
-
conf.order = "random"
|
41
|
-
|
42
|
-
conf.expect_with :rspec do |rspec|
|
43
|
-
rspec.syntax = :expect
|
44
|
-
end
|
45
|
-
end
|