~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to lib/rubygems/package/tar_output.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
      # if we have a signing key, then sign the data
80
80
      # digest and return the signature
81
81
      if @signer then
 
82
        require 'rubygems/security'
82
83
        digest = Gem::Security::OPT[:dgst_algo].digest sio.string
83
84
        @data_signature = @signer.sign digest
84
85
        inner.write sio.string
107
108
        # if we have a signing key, then sign the metadata digest and return
108
109
        # the signature
109
110
        if @signer then
 
111
          require 'rubygems/security'
110
112
          digest = Gem::Security::OPT[:dgst_algo].digest sio.string
111
113
          @meta_signature = @signer.sign digest
112
114
          io.write sio.string