Sha256: 98bef2031ab9ecde4c3b46cb10099c91ed13766ae8a248d5be81b6a329257c39

Contents?: true

Size: 574 Bytes

Versions: 7

Compression:

Stored size: 574 Bytes

Contents

module Merb
  module Const
    
    ESCAPE_TABLE = {
      '&' => '&',
      '<' => '&lt;',
      '>' => '&gt;',
      '"' => '&quot;',
      "'" => '&#039;',
    }.freeze
    
    DEFAULT_SEND_FILE_OPTIONS = {
      :type         => 'application/octet-stream'.freeze,
      :disposition  => 'attachment'.freeze
    }.freeze
    
    SET_COOKIE = " %s=%s; path=/; expires=%s".freeze
    COOKIE_SPLIT = /[;,] */n.freeze
    COOKIE_REGEXP = /\s*(.+)=(.*)\s*/.freeze
    COOKIE_EXPIRED_TIME  = Time.at(0).freeze
    HOUR = 60*60
    DAY = HOUR*24
    WEEK = DAY*7
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
merb-0.0.9 lib/merb/merb_constants.rb
merb-0.1.0 lib/merb/merb_constants.rb
merb-0.3.0 lib/merb/merb_constants.rb
merb-0.2.0 lib/merb/merb_constants.rb
merb-0.3.1 lib/merb/merb_constants.rb
merb-0.3.3 lib/merb/merb_constants.rb
merb-0.3.4 lib/merb/merb_constants.rb