microengine 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/admin_page.rb +2 -6
  3. metadata +2 -2
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.2"
6
+ PKG_VERSION = "0.1.3"
7
7
 
8
8
  RUBY_FORGE_PROJECT = "microengine"
9
9
 
data/lib/admin_page.rb CHANGED
@@ -21,11 +21,6 @@ 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
-
29
24
  @http = http
30
25
  @path = '/' + path
31
26
  @admin = admin
@@ -176,7 +171,8 @@ module Microengine
176
171
 
177
172
  # Display admin HTML in page layout
178
173
  def display(view)
179
- header = "<title>#{@translation[view]['title']}</title>"
174
+ header = "<title>#{@translation[view]['title']}</title>\n" +
175
+ '<meta name="robots" content="noindex, nofollow" />'
180
176
  rhtml = IO.read File.dirname(__FILE__) + "/html/#{view}.rhtml"
181
177
  body = ERB.new(rhtml).result(binding)
182
178
 
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.2
7
- date: 2008-02-23 00:00:00 +03:00
6
+ version: 0.1.3
7
+ date: 2008-03-09 00:00:00 +03:00
8
8
  summary: MicroEngine is a fast, simple and minimalistic site engine.
9
9
  require_paths:
10
10
  - lib