readme.md in sauce_overage-0.0.1 vs readme.md in sauce_overage-0.0.2
- old
+ new
@@ -1,15 +1,21 @@
# sauce_overage
-[![Coverage Status](https://coveralls.io/repos/bootstraponline/sauce_overage/badge.svg?branch=master&service=github&nocache)](https://coveralls.io/github/bootstraponline/sauce_overage?branch=master)
+[![Gem Version](https://badge.fury.io/rb/sauce_overage.svg)](https://rubygems.org/gems/sauce_overage)
[![Build Status](https://travis-ci.org/bootstraponline/sauce_overage.svg)](https://travis-ci.org/bootstraponline/sauce_overage)
+[![Coverage Status](https://coveralls.io/repos/bootstraponline/sauce_overage/badge.svg?branch=master&service=github&nocache)](https://coveralls.io/github/bootstraponline/sauce_overage?branch=master)
Automatically prevent tests from running on overage minutes by tracking remaining time
```bash
-export ENV['SAUCE_USERNAME']="..."
-export ENV['SAUCE_ACCESS_KEY']="..."
-export ENV['SAUCE_OVERAGE_LIMIT']="300"
+export SAUCE_USERNAME="..."
+export SAUCE_ACCESS_KEY="..."
+export SAUCE_OVERAGE_LIMIT="300"
-# will raise error if the limit is breached
-sauce_overage
+# if the limit is breached an error is raised and
+# the exit code is set to one
+$ sauce_overage
+300 minute limit breached (120 remaining) (RuntimeError)
+
+$ echo $?
+1
```