aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2012-01-16 23:40:13 -0800
committerIgor Minar2012-01-17 09:49:39 -0800
commit0d4def452e24b75714afcf4beb182c921e7ecd8f (patch)
tree385dd76f6eeb831c79262ec6938119937efd3943
parent897d0f1424e743b318713e2d6ee613dfaea17c5e (diff)
downloadangular.js-0d4def452e24b75714afcf4beb182c921e7ecd8f.tar.bz2
fix(Rakefile): rewrite version number for mocks.js
-rw-r--r--Rakefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 512d1e73..fdbd573b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -169,6 +169,13 @@ task :package => [:clean, :compile, :docs] do
FileUtils.cp_r path_to('i18n'), "#{pkg_dir}/i18n-#{NG_VERSION.full}"
FileUtils.cp_r path_to('docs'), "#{pkg_dir}/docs-#{NG_VERSION.full}"
+ File.open("#{pkg_dir}/angular-mocks-#{NG_VERSION.full}.js", File::RDWR) do |f|
+ text = f.read
+ f.truncate 0
+ f.rewind
+ f.write text.sub('"NG_VERSION_FULL"', NG_VERSION.full)
+ end
+
File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index.html", File::RDWR) do |f|
text = f.read
f.truncate 0