diff options
| author | Igor Minar | 2012-08-27 12:25:40 -0700 |
|---|---|---|
| committer | Igor Minar | 2012-08-27 12:26:04 -0700 |
| commit | fa6c8c313111d0a0b4f6e3eb2abd65f4f77cfc04 (patch) | |
| tree | 4993202330b86ca9409d4b3a2ae1f35793a3da2b | |
| parent | f7ac8ef97a12282e66eb540a542c09b9d14b2874 (diff) | |
| download | angular.js-fa6c8c313111d0a0b4f6e3eb2abd65f4f77cfc04.tar.bz2 | |
chore(Rakefile): rewrite version numbers in all index files
| -rw-r--r-- | Rakefile | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -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 |
