Sha256: b7a6d0f46196b399d33b6a4d689737ed7242e79c1f10735665cf5acd35074113

Contents?: true

Size: 354 Bytes

Versions: 25

Compression:

Stored size: 354 Bytes

Contents

begin
  require 'base64'
rescue LoadError
end

module ActiveSupport
  if defined? ::Base64
    Base64 = ::Base64
  else
    # Ruby 1.9 doesn't provide base64, so we wrap this here
    module Base64

      def self.encode64(data)
        [data].pack("m")
      end

      def self.decode64(data)
        data.unpack("m").first
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activesupport/lib/active_support/base64.rb
masover-castronaut-0.4.4.4 vendor/activesupport/lib/active_support/base64.rb
masover-castronaut-0.4.4.5 vendor/activesupport/lib/active_support/base64.rb
masover-castronaut-0.5.0.1 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.4.1 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.4.2 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.4.3 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.4.4 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.4.5 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.4.6 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.5.0 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.5.1 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.5.2 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.5.3 vendor/activesupport/lib/active_support/base64.rb
relevance-castronaut-0.5.4 vendor/activesupport/lib/active_support/base64.rb
radiant-0.7.2 vendor/rails/activesupport/lib/active_support/base64.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/activesupport/lib/active_support/base64.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/activesupport/lib/active_support/base64.rb
activesupport-2.1.1 lib/active_support/base64.rb
activesupport-2.1.0 lib/active_support/base64.rb