Skip to content
Browse files

Add upgrade warning to README

  • Loading branch information...
1 parent 13bfc2d commit aca928a003ff0cd808bd0894a7b35dd683f23bf2 @dudleyf dudleyf committed Feb 5, 2012
Showing with 32 additions and 0 deletions.
  1. +32 −0 README.yard
View
32 README.yard
@@ -41,6 +41,38 @@ that transforms those files. Within each pipeline, you can specify
a series of filters to describe the transformations you'd like to
apply to the files.
+= Upgrading from Previous Versions
+
+The +Assetfile+ syntax has changed in version 0.6.0. In previous
+versions, each +Assetfile+ defined a single pipeline, and +input+
+statements would add input files to that pipeline. After version
+0.6.0, multiple pipelines can be defined in an +Assetfile+. The
++input+ method now takes a block, and this block defines a pipeline.
+This means that any +match+ blocks or filters must be defined
+inside an +input+ block, and no longer at the top level. For example,
+this:
+
+ !!!ruby
+ # Prior to 0.6.0
+ output "public"
+ input "assets"
+
+ match "**/*.js" do
+ concat
+ end
+
+would now be written as:
+
+ !!!ruby
+ # After 0.6.0
+ output "public"
+
+ input "assets" do
+ match "**/*.js" do
+ concat
+ end
+ end
+
= Filters
A filter is a simple class that inherits from

0 comments on commit aca928a

Please sign in to comment.
Something went wrong with that request. Please try again.