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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57df97cd828f99f64c225fac00b833ed53244607
4
- data.tar.gz: da04bf47c05996621415d84beddcaef4cf9e5abd
3
+ metadata.gz: cfb05eb0bdff0095e0a44c423194b3b459bdbb79
4
+ data.tar.gz: 8addbf360bbf94f0adfd7743a665d9ccb885d70b
5
5
  SHA512:
6
- metadata.gz: 21c5616ba5d7ff0df5a0614583910c0f7c8bcd4458f3084cf26a5467315210e91df516af11a2398029d5eb46f85d4d87157e3c98f0bc3c48d7946988143e246c
7
- data.tar.gz: c2296cee1bb950c96fccb48fd8ea261c0b966ff81bc93812a0c9c7427b26467618f952dfe6d110b43db88b40f8eee366e9e090761dcb8b573bb5ada2857ae7fd
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module RainforestCli
3
- THREADS = 32
3
+ THREADS = ENV.fetch('RAINFOREST_THREADS', 16).to_i
4
4
  end
@@ -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: 'Rows', total: test_ids.count, format: '%a %B %p%% %t')
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: 'Rows', total: tests.count, format: '%a %B %p%% %t')
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module RainforestCli
3
- VERSION = '1.6.1'
3
+ VERSION = '1.6.2'
4
4
  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.1
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-08 00:00:00.000000000 Z
12
+ date: 2016-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty