aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-05-16 17:02:43 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-05-16 17:10:04 +0200
commita6d8ca0f0e65ce509793713cb1efe4ab721b9eb4 (patch)
tree389e93b0b166b0f86a5ee881e20f2ae366d33170 /railties/Rakefile
parent5a45446cff0daf4ca747257a8779dcd5d9cae1d7 (diff)
downloadrails-a6d8ca0f0e65ce509793713cb1efe4ab721b9eb4.tar.gz
rails-a6d8ca0f0e65ce509793713cb1efe4ab721b9eb4.tar.bz2
rails-a6d8ca0f0e65ce509793713cb1efe4ab721b9eb4.zip
Include guides directory in the rails gem
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 133a603ed6..69c1ca762a 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -249,7 +249,7 @@ def copy_with_rewritten_ruby_path(src_file, dest_file)
end
desc 'Generate guides (for authors), use ONLY=foo to process just "foo.textile"'
-task :guides do
+task :generate_guides do
ENV["WARN_BROKEN_LINKS"] = "1" # authors can't disable this
ruby "guides/rails_guides.rb"
end
@@ -298,6 +298,7 @@ PKG_FILES = FileList[
'doc/**/*',
'dispatches/**/*',
'environments/**/*',
+ 'guides/**/*',
'helpers/**/*',
'generators/**/*',
'html/**/*',
@@ -324,7 +325,7 @@ spec = Gem::Specification.new do |s|
s.rdoc_options << '--exclude' << '.'
s.has_rdoc = false
- s.files = PKG_FILES.to_a.delete_if {|f| f.include?('.svn')}
+ s.files = PKG_FILES.to_a.delete_if {|f| f =~ %r{\.svn|guides/output}}
s.require_path = 'lib'
s.bindir = "bin" # Use these for applications.
s.executables = ["rails"]
@@ -350,7 +351,7 @@ task :pgem => [:gem] do
end
desc "Publish the guides"
-task :pguides => :guides do
+task :pguides => :generate_guides do
require 'rake/contrib/sshpublisher'
mkdir_p 'pkg'
`tar -czf pkg/guides.gz guides/output`