shotgunner 0.1.5 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shotgunner/parallel.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50f7a565f1d051ad0a99546f7e6d3a437de3fa8dfb1196872af69e2c7c28b421
|
4
|
+
data.tar.gz: 5136cf0f02cc10606a387f33c965a2769b95ba2b7d734c3ffa2ef2d4133666fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 570e90a4ca9852217efe7f28550c8f7c6a1edfb896a77728942ffc71435d99f46931f0485826e63dfcf04d10ac51479335438b30771d1b97b03192f872912ff3
|
7
|
+
data.tar.gz: 0fdb917fd3965e8998611d62e4c0fc66f0ddaa880d91168c67e2f5fd2b6c4531640d025da720016fffc45ac501f9ca28c14d3cadde20bb9b005ab8b979af1422
|
data/lib/shotgunner/parallel.rb
CHANGED
@@ -35,7 +35,7 @@ module Shotgunner
|
|
35
35
|
|
36
36
|
def validate_params(tasks, threads)
|
37
37
|
raise ArgumentError, 'There is no tasks array defined!' if tasks.empty?
|
38
|
-
raise ArgumentError, 'Invalid threads number
|
38
|
+
raise ArgumentError, 'Invalid threads number, please select number from 1..100' unless threads&.between?(1, 100)
|
39
39
|
end
|
40
40
|
|
41
41
|
def initiate(options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shotgunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oleg Saltykov
|
@@ -18,7 +18,8 @@ extra_rdoc_files: []
|
|
18
18
|
files:
|
19
19
|
- lib/shotgunner/parallel.rb
|
20
20
|
homepage: https://github.com/nucleom42/shotgunner
|
21
|
-
licenses:
|
21
|
+
licenses:
|
22
|
+
- MIT
|
22
23
|
metadata: {}
|
23
24
|
post_install_message:
|
24
25
|
rdoc_options: []
|
@@ -38,5 +39,6 @@ requirements: []
|
|
38
39
|
rubygems_version: 3.0.8
|
39
40
|
signing_key:
|
40
41
|
specification_version: 4
|
41
|
-
summary: Shotgunner - helps to fetch external api in a parallel way!
|
42
|
+
summary: Shotgunner - helps to fetch external api or run tasks in a parallel way!
|
43
|
+
Fast and furious!
|
42
44
|
test_files: []
|