Sha256: 300d0258c44b55394038de68278e11b6f3c34e62d4d921a18eff6217408fdcec

Contents?: true

Size: 616 Bytes

Versions: 285

Compression:

Stored size: 616 Bytes

Contents

# :stopdoc:

require 'uri/common'

# Issue:
# http://bugs.ruby-lang.org/issues/5925
#
# Relevant commit:
# https://github.com/ruby/ruby/commit/edb7cdf1eabaff78dfa5ffedfbc2e91b29fa9ca1

module URI
  256.times do |i|
    TBLENCWWWCOMP_[i.chr] = '%%%02X' % i
  end
  TBLENCWWWCOMP_[' '] = '+'
  TBLENCWWWCOMP_.freeze

  256.times do |i|
    h, l = i>>4, i&15
    TBLDECWWWCOMP_['%%%X%X' % [h, l]] = i.chr
    TBLDECWWWCOMP_['%%%x%X' % [h, l]] = i.chr
    TBLDECWWWCOMP_['%%%X%x' % [h, l]] = i.chr
    TBLDECWWWCOMP_['%%%x%x' % [h, l]] = i.chr
  end
  TBLDECWWWCOMP_['+'] = ' '
  TBLDECWWWCOMP_.freeze
end

# :startdoc:

Version data entries

285 entries across 204 versions & 43 rubygems

Version Path
rack-1.4.6 lib/rack/backports/uri/common_193.rb
rack-1.6.2 lib/rack/backports/uri/common_193.rb
rack-1.5.4 lib/rack/backports/uri/common_193.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/backports/uri/common_193.rb
rack-1.5.3 lib/rack/backports/uri/common_193.rb
rack-1.6.1 lib/rack/backports/uri/common_193.rb
rack-1.6.0 lib/rack/backports/uri/common_193.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/lib/rack/backports/uri/common_193.rb
rack-1.6.0.beta2 lib/rack/backports/uri/common_193.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/backports/uri/common_193.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/backports/uri/common_193.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/backports/uri/common_193.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/backports/uri/common_193.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/lib/rack/backports/uri/common_193.rb
rack-1.6.0.beta lib/rack/backports/uri/common_193.rb
scout_realtime-1.0.5 lib/vendor/rack-1.5.2/lib/rack/backports/uri/common_193.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/backports/uri/common_193.rb
scout_realtime-1.0.4 lib/vendor/rack-1.5.2/lib/rack/backports/uri/common_193.rb
scout_realtime-1.0.3 lib/vendor/rack-1.5.2/lib/rack/backports/uri/common_193.rb
scout_realtime-1.0.3.pre lib/vendor/rack-1.5.2/lib/rack/backports/uri/common_193.rb