Skip to content
Browse files

Remove warning about dev mode, since rails #3942cb4

  • Loading branch information...
1 parent cbf4004 commit e5ad25af5f023ce13683a9f3d7b62c0de711e4d6 @ianwhite committed Feb 13, 2009
Showing with 14 additions and 18 deletions.
  1. +0 −8 README.rdoc
  2. +14 −9 Rakefile
  3. +0 −1 Todo.txt
View
8 README.rdoc
@@ -48,14 +48,6 @@ rendering bar/view (with the controller setup described above):
<h1>Foo View</h1>
<h2>With some 'bar' action</h2>
-== Development mode
-
-Because of recent changes in the way 2.3 finds templates, using inherit_views may result in a noticeable slow-down in development mode.
-<b>This slow down will not occur in production mode.</b> (Thanks to {thedarkone}[http://github.com/thedarkone] for pointing this out,
-and showing me the reason why).
-
-If you are noticing a slowdown in development mode check out {rails-dev-boost}[http://github.com/thedarkone/rails-dev-boost].
-
== Testing & CI
RSpec is used for testing, so the tests are in <tt>spec/</tt> rather than
View
23 Rakefile
@@ -5,6 +5,7 @@ $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base) and !$LOAD_PATH.includ
require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'
require 'hanna/rdoctask'
+require 'grancher/task'
plugin_name = 'inherit_views'
@@ -38,24 +39,28 @@ desc "Generate rdoc for #{plugin_name}"
Rake::RDocTask.new(:doc) do |d|
d.rdoc_dir = 'doc'
d.main = 'README.rdoc'
- d.title = "#{plugin_name} API Documentation"
- d.rdoc_files.include('README.rdoc', 'History.txt', 'License.txt').
+ d.title = "#{plugin_name} API Docs (#{`git log HEAD -1 --pretty=format:"%H"`[0..6]})"
+ d.rdoc_files.include('README.rdoc', 'History.txt', 'License.txt', 'Todo.txt').
include('lib/**/*.rb')
end
namespace :doc do
task :gh_pages => :doc do
- `git branch -m gh-pages orig-gh-pages`
+ `git branch -m gh-pages orig-gh-pages > /dev/null 2>&1`
`mv doc doctmp`
`git checkout -b gh-pages origin/gh-pages`
- `rm -rf doc`
- `mv doctmp doc`
- `git add doc`
- `git commit -m "Update API docs"`
- `git push`
+ if `cat doc/index.html | grep "<title>"` != `cat doctmp/index.html | grep "<title>"`
+ `rm -rf doc`
+ `mv doctmp doc`
+ `git add doc`
+ `git commit -a -m "Update API docs"`
+ `git push`
+ else
+ `rm -rf doctmp`
+ end
`git checkout master`
`git branch -D gh-pages`
- `git branch -m orig-gh-pages gh-pages`
+ `git branch -m orig-gh-pages gh-pages > /dev/null 2>&1`
end
end
View
1 Todo.txt
@@ -1 +0,0 @@
-* Add specs for whether existnce of one format implies existence of all (leading to weird no render errors). Should be able to fix this by adding format to the memoiazation

0 comments on commit e5ad25a

Please sign in to comment.
Something went wrong with that request. Please try again.