Sha256: 979715e5c01badbca08be245d6467d117716a09f2a724dd1dc489bf80d4d8100

Contents?: true

Size: 252 Bytes

Versions: 12

Compression:

Stored size: 252 Bytes

Contents

require 'jellyfish'
require 'uri'


module Jellyfish
  module NormalizedPath
    def path_info
      path = URI.decode_www_form_component(super, Encoding.default_external)
      if path.start_with?('/') then path else "/#{path}" end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jellyfish-1.2.2 lib/jellyfish/normalized_path.rb
jellyfish-1.2.1 lib/jellyfish/normalized_path.rb
jellyfish-1.2.0 lib/jellyfish/normalized_path.rb
jellyfish-1.1.1 lib/jellyfish/normalized_path.rb
jellyfish-1.1.0 lib/jellyfish/normalized_path.rb
jellyfish-1.0.2 lib/jellyfish/normalized_path.rb
jellyfish-1.0.1 lib/jellyfish/normalized_path.rb
jellyfish-1.0.0 lib/jellyfish/normalized_path.rb
jellyfish-0.9.2 lib/jellyfish/normalized_path.rb
jellyfish-0.9.1 lib/jellyfish/normalized_path.rb
jellyfish-0.9.0 lib/jellyfish/normalized_path.rb
jellyfish-0.8.0 lib/jellyfish/normalized_path.rb