sauce_overage 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sauce_overage/account.rb +2 -2
- data/lib/sauce_overage/version.rb +1 -1
- data/readme.md +12 -6
- data/release_notes.md +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1765c58dd4f9ce1945c15371c8ace97f39c20c91
|
4
|
+
data.tar.gz: b8e3f9c43e000ab714b8be866fffac52ea17bca3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ee6a775ae32aa155b93453491207640c47020f64b1564ff03f11baf885c9b337c47555e82e1ace4cb612570a0be6eabf7f1cd606d12f2fa0739d5790e142320
|
7
|
+
data.tar.gz: 212fd35ae05f2b3db55e3b24560c97b94b2d8d0e5e04323275d5ea8d4762ae9bfdb17d6e2de1396090d13c92744fa1ad21095a4ff6d19d4a232164c20fe079b6
|
data/Gemfile.lock
CHANGED
@@ -9,11 +9,11 @@ module SauceOverage
|
|
9
9
|
def initialize(opts = {})
|
10
10
|
@user = opts.fetch(:user, sauce_user)
|
11
11
|
fail 'Must provide user' unless user
|
12
|
-
user.strip
|
12
|
+
@user = user.strip
|
13
13
|
|
14
14
|
@key = opts.fetch(:key, sauce_key)
|
15
15
|
fail 'Must provide key' unless key
|
16
|
-
key.strip
|
16
|
+
@key = key.strip
|
17
17
|
end
|
18
18
|
|
19
19
|
def get_user
|
data/readme.md
CHANGED
@@ -1,15 +1,21 @@
|
|
1
1
|
# sauce_overage
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/sauce_overage.svg)](https://rubygems.org/gems/sauce_overage)
|
4
4
|
[![Build Status](https://travis-ci.org/bootstraponline/sauce_overage.svg)](https://travis-ci.org/bootstraponline/sauce_overage)
|
5
|
+
[![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)
|
5
6
|
|
6
7
|
Automatically prevent tests from running on overage minutes by tracking remaining time
|
7
8
|
|
8
9
|
```bash
|
9
|
-
export
|
10
|
-
export
|
11
|
-
export
|
10
|
+
export SAUCE_USERNAME="..."
|
11
|
+
export SAUCE_ACCESS_KEY="..."
|
12
|
+
export SAUCE_OVERAGE_LIMIT="300"
|
13
|
+
|
14
|
+
# if the limit is breached an error is raised and
|
15
|
+
# the exit code is set to one
|
16
|
+
$ sauce_overage
|
17
|
+
300 minute limit breached (120 remaining) (RuntimeError)
|
12
18
|
|
13
|
-
|
14
|
-
|
19
|
+
$ echo $?
|
20
|
+
1
|
15
21
|
```
|
data/release_notes.md
CHANGED
@@ -0,0 +1,6 @@
|
|
1
|
+
#### v0.0.2 2015-09-21
|
2
|
+
|
3
|
+
- [4abd1f0](https://github.com/bootstraponline/sauce_overage/commit/4abd1f050a18c8f464995cdbe215906dba0c9063) Release 0.0.2
|
4
|
+
- [6472021](https://github.com/bootstraponline/sauce_overage/commit/6472021c0b6ffba69d6a6a69543263f7ca23d69e) Update readme
|
5
|
+
- [34217d9](https://github.com/bootstraponline/sauce_overage/commit/34217d9f3f85665289863273908db2e25692e5cd) Fix can't modify frozen String
|
6
|
+
- [7fca184](https://github.com/bootstraponline/sauce_overage/commit/7fca18442e16fe63ba6d6d29f640da15640c175d) Add gem badge to readme
|