ffi-yajl 2.3.3-universal-java → 2.3.4-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/benchmark/encode.rb +4 -4
- data/lib/ffi_yajl/benchmark/encode_json_and_marshal.rb +4 -4
- data/lib/ffi_yajl/benchmark/encode_json_and_yaml.rb +4 -4
- data/lib/ffi_yajl/benchmark/encode_profile.rb +1 -1
- data/lib/ffi_yajl/benchmark/http.rb +5 -5
- data/lib/ffi_yajl/benchmark/parse.rb +3 -3
- data/lib/ffi_yajl/benchmark/parse_json_and_marshal.rb +3 -3
- data/lib/ffi_yajl/benchmark/parse_json_and_yaml.rb +4 -4
- 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 +3 -3
- data/lib/ffi_yajl/ext.rb +2 -2
- data/lib/ffi_yajl/ffi.rb +2 -2
- data/lib/ffi_yajl/ffi/encoder.rb +1 -1
- data/lib/ffi_yajl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 457abb06473ed64748c31aa2393fac7697e5285e683e226141562c85a81b717a
|
4
|
+
data.tar.gz: 7efcde6180821332614c040cc34a76c803bca5a5326d1ac0f51e652b3b6772ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa08b94a8e535fa6bfac72c57613109c936d27f41e0c7420f0bd59468baf261fa56f1468bf7586c1944c361e5b0896c9fc640a36daefdaa7cd89bb5c03ea651b
|
7
|
+
data.tar.gz: b077fdd072d470da6c9bd818cb89d478b2d63a8948eaf653bf5e5bbcdabc5506d70342071c86f1e3c10d6a9b158ae52fa678a8b0046200f4390ef92bb02e71a3
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Portions Originally Copyright (c) 2008-2011 Brian Lopez - http://github.com/brianmario
|
2
2
|
# See MIT-LICENSE
|
3
3
|
|
4
|
-
require "rubygems"
|
5
|
-
require "benchmark"
|
6
|
-
require "stringio"
|
4
|
+
require "rubygems" unless defined?(Gem)
|
5
|
+
require "benchmark" unless defined?(Benchmark)
|
6
|
+
require "stringio" unless defined?(StringIO)
|
7
7
|
if !defined?(RUBY_ENGINE) || RUBY_ENGINE !~ /jruby/
|
8
8
|
begin
|
9
9
|
require "yajl"
|
@@ -15,7 +15,7 @@ else
|
|
15
15
|
end
|
16
16
|
require_relative "../../ffi_yajl"
|
17
17
|
begin
|
18
|
-
require "json"
|
18
|
+
require "json" unless defined?(JSON)
|
19
19
|
rescue LoadError
|
20
20
|
puts "INFO: json gem not installed"
|
21
21
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/..")
|
2
2
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
|
3
3
|
|
4
|
-
require "rubygems"
|
5
|
-
require "benchmark"
|
4
|
+
require "rubygems" unless defined?(Gem)
|
5
|
+
require "benchmark" unless defined?(Benchmark)
|
6
6
|
require "yajl"
|
7
|
-
require "stringio"
|
7
|
+
require "stringio" unless defined?(StringIO)
|
8
8
|
begin
|
9
|
-
require "json"
|
9
|
+
require "json" unless defined?(JSON)
|
10
10
|
rescue LoadError
|
11
11
|
end
|
12
12
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/..")
|
2
2
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
|
3
3
|
|
4
|
-
require "rubygems"
|
5
|
-
require "benchmark"
|
4
|
+
require "rubygems" unless defined?(Gem)
|
5
|
+
require "benchmark" unless defined?(Benchmark)
|
6
6
|
require "yajl"
|
7
7
|
begin
|
8
|
-
require "json"
|
8
|
+
require "json" unless defined?(JSON)
|
9
9
|
rescue LoadError
|
10
10
|
end
|
11
|
-
require "yaml"
|
11
|
+
require "yaml" unless defined?(YAML)
|
12
12
|
|
13
13
|
# JSON Section
|
14
14
|
filename = "benchmark/subjects/ohai.json"
|
@@ -1,15 +1,15 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/..")
|
2
2
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
|
3
3
|
|
4
|
-
require "rubygems"
|
5
|
-
require "benchmark"
|
4
|
+
require "rubygems" unless defined?(Gem)
|
5
|
+
require "benchmark" unless defined?(Benchmark)
|
6
6
|
require "yajl/http_stream"
|
7
7
|
require "yajl/gzip"
|
8
8
|
require "yajl/deflate"
|
9
9
|
require "yajl/bzip2" unless defined?(Bzip2)
|
10
|
-
require "json"
|
11
|
-
require "uri"
|
12
|
-
require "net/http"
|
10
|
+
require "json" unless defined?(JSON)
|
11
|
+
require "uri" unless defined?(URI)
|
12
|
+
require "net/http" unless defined?(Net::HTTP)
|
13
13
|
|
14
14
|
uri = URI.parse("http://search.twitter.com/search.json?q=github")
|
15
15
|
# uri = URI.parse('http://localhost/yajl-ruby.git/benchmark/subjects/contacts.json')
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require "rubygems"
|
2
|
-
require "benchmark"
|
1
|
+
require "rubygems" unless defined?(Gem)
|
2
|
+
require "benchmark" unless defined?(Benchmark)
|
3
3
|
require "yajl"
|
4
4
|
require_relative "../../ffi_yajl"
|
5
5
|
if !defined?(RUBY_ENGINE) || RUBY_ENGINE !~ /jruby/
|
@@ -12,7 +12,7 @@ else
|
|
12
12
|
puts "INFO: skipping yajl-ruby on jruby"
|
13
13
|
end
|
14
14
|
begin
|
15
|
-
require "json"
|
15
|
+
require "json" unless defined?(JSON)
|
16
16
|
rescue LoadError
|
17
17
|
end
|
18
18
|
begin
|
@@ -1,11 +1,11 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/..")
|
2
2
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
|
3
3
|
|
4
|
-
require "rubygems"
|
5
|
-
require "benchmark"
|
4
|
+
require "rubygems" unless defined?(Gem)
|
5
|
+
require "benchmark" unless defined?(Benchmark)
|
6
6
|
require "yajl"
|
7
7
|
begin
|
8
|
-
require "json"
|
8
|
+
require "json" unless defined?(JSON)
|
9
9
|
rescue LoadError
|
10
10
|
end
|
11
11
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/..")
|
2
2
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
|
3
3
|
|
4
|
-
require "rubygems"
|
5
|
-
require "benchmark"
|
4
|
+
require "rubygems" unless defined?(Gem)
|
5
|
+
require "benchmark" unless defined?(Benchmark)
|
6
6
|
require "yajl"
|
7
7
|
begin
|
8
|
-
require "json"
|
8
|
+
require "json" unless defined?(JSON)
|
9
9
|
rescue LoadError
|
10
10
|
end
|
11
|
-
require "yaml"
|
11
|
+
require "yaml" unless defined?(YAML)
|
12
12
|
|
13
13
|
# JSON section
|
14
14
|
filename = "benchmark/subjects/ohai.json"
|
@@ -1,11 +1,11 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/..")
|
2
2
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib")
|
3
3
|
|
4
|
-
require "rubygems"
|
5
|
-
require "benchmark"
|
4
|
+
require "rubygems" unless defined?(Gem)
|
5
|
+
require "benchmark" unless defined?(Benchmark)
|
6
6
|
require "yajl"
|
7
7
|
begin
|
8
|
-
require "json"
|
8
|
+
require "json" unless defined?(JSON)
|
9
9
|
rescue LoadError
|
10
10
|
end
|
11
11
|
begin
|
data/lib/ffi_yajl/ext.rb
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
21
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
22
|
|
23
|
-
require "rubygems"
|
23
|
+
require "rubygems" unless defined?(Gem)
|
24
24
|
|
25
25
|
require_relative "encoder"
|
26
26
|
require_relative "parser"
|
@@ -28,7 +28,7 @@ require "ffi_yajl/ext/dlopen"
|
|
28
28
|
require_relative "map_library_name"
|
29
29
|
|
30
30
|
# needed so the encoder c-code can find these symbols
|
31
|
-
require "stringio"
|
31
|
+
require "stringio" unless defined?(StringIO)
|
32
32
|
require "date"
|
33
33
|
|
34
34
|
module FFI_Yajl
|
data/lib/ffi_yajl/ffi.rb
CHANGED
@@ -20,11 +20,11 @@
|
|
20
20
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
21
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
22
|
|
23
|
-
require "rubygems"
|
23
|
+
require "rubygems" unless defined?(Gem)
|
24
24
|
|
25
25
|
require "libyajl2"
|
26
26
|
begin
|
27
|
-
require "ffi"
|
27
|
+
require "ffi" unless defined?(FFI)
|
28
28
|
rescue LoadError
|
29
29
|
$stderr.puts "FATAL: to use the ffi extension instead of the compiled C extension, the ffi gem must be installed"
|
30
30
|
$stderr.puts " (it is optional, so you must include it in your bundle manually)"
|
data/lib/ffi_yajl/ffi/encoder.rb
CHANGED
data/lib/ffi_yajl/version.rb
CHANGED
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: 2.3.
|
4
|
+
version: 2.3.4
|
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:
|
11
|
+
date: 2020-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|