microengine 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/rdoctask'
3
3
  require 'rake/gempackagetask'
4
4
 
5
5
  PKG_NAME = "microengine"
6
- PKG_VERSION = "0.1.0"
6
+ PKG_VERSION = "0.1.1"
7
7
 
8
8
  RUBY_FORGE_PROJECT = "microengine"
9
9
 
data/access.log CHANGED
@@ -1 +1 @@
1
- E, [2008-01-26T20:17:16.989961 #10063] ERROR -- : /home/ai/Разработка/microengine/public/../lib/../access.log
1
+
data/bin/microengine CHANGED
@@ -50,7 +50,7 @@ unless File.exists? path + 'content/layout'
50
50
 
51
51
  FileUtils.chmod_R 0777, path + 'content/'
52
52
  FileUtils.chmod 0777, path + 'cache/'
53
- FileUtils.chmod 0777, path + 'access.log'
53
+ FileUtils.chmod 0666, path + 'access.log'
54
54
  FileUtils.chmod 0755, path + 'public/microengine.fcgi'
55
55
  rescue
56
56
  puts "Can't copy files. Ensure that you has permissions to write in #{path} ."
@@ -1,4 +1,4 @@
1
1
  Googlebot
2
- Yahoo!
2
+ Yahoo
3
3
  msnbot
4
- Yandex
4
+ Yandex
data/lib/admin.rb CHANGED
@@ -159,7 +159,7 @@ module Microengine
159
159
  if not File.exists? file
160
160
  http.redirect '/' + path
161
161
  end
162
-
162
+
163
163
  begin
164
164
  File.delete file
165
165
  rescue
data/lib/admin_page.rb CHANGED
@@ -21,6 +21,11 @@ module Microengine
21
21
  class AdminPage
22
22
 
23
23
  def initialize(http, path, admin)
24
+ if admin.dispatcher.spider? http.agent
25
+ admin.dispatcher.not_found http
26
+ return
27
+ end
28
+
24
29
  @http = http
25
30
  @path = '/' + path
26
31
  @admin = admin
data/lib/dispatcher.rb CHANGED
@@ -103,8 +103,6 @@ module Microengine
103
103
  end
104
104
  end
105
105
 
106
- private
107
-
108
106
  # Check HTTP_USER_AGENT value for search engine spiders
109
107
  def spider?(agent)
110
108
  @spiders.each do |spider|
data/public/.htaccess CHANGED
@@ -1,4 +1,7 @@
1
- AddHandler fastcgi-script .fcgi
1
+ AddHandler fcgid-script .fcgi
2
+ <IfModule mod_fastcgi.c>
3
+ AddHandler fastcgi-script .fcgi
4
+ </IfModule>
2
5
 
3
6
  RewriteEngine On
4
7
  RewriteCond %{REQUEST_FILENAME} !-f
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: microengine
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
7
- date: 2008-02-05 00:00:00 +03:00
6
+ version: 0.1.1
7
+ date: 2008-02-18 00:00:00 +03:00
8
8
  summary: MicroEngine is a fast, simple and minimalistic site engine.
9
9
  require_paths:
10
10
  - lib