~javier-lopez/ubuntu/vivid/ruby1.9.1/fix-1426828

« back to all changes in this revision

Viewing changes to ext/psych/lib/psych/handler.rb

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-11-25 09:59:41 UTC
  • mfrom: (21.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20131125095941-aou3ymnwm79em09y
Tags: 1.9.3.448-1ubuntu1
* Merge from Debian. Remaining changes:
  - debian/control: Add ca-certificates to libruby1.9.1 depends so that
    rubygems can perform certificate verification
  - debian/rules: Don't install SSL certificates from upstream sources
  - debian/patches/20120927-rubygems_disable_upstream_certs.patch: Use
    /etc/ssl/certs/ca-certificates.crt for the trusted CA certificates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
  # See Psych::Parser for more details
12
12
  class Handler
13
13
    ###
 
14
    # Configuration options for dumping YAML.
 
15
    class DumperOptions
 
16
      attr_accessor :line_width, :indentation, :canonical
 
17
 
 
18
      def initialize
 
19
        @line_width  = 0
 
20
        @indentation = 2
 
21
        @canonical   = false
 
22
      end
 
23
    end
 
24
 
 
25
    # Default dumping options
 
26
    OPTIONS = DumperOptions.new
 
27
 
 
28
    ###
14
29
    # Called with +encoding+ when the YAML stream starts.  This method is
15
30
    # called once per stream.  A stream may contain multiple documents.
16
31
    #