aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-08-27 12:25:40 -0700
committerIgor Minar2012-08-27 12:25:40 -0700
commite9dad5dbf42deab2c00f6ef53a60cfa4d3fa0d67 (patch)
treebcbedfa20e8c99cf920cabac886655b4b613d309
parent54895fc2a1a9f1cb35965e6dc8f989e3a4aafedd (diff)
downloadangular.js-e9dad5dbf42deab2c00f6ef53a60cfa4d3fa0d67.tar.bz2
chore(Rakefile): rewrite version numbers in all index files
-rw-r--r--Rakefile22
1 files 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