Skip to content
Browse files

Include guides directory in the rails gem

  • Loading branch information...
1 parent 66ead4f commit ba92e83bcc8120eeac9f9f53b1705f48360ec070 @lifo lifo committed May 16, 2009
Showing with 4 additions and 3 deletions.
  1. +4 −3 railties/Rakefile
View
7 railties/Rakefile
@@ -246,7 +246,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
ruby "guides/rails_guides.rb"
end
@@ -294,6 +294,7 @@ PKG_FILES = FileList[
'doc/**/*',
'dispatches/**/*',
'environments/**/*',
+ 'guides/**/*',
'helpers/**/*',
'generators/**/*',
'html/**/*',
@@ -320,7 +321,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"]
@@ -345,7 +346,7 @@ task :pgem => [:gem] do
end
desc "Publish the guides"
-task :pguides => :guides do
+task :pguides => :generate_guides do
mkdir_p 'pkg'
`tar -czf pkg/guides.gz guides/output`
Rake::SshFilePublisher.new("web.rubyonrails.org", "/u/sites/guides.rubyonrails.org/public", "pkg", "guides.gz").upload

0 comments on commit ba92e83

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