Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../opt/alt/ruby32/share/ruby
File: yaml.rb
# frozen_string_literal: false
[0] Fix | Delete
[1] Fix | Delete
begin
[2] Fix | Delete
require 'psych'
[3] Fix | Delete
rescue LoadError
[4] Fix | Delete
case RUBY_ENGINE
[5] Fix | Delete
when 'jruby'
[6] Fix | Delete
warn "The Psych YAML extension failed to load.\n" \
[7] Fix | Delete
"Check your env for conflicting versions of SnakeYAML\n" \
[8] Fix | Delete
"See https://github.com/jruby/jruby/wiki/FAQs#why-does-the-psych-yaml-extension-fail-to-load-in-my-environment",
[9] Fix | Delete
uplevel: 1
[10] Fix | Delete
else
[11] Fix | Delete
warn "It seems your ruby installation is missing psych (for YAML output).\n" \
[12] Fix | Delete
"To eliminate this warning, please install libyaml and reinstall your ruby.\n",
[13] Fix | Delete
uplevel: 1
[14] Fix | Delete
end
[15] Fix | Delete
raise
[16] Fix | Delete
end
[17] Fix | Delete
[18] Fix | Delete
YAML = Psych # :nodoc:
[19] Fix | Delete
[20] Fix | Delete
# YAML Ain't Markup Language
[21] Fix | Delete
#
[22] Fix | Delete
# This module provides a Ruby interface for data serialization in YAML format.
[23] Fix | Delete
#
[24] Fix | Delete
# The YAML module is an alias of Psych, the YAML engine for Ruby.
[25] Fix | Delete
#
[26] Fix | Delete
# == Usage
[27] Fix | Delete
#
[28] Fix | Delete
# Working with YAML can be very simple, for example:
[29] Fix | Delete
#
[30] Fix | Delete
# require 'yaml'
[31] Fix | Delete
# # Parse a YAML string
[32] Fix | Delete
# YAML.load("--- foo") #=> "foo"
[33] Fix | Delete
#
[34] Fix | Delete
# # Emit some YAML
[35] Fix | Delete
# YAML.dump("foo") # => "--- foo\n...\n"
[36] Fix | Delete
# { :a => 'b'}.to_yaml # => "---\n:a: b\n"
[37] Fix | Delete
#
[38] Fix | Delete
# As the implementation is provided by the Psych library, detailed documentation
[39] Fix | Delete
# can be found in that library's docs (also part of standard library).
[40] Fix | Delete
#
[41] Fix | Delete
# == Security
[42] Fix | Delete
#
[43] Fix | Delete
# Do not use YAML to load untrusted data. Doing so is unsafe and could allow
[44] Fix | Delete
# malicious input to execute arbitrary code inside your application. Please see
[45] Fix | Delete
# doc/security.rdoc for more information.
[46] Fix | Delete
#
[47] Fix | Delete
# == History
[48] Fix | Delete
#
[49] Fix | Delete
# Syck was the original YAML implementation in Ruby's standard library
[50] Fix | Delete
# developed by why the lucky stiff.
[51] Fix | Delete
#
[52] Fix | Delete
# You can still use Syck, if you prefer, for parsing and emitting YAML, but you
[53] Fix | Delete
# must install the 'syck' gem now in order to use it.
[54] Fix | Delete
#
[55] Fix | Delete
# In older Ruby versions, ie. <= 1.9, Syck is still provided, however it was
[56] Fix | Delete
# completely removed with the release of Ruby 2.0.0.
[57] Fix | Delete
#
[58] Fix | Delete
# == More info
[59] Fix | Delete
#
[60] Fix | Delete
# For more advanced details on the implementation see Psych, and also check out
[61] Fix | Delete
# http://yaml.org for spec details and other helpful information.
[62] Fix | Delete
#
[63] Fix | Delete
# Psych is maintained by Aaron Patterson on github: https://github.com/ruby/psych
[64] Fix | Delete
#
[65] Fix | Delete
# Syck can also be found on github: https://github.com/ruby/syck
[66] Fix | Delete
module YAML
[67] Fix | Delete
end
[68] Fix | Delete
[69] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function