Skip to content

Commit

Permalink
Remove warning about dev mode, since rails #3942cb4
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Feb 13, 2009
1 parent cbf4004 commit e5ad25a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
8 changes: 0 additions & 8 deletions README.rdoc
Expand Up @@ -48,14 +48,6 @@ rendering bar/view (with the controller setup described above):
<h1>Foo View</h1> <h1>Foo View</h1>
<h2>With some 'bar' action</h2> <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 == Testing & CI


RSpec is used for testing, so the tests are in <tt>spec/</tt> rather than RSpec is used for testing, so the tests are in <tt>spec/</tt> rather than
Expand Down
23 changes: 14 additions & 9 deletions Rakefile
Expand Up @@ -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/spectask'
require 'spec/rake/verify_rcov' require 'spec/rake/verify_rcov'
require 'hanna/rdoctask' require 'hanna/rdoctask'
require 'grancher/task'


plugin_name = 'inherit_views' plugin_name = 'inherit_views'


Expand Down Expand Up @@ -38,24 +39,28 @@ desc "Generate rdoc for #{plugin_name}"
Rake::RDocTask.new(:doc) do |d| Rake::RDocTask.new(:doc) do |d|
d.rdoc_dir = 'doc' d.rdoc_dir = 'doc'
d.main = 'README.rdoc' d.main = 'README.rdoc'
d.title = "#{plugin_name} API Documentation" 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'). d.rdoc_files.include('README.rdoc', 'History.txt', 'License.txt', 'Todo.txt').
include('lib/**/*.rb') include('lib/**/*.rb')
end end


namespace :doc do namespace :doc do
task :gh_pages => :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` `mv doc doctmp`
`git checkout -b gh-pages origin/gh-pages` `git checkout -b gh-pages origin/gh-pages`
`rm -rf doc` if `cat doc/index.html | grep "<title>"` != `cat doctmp/index.html | grep "<title>"`
`mv doctmp doc` `rm -rf doc`
`git add doc` `mv doctmp doc`
`git commit -m "Update API docs"` `git add doc`
`git push` `git commit -a -m "Update API docs"`
`git push`
else
`rm -rf doctmp`
end
`git checkout master` `git checkout master`
`git branch -D gh-pages` `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
end end


Expand Down
1 change: 0 additions & 1 deletion 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.