growthforecast-client 0.82.3 → 0.82.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/growthforecast-client.gemspec +1 -1
- data/lib/growthforecast/cli.rb +5 -1
- 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: 5b3280f3998917bc24978e82e87c0946a8eb59c7
|
4
|
+
data.tar.gz: fc799d6507200b816b14aa224947b7e1eae7987d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e28a4ada7a5e80d44adc8c2ff84b621a5b5e336aff9d7374326801591a9f3b5b30305c8fd76d0a1ea6bb70e96b97da8a27475d81610dcd1c101b6f6459f06f44
|
7
|
+
data.tar.gz: f3f8df49f1970806525b6c11dc726c59188b3db0b552f929556ae5a98440973141aba7d56fa0ff633b66bba2d6ce242b0fe891fcee16f2a13f7627f69c8ee3ac
|
data/CHANGELOG.md
CHANGED
data/lib/growthforecast/cli.rb
CHANGED
@@ -112,7 +112,11 @@ class GrowthForecast::CLI < Thor
|
|
112
112
|
start = Time.now
|
113
113
|
Parallel.each_with_index(paths, :in_processes => concurrency) do |path, i|
|
114
114
|
puts "Completed #{i} requests" if i % 1000 == 0 and i > 0
|
115
|
-
|
115
|
+
begin
|
116
|
+
@client.post_graph(path[0], path[1], path[2], { "number" => rand(1000) })
|
117
|
+
rescue => e
|
118
|
+
$stderr.puts "#{e.class} #{e.message}"
|
119
|
+
end
|
116
120
|
end
|
117
121
|
puts "Completed #{requests} requests"
|
118
122
|
duration = (Time.now - start).to_f
|