rainforest-cli 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -0
- data/lib/rainforest/cli/constants.rb +1 -1
- data/lib/rainforest/cli/exporter.rb +1 -1
- data/lib/rainforest/cli/uploader.rb +1 -1
- data/lib/rainforest/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfb05eb0bdff0095e0a44c423194b3b459bdbb79
|
4
|
+
data.tar.gz: 8addbf360bbf94f0adfd7743a665d9ccb885d70b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c2f2e1e31bf0c05551d737b7c158704d3e7cc9bddc16d51f90a105e46e9bdda94e6196ff22dfe69e37bc774c706eaadfb9597c951e4a23882c845157633498
|
7
|
+
data.tar.gz: 57c05636248d4edd5441ff6c2837c5470c3d71d7fc05114bafce51949d44dbcaad68def947317e353c7c4abf1027ba57288ab6f6d97bed62e54ee16eebcc675a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Rainforest CLI Changelog
|
2
2
|
|
3
|
+
## 1.6.2 - 8th June 2016
|
4
|
+
- Lower concurrent thread count to 16 and allow users to modify the amount of threads used.
|
5
|
+
(4333fca172e4e109a517ff6ffc5e11f89839fe85, @epaulet)
|
6
|
+
|
3
7
|
## 1.6.1 - 8th June 2016
|
4
8
|
- Use snappier API endpoint for validating RFML ids (e37a4e789eed9b329176ffdb16866aa8902a6cc5, @epaulet).
|
5
9
|
|
data/README.md
CHANGED
@@ -27,6 +27,11 @@ To use the cli client, you'll need your API token from a test settings page from
|
|
27
27
|
|
28
28
|
You can either pass the token with `--token YOUR_TOKEN_HERE` CLI option, or put it in the `RAINFOREST_API_TOKEN` environment variable.
|
29
29
|
|
30
|
+
You can customize the amount of threads to use when making HTTP requests by setting the
|
31
|
+
`RAINFOREST_THREADS` to the number of threads you'd like to use. If you are noticing
|
32
|
+
API errors when fetching or updating multiple tests, lowering this value can help.
|
33
|
+
The default value is `16`.
|
34
|
+
|
30
35
|
Run all of your tests
|
31
36
|
|
32
37
|
```bash
|
@@ -28,7 +28,7 @@ class RainforestCli::Exporter
|
|
28
28
|
else
|
29
29
|
Rainforest::Test.all(page_size: 1000).map { |t| t.id }
|
30
30
|
end
|
31
|
-
p = ProgressBar.create(title: '
|
31
|
+
p = ProgressBar.create(title: 'Tests', total: test_ids.count, format: '%a %B %p%% %t')
|
32
32
|
Parallel.each(test_ids, in_threads: threads, finish: lambda { |_item, _i, _result| p.increment }) do |test_id|
|
33
33
|
# Get the full test from the API
|
34
34
|
test = Rainforest::Test.retrieve(test_id)
|
@@ -29,7 +29,7 @@ class RainforestCli::Uploader
|
|
29
29
|
private
|
30
30
|
|
31
31
|
def each_in_parallel(tests, &blk)
|
32
|
-
progress_bar = ProgressBar.create(title: '
|
32
|
+
progress_bar = ProgressBar.create(title: 'Tests', total: tests.count, format: '%a %B %p%% %t')
|
33
33
|
Parallel.each(tests, in_threads: threads, finish: lambda { |_item, _i, _result| progress_bar.increment }) do |rfml_test|
|
34
34
|
blk.call(rfml_test)
|
35
35
|
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: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Smith
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|