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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92418f956aacbfab5fc27ad31a98bf1d88f0389d
4
- data.tar.gz: c8fb430b503e7d38b55a266da7f7213438cdccba
3
+ metadata.gz: 1765c58dd4f9ce1945c15371c8ace97f39c20c91
4
+ data.tar.gz: b8e3f9c43e000ab714b8be866fffac52ea17bca3
5
5
  SHA512:
6
- metadata.gz: 0f7d01aa9907a7ef0cc3e20c04ae547322a111c9d994eb4eb8f46ce3ccc1c1c8b75ab66cd49de8f8442c79c81931cc44de514bf92d40d36353bf3da354f21ec0
7
- data.tar.gz: 8d957ee184eedfa21b318f20243d57eb793d8139fc447998cc5a1f59dff8eedbc10a58bb9cbf0d2b4bc1ab8ca2695d91397bfa052b2124d27636260063ddde31
6
+ metadata.gz: 9ee6a775ae32aa155b93453491207640c47020f64b1564ff03f11baf885c9b337c47555e82e1ace4cb612570a0be6eabf7f1cd606d12f2fa0739d5790e142320
7
+ data.tar.gz: 212fd35ae05f2b3db55e3b24560c97b94b2d8d0e5e04323275d5ea8d4762ae9bfdb17d6e2de1396090d13c92744fa1ad21095a4ff6d19d4a232164c20fe079b6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sauce_overage (0.0.1)
4
+ sauce_overage (0.0.2)
5
5
  curb (~> 0.8.8)
6
6
  json (~> 1.8.3)
7
7
 
@@ -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
@@ -1,4 +1,4 @@
1
1
  module SauceOverage
2
- VERSION = '0.0.1' unless defined? ::SauceOverage::VERSION
2
+ VERSION = '0.0.2' unless defined? ::SauceOverage::VERSION
3
3
  DATE = '2015-09-21' unless defined? ::SauceOverage::DATE
4
4
  end
data/readme.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # sauce_overage
2
2
 
3
- [![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)
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 ENV['SAUCE_USERNAME']="..."
10
- export ENV['SAUCE_ACCESS_KEY']="..."
11
- export ENV['SAUCE_OVERAGE_LIMIT']="300"
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
- # will raise error if the limit is breached
14
- sauce_overage
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sauce_overage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - code@bootstraponline.com