From fa6c8c313111d0a0b4f6e3eb2abd65f4f77cfc04 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 27 Aug 2012 12:25:40 -0700 Subject: chore(Rakefile): rewrite version numbers in all index files --- Rakefile | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Rakefile b/Rakefile index f887237b..30b29ad1 100644 --- a/Rakefile +++ b/Rakefile @@ -113,17 +113,21 @@ end desc 'Generate docs' task :docs => [:init] do `node docs/src/gen-docs.js` - rewrite_file(path_to('docs/.htaccess')) do |content| - content.sub!('"NG_VERSION_FULL"', NG_VERSION.full) - end - rewrite_file(path_to('docs/index.html')) do |content| - content.sub!('"NG_VERSION_FULL"', NG_VERSION.full). - sub!('"NG_VERSION_STABLE"', NG_VERSION.stable) - end - rewrite_file(path_to('docs/docs-scenario.html')) do |content| + + [ path_to('docs/.htaccess'), + path_to('docs/index.html'), + path_to('docs/index-debug.html'), + path_to('docs/index-nocache.html'), + path_to('docs/index-jq.html'), + path_to('docs/index-jq-debug.html'), + path_to('docs/index-jq-nocache.html'), + path_to('docs/docs-scenario.html') + ].each do |src| + rewrite_file(src) do |content| content.sub!('"NG_VERSION_FULL"', NG_VERSION.full). - sub!('"NG_VERSION_STABLE"', NG_VERSION.stable) + sub('"NG_VERSION_STABLE"', NG_VERSION.stable) end + end end -- cgit v1.2.3