ffi-yajl 2.3.3-universal-java → 2.3.4-universal-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5f32aa7f90127b67c577e2d7ce4dc1071e94e94a571311e5fce02a2fe931c70
4
- data.tar.gz: 2e5c687a06042fa52ea13a0a4d9f47baf1e912329624e0e5e37feb6daa84f351
3
+ metadata.gz: 457abb06473ed64748c31aa2393fac7697e5285e683e226141562c85a81b717a
4
+ data.tar.gz: 7efcde6180821332614c040cc34a76c803bca5a5326d1ac0f51e652b3b6772ff
5
5
  SHA512:
6
- metadata.gz: cf1abf928176fcd7176c393cb6976ae58b416b5871ee996c72b0c30dcc909ab6934366fdc6d7ced59791f25b1aaafab3e8b2f72612c15b114d704b2dcf0164e6
7
- data.tar.gz: 56108b6e466f740a51ee1c0c0ff9b48bdfae82aa2ba1cf4584bd8d2c9e98b8476db100e2c9cb313e40f9e02c09861d6e28840ce4decca8b22d5d68195a058b03
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,7 +1,7 @@
1
1
  # Portions Originally Copyright (c) 2008-2011 Brian Lopez - http://github.com/brianmario
2
2
  # See MIT-LICENSE
3
3
 
4
- require "rubygems"
4
+ require "rubygems" unless defined?(Gem)
5
5
  require_relative "../../ffi_yajl"
6
6
  begin
7
7
  require "perftools"
@@ -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,7 +1,7 @@
1
1
  # Portions Originally Copyright (c) 2008-2011 Brian Lopez - http://github.com/brianmario
2
2
  # See MIT-LICENSE
3
3
 
4
- require "rubygems"
4
+ require "rubygems" unless defined?(Gem)
5
5
  require_relative "../../ffi_yajl"
6
6
  begin
7
7
  require "perftools"
@@ -1,7 +1,7 @@
1
1
  # Portions Originally Copyright (c) 2008-2011 Brian Lopez - http://github.com/brianmario
2
2
  # See MIT-LICENSE
3
3
 
4
- require "rubygems"
4
+ require "rubygems" unless defined?(Gem)
5
5
  require_relative "../../ffi_yajl"
6
6
 
7
7
  module FFI_Yajl
@@ -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
@@ -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
@@ -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)"
@@ -21,7 +21,7 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
23
  require "date"
24
- require "stringio"
24
+ require "stringio" unless defined?(StringIO)
25
25
 
26
26
  module FFI_Yajl
27
27
  module FFI
@@ -21,5 +21,5 @@
21
21
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
22
 
23
23
  module FFI_Yajl
24
- VERSION = "2.3.3".freeze
24
+ VERSION = "2.3.4".freeze
25
25
  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: 2.3.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: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake