shotgunner 0.1.8 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/array.rb +7 -0
  3. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c08913aab8f39266b071b796662097e01cccc22e46af6bbb0d7f53370042d74
4
- data.tar.gz: 25b057a4846b34f1b713ab6a6c65b80e6251bacdc22c2a3bf581668c5790b71f
3
+ metadata.gz: 54313ad696596dca021a6e667de5489c8e4e9925ea264e858b83b98f66b3c51d
4
+ data.tar.gz: c8ef8d9308f9f1d19d793994352757cddbbde33be8bc754e93577a4c1cab146b
5
5
  SHA512:
6
- metadata.gz: df768f9d8813513d3a494dad52cffacb7ec8a49a3bb4f33a5af16acf1e4761c763ce55836a454d9b1b63945cdba35db1278173dab1c591b6e359b25c5b3c1b39
7
- data.tar.gz: 69d8e6e92b5f68b42e53725a7a40dde784b56cc37350cd1bbfd9750e1eb1f5c0454c93ccba156c6759c25d88e429ca6cddb227dca06f83ecc95d367ebf4e843a
6
+ metadata.gz: 9f92a5954e4ef46a6822df24b81d53f2b41f8b6efe1a3fde3b98b5a1871c7820c94b3346dae8b29a3fadc44bc4d5afc8f6bbc0710053eae041cfbeb6686ed10a
7
+ data.tar.gz: d4513e0d1c9cd6895ad5989f567f7b72c5133cb984f6246efbfb9eff10ce831e1dd0bb504825075d79321bbdc6b4e4b52c368ba3eca7b94b1702ca240f253bee
data/lib/array.rb ADDED
@@ -0,0 +1,7 @@
1
+ class Array
2
+ include Shotgunner::Parallel
3
+
4
+ def pmap(options = {})
5
+ run(tasks: self, **options){ |item| yield(item) }
6
+ end
7
+ end
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.8
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Saltykov
@@ -16,6 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - lib/array.rb
19
20
  - lib/shotgunner/parallel.rb
20
21
  homepage: https://github.com/nucleom42/shotgunner
21
22
  licenses:
@@ -39,5 +40,6 @@ requirements: []
39
40
  rubygems_version: 3.0.8
40
41
  signing_key:
41
42
  specification_version: 4
42
- summary: Shotgunner - helps to fetch external api in a parallel way! Fast and furious!
43
+ summary: Shotgunner - helps to fetch external api or run tasks in a parallel way!
44
+ Fast and furious!
43
45
  test_files: []