shotgunner 0.1.5 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/shotgunner/parallel.rb +1 -1
  3. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ec304efcbca4c8edc0eb78f9257c261dbb9f5a86276ab742f6bef34dcbc8003
4
- data.tar.gz: 050ca25cca81c3da5a4afc7921b20078e4aa249a020a3b59ef5aa3284902fb63
3
+ metadata.gz: 50f7a565f1d051ad0a99546f7e6d3a437de3fa8dfb1196872af69e2c7c28b421
4
+ data.tar.gz: 5136cf0f02cc10606a387f33c965a2769b95ba2b7d734c3ffa2ef2d4133666fd
5
5
  SHA512:
6
- metadata.gz: 918a61027e0d43e841a287bfc81fc4cbdac6da2092480fb16ff647360496892181ca169d68d6b2c9f97b5a91625d153bee7a1428d03fb22007abd84504008a2a
7
- data.tar.gz: fd376df404ab44ffc9424772392e12eb6e4bf4093a1fdc16ceb81035d9de2712c58ac3cd56b88edf7e681b499deaf2d2b0ff67c1bda1ed5ebab4022f79763d0b
6
+ metadata.gz: 570e90a4ca9852217efe7f28550c8f7c6a1edfb896a77728942ffc71435d99f46931f0485826e63dfcf04d10ac51479335438b30771d1b97b03192f872912ff3
7
+ data.tar.gz: 0fdb917fd3965e8998611d62e4c0fc66f0ddaa880d91168c67e2f5fd2b6c4531640d025da720016fffc45ac501f9ca28c14d3cadde20bb9b005ab8b979af1422
@@ -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' if threads == (1..100)
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.5
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! Fast and furious!
42
+ summary: Shotgunner - helps to fetch external api or run tasks in a parallel way!
43
+ Fast and furious!
42
44
  test_files: []