README.md in business_pipeline-0.1.3 vs README.md in business_pipeline-0.2.0
- old
+ new
@@ -1,5 +1,7 @@
+[![Build Status](https://travis-ci.org/simonc/business_pipeline.svg?branch=master)](https://travis-ci.org/simonc/business_pipeline)
+
# BusinessPipeline
BusinessPipeline (BP) aim is to help organize your app's logic in a generic way. You define business bricks that you can then plug together to build more eveolved pipelines.
While it was developed with Rails in mind, BP has no dependency upon it and can be used to organize pretty much any Ruby code.
@@ -74,18 +76,18 @@
end
class SortUsers
include BusinessPipeline::Step
-def call
+ def call
context.users = context.users.order(context.sort)
end
end
class PaginateUsers
include BusinessPipeline::Step
-def call
+ def call
context.users = context.user.page(context.page)
end
end
```