Sha256: cedcf6dbec25f633046918cb92fd6144a3eac5489324aa6a1eee71cf51c4ecc0

Contents?: true

Size: 582 Bytes

Versions: 74

Compression:

Stored size: 582 Bytes

Contents

# frozen_string_literal: true

# Psych could be in the stdlib
# but it's too late if Syck is already loaded
begin
  require "psych" unless defined?(Syck)
rescue LoadError
  # Apparently Psych wasn't available. Oh well.
end

# At least load the YAML stdlib, whatever that may be
require "yaml" unless defined?(YAML.dump)

module Bundler
  # On encountering invalid YAML,
  # Psych raises Psych::SyntaxError
  if defined?(::Psych::SyntaxError)
    YamlLibrarySyntaxError = ::Psych::SyntaxError
  else # Syck raises ArgumentError
    YamlLibrarySyntaxError = ::ArgumentError
  end
end

Version data entries

74 entries across 74 versions & 2 rubygems

Version Path
rubygems-update-3.2.14 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.14 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.13 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.13 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.12 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.12 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.11 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.11 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.10 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.10 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.9 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.9 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.8 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.8 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.7 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.7 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.6 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.6 lib/bundler/psyched_yaml.rb
rubygems-update-3.2.5 bundler/lib/bundler/psyched_yaml.rb
bundler-2.2.5 lib/bundler/psyched_yaml.rb