Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@richmeyers

Apply the same fix logic used for haml.

@rtomayko rtomayko merged commit 5b636e1 into rtomayko:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 rpg-shit-list.sh
View
12 rpg-shit-list.sh
@@ -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"
Something went wrong with that request. Please try again.