File: bzip2.rb

package info (click to toggle)
ruby-yajl 1.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,036 kB
  • sloc: ansic: 3,068; ruby: 2,619; makefile: 4; sh: 3
file content (11 lines) | stat: -rw-r--r-- 351 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
puts "DEPRECATION WARNING: Yajl's Bzip2 support is going to be removed in 2.0"

require 'yajl' unless defined?(Yajl::Parser)

begin
  require 'bzip2' unless defined?(Bzip2)
  require 'yajl/bzip2/stream_reader.rb'
  require 'yajl/bzip2/stream_writer.rb'
rescue LoadError
  raise "Unable to load the bzip2 library. Is the bzip2-ruby gem installed?"
end