Sha256: 3e69171f098b6d60e73193ee85a6f19f7e0a31ddb4e49c3e3608b849c95bbfc7

Contents?: true

Size: 460 Bytes

Versions: 27

Compression:

Stored size: 460 Bytes

Contents

# a stupid hack class to get rid of all of the warnings but
# still make the encode/decode methods available

# 1.8.2 has a Base64 class, but 1.8.1 just imports the methods directly
# into Object

require 'base64'

unless defined? Base64
    class Base64
        def Base64.encode64(*args)
            Object.method(:encode64).call(*args)
        end

        def Base64.decode64(*args)
            Object.method(:decode64).call(*args)
        end
    end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
puppet-0.25.5 lib/puppet/external/base64.rb
puppet-0.25.4 lib/puppet/external/base64.rb
puppet-0.25.3 lib/puppet/external/base64.rb
puppet-0.24.9 lib/puppet/external/base64.rb
puppet-0.25.2 lib/puppet/external/base64.rb
puppet-0.25.1 lib/puppet/external/base64.rb
puppet-0.25.0 lib/puppet/external/base64.rb
puppet-0.13.2 lib/puppet/base64.rb
puppet-0.13.1 lib/puppet/base64.rb
puppet-0.13.6 lib/puppet/base64.rb
puppet-0.13.0 lib/puppet/base64.rb
puppet-0.23.0 lib/puppet/external/base64.rb
puppet-0.16.0 lib/puppet/base64.rb
puppet-0.18.4 lib/puppet/base64.rb
puppet-0.22.4 lib/puppet/external/base64.rb
puppet-0.23.2 lib/puppet/external/base64.rb
puppet-0.23.1 lib/puppet/external/base64.rb
puppet-0.24.0 lib/puppet/external/base64.rb
puppet-0.24.4 lib/puppet/external/base64.rb
puppet-0.24.1 lib/puppet/external/base64.rb