Module: Proxie
- Defined in:
- lib/proxie/logger.rb,
lib/proxie/proxie.rb,
lib/proxie/server.rb,
lib/proxie/version.rb
Defined Under Namespace
Classes: Logger, SQLiteLogger, Server
Constant Summary collapse
- REGEX_DEFAULT =
Regular expression to detect static
/\.(png|jpeg|jpg|gif|ico|css|swf)/i
- REGEX_JS =
Regular expression to detect javascripts
/\.js/i
- REGEX_HTML =
Regular expression to detect html
/(<html>|<body>)/i
- VERSION =
'0.1.1'
Class Method Summary collapse
-
.init ⇒ Object
Setup Proxie work dir.
-
.root ⇒ Object
Get user work dir.
Class Method Details
.init ⇒ Object
Setup Proxie work dir
17 18 19 20 21 |
# File 'lib/proxie/proxie.rb', line 17 def self.init unless File.exists?(root) && File.directory?(root) Dir.mkdir(root) end end |
.root ⇒ Object
Get user work dir
12 13 14 |
# File 'lib/proxie/proxie.rb', line 12 def self.root "#{ENV['HOME']}/.proxie" end |