Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

Rich Meyers Ryan Tomayko
Rich Meyers

Apply the same fix logic used for haml.

Ryan Tomayko rtomayko merged commit 5b636e1 into from
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
12 rpg-shit-list.sh
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"
Something went wrong with that request. Please try again.