Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Sass reads VERSION/VERSION_NAME/REVISION from package root, fix #28

Merged
merged 1 commit into from Oct 18, 2011
Jump to file or symbol
Failed to load files and symbols.
+12 −0
Split
View
@@ -80,6 +80,18 @@ RedCloth)
rm -rf "lib/tasks"
;;
+sass)
+ fixable "sass reads VERSION, VERSION_NAME, REVISION files from package root"
+ cd "$path"
+ revision=$(cat REVISION 2>/dev/null || true)
+ vername=$(cat VERSION_NAME 2>/dev/null || true)
+ sedi "
+ s/File.read(scope('VERSION'))/'$version'/g
+ s/File.read(scope('REVISION'))/'$revision'/g
+ s/File.read(scope('VERSION_NAME'))/'$vername'/g
+ " lib/sass/version.rb
+ ;;
+
SystemTimer)
fixable "system_timer.rb and system_timer_stub.rb requires rubygems"
cd "$path"