Sha256: 8e87c434bc23b1f46a6c4c8d72fc296ce6f9a721f194ab01ccf304a1ef26b3b2
Contents?: true
Size: 1.36 KB
Versions: 3
Compression:
Stored size: 1.36 KB
Contents
module Nokogiri # The version of Nokogiri you are using VERSION = '1.5.0.beta.4' # More complete version information about libxml VERSION_INFO = {} VERSION_INFO['warnings'] = [] VERSION_INFO['nokogiri'] = Nokogiri::VERSION VERSION_INFO['ruby'] = {} VERSION_INFO['ruby']['version'] = ::RUBY_VERSION VERSION_INFO['ruby']['platform'] = ::RUBY_PLATFORM VERSION_INFO['ruby']['engine'] = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'mri' VERSION_INFO['ruby']['jruby'] = ::JRUBY_VERSION if RUBY_PLATFORM == "java" if defined?(LIBXML_VERSION) VERSION_INFO['libxml'] = {} VERSION_INFO['libxml']['binding'] = 'extension' VERSION_INFO['libxml']['compiled'] = LIBXML_VERSION VERSION_INFO['libxml']['loaded'] = LIBXML_PARSER_VERSION.scan(/^(.*)(..)(..)$/).first.collect{|j|j.to_i}.join(".") if VERSION_INFO['libxml']['compiled'] != VERSION_INFO['libxml']['loaded'] warning = "Nokogiri was built against LibXML version #{VERSION_INFO['libxml']['compiled']}, but has dynamically loaded #{VERSION_INFO['libxml']['loaded']}" VERSION_INFO['warnings'] << warning warn "WARNING: #{warning}" end end def self.uses_libxml? # :nodoc: !Nokogiri::VERSION_INFO['libxml'].nil? end def self.jruby? !Nokogiri::VERSION_INFO['ruby']['jruby'].nil? end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
nokogiri-1.5.0.beta.4 | lib/nokogiri/version.rb |
nokogiri-1.5.0.beta.4-java | lib/nokogiri/version.rb |
nokogiri-backupify-1.5.0.beta.4 | lib/nokogiri/version.rb |