Class: Nanoc::Extra::JRubyNokogiriWarner Private
- Inherits:
-
Object
- Object
- Nanoc::Extra::JRubyNokogiriWarner
- Includes:
- Singleton
- Defined in:
- lib/nanoc/extra/jruby_nokogiri_warner.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- TEXT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"--------------------------------------------------------------------------------\nNote:\n\nThe behavior of Pure Java Nokogiri differs from the Nokogiri used on the\nstandard Ruby interpreter (MRI) due to differences in underlying libraries.\n\nThese sometimes problematic behavioral differences can cause Nanoc filters not\nto function properly, if at all. If you need reliable (X)HTML and XML handling\nfunctionality, consider not using Nokogiri on JRuby for the time being.\n\nThese issues are being worked on both from the Nokogiri and the Nanoc side. Keep\nyour Nokogiri and Nanoc versions up to date!\n\nFor details, see https://github.com/nanoc/nanoc/pull/422.\n--------------------------------------------------------------------------------\n".freeze
Class Method Summary collapse
- .check_and_warn ⇒ Object private
Instance Method Summary collapse
- #check_and_warn ⇒ Object private
-
#initialize ⇒ JRubyNokogiriWarner
constructor
private
A new instance of JRubyNokogiriWarner.
Constructor Details
#initialize ⇒ JRubyNokogiriWarner
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of JRubyNokogiriWarner.
30 31 32 |
# File 'lib/nanoc/extra/jruby_nokogiri_warner.rb', line 30 def initialize @warned = false end |
Class Method Details
.check_and_warn ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/nanoc/extra/jruby_nokogiri_warner.rb', line 26 def self.check_and_warn instance.check_and_warn end |
Instance Method Details
#check_and_warn ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
34 35 36 37 38 39 40 41 |
# File 'lib/nanoc/extra/jruby_nokogiri_warner.rb', line 34 def check_and_warn return unless defined?(RUBY_ENGINE) return if RUBY_ENGINE != 'jruby' return if @warned $stderr.puts TEXT @warned = true end |