rainforest-cli 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -7,18 +7,19 @@ A command line interface to interact with RainforestQA.
7
7
  $ gem install rainforest-cli
8
8
 
9
9
  ## Usage
10
+ To use the cli client, you'll need your API token from a test settings page from inside [Rainforest](https://app.rainforestqa.com/).
10
11
 
11
12
  Run all of your tests
12
13
 
13
- rainforest run all
14
+ rainforest run all --token YOUR_TOKEN_HERE
14
15
 
15
16
  Run and report
16
17
 
17
- rainforest run --fg all
18
+ rainforest run --fg all --token YOUR_TOKEN_HERE
18
19
 
19
20
  Run all tests with tag 'run-me' and abort previous in-progress runs.
20
21
 
21
- rainforest run --token a8b2fe2dd7360ec72aaef0a0312fa7fa --tag run-me --conflict abort
22
+ rainforest run --tag run-me --conflict abort --token YOUR_TOKEN_HERE
22
23
 
23
24
  ## Contributing
24
25
 
@@ -22,6 +22,12 @@ module Rainforest
22
22
  puts "Issuing run"
23
23
 
24
24
  response = post(API_URL, post_opts)
25
+
26
+ if response['error']
27
+ puts "Error starting your run: #{response['error']}"
28
+ exit
29
+ end
30
+
25
31
  run_id = response["id"]
26
32
  running = true
27
33
 
@@ -1,5 +1,5 @@
1
1
  module Rainforest
2
2
  module Cli
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rainforest-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-24 00:00:00.000000000 Z
13
+ date: 2013-09-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty