lib/merb/merb_constants.rb in merb-0.0.8 vs lib/merb/merb_constants.rb in merb-0.0.9
- old
+ new
@@ -12,7 +12,14 @@
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
\ No newline at end of file