concurrent_executor 1.2.0 → 1.3.0

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
  SHA256:
3
- metadata.gz: ccdf00556bc04acd3d2d50890ba33812e28a2f06d9a84cd02d759c6db463d75c
4
- data.tar.gz: e1bb12b8f6690eebfad033cf119ea1c5affbecdd78ba04f54323779c12012b4f
3
+ metadata.gz: befad0e7f8e4ffdc012b1185e98c783190031117445181bd52172096759ddb57
4
+ data.tar.gz: f87234143f2b8f718700682597fa30fa1e68e99e36fabd4fa2b8eeb80938d300
5
5
  SHA512:
6
- metadata.gz: 117093f4daced145690f008ecb0fdeb0423f2911bd31c8a685be57942a9ed3fcca12977c2f508a7d6699cb54058dce81b535f488e707ed483417f4fbc2b05c3f
7
- data.tar.gz: 4121850b3c066d4e5b7b05525e681148f3e57fb95a594eb3dc0d986055b86610e423848ef241f894316584970ce9ae4a58386e25b6594ceed20e29e45ffefd0c
6
+ metadata.gz: cc3abaf471bbae5de2fdefd4cd808913b4ef0126deb03ad625e7c597bdf4c1fc3fa03d2aa8e0f861c0d9e95c8c77e44fdb59d41420e386247b9d543ec47a851c
7
+ data.tar.gz: 92da4dff5488743fe0bd0a209f24954a16d167a285215cdf452a45dff1f3f9255a5e907c03d1807372f38cb5df4637d8d9332a39bb032ef15415aa2aacc14b16
@@ -0,0 +1,21 @@
1
+ name: Test
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ ruby-test:
7
+ strategy:
8
+ fail-fast: false
9
+ matrix:
10
+ rubyimage: ["getterminus/ruby-docker-images:3.0-je-20210920", "getterminus/ruby-docker-images:2.7-je-20210920",]
11
+ runs-on: ubuntu-latest
12
+ container:
13
+ image: ${{ matrix.rubyimage }}
14
+ steps:
15
+ - name: Pull
16
+ uses: actions/checkout@v2
17
+ - name: Run Test
18
+ env:
19
+ COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
20
+ COVERALLS_NOISY: true
21
+ run: mkdir -p /coverage && bundle install && bundle exec rspec --color --format documentation
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.0.2
data/Gemfile.lock CHANGED
@@ -1,28 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- concurrent_executor (1.1.0)
4
+ concurrent_executor (1.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.2)
10
- codecov (0.4.0)
11
- simplecov (>= 0.15, < 0.22)
12
10
  coderay (1.1.3)
11
+ coveralls (0.8.23)
12
+ json (>= 1.8, < 3)
13
+ simplecov (~> 0.16.1)
14
+ term-ansicolor (~> 1.3)
15
+ thor (>= 0.19.4, < 2.0)
16
+ tins (~> 1.6)
13
17
  diff-lcs (1.4.4)
14
- docile (1.3.5)
18
+ docile (1.4.0)
19
+ json (2.5.1)
15
20
  method_source (1.0.0)
16
- parallel (1.20.1)
17
- parser (3.0.0.0)
21
+ parallel (1.21.0)
22
+ parser (3.0.2.0)
18
23
  ast (~> 2.4.1)
19
- pry (0.13.1)
24
+ pry (0.14.1)
20
25
  coderay (~> 1.1)
21
26
  method_source (~> 1.0)
22
27
  rainbow (3.0.0)
23
28
  rake (12.3.3)
24
- regexp_parser (2.0.3)
25
- rexml (3.2.4)
29
+ regexp_parser (2.1.1)
30
+ rexml (3.2.5)
26
31
  rspec (3.10.0)
27
32
  rspec-core (~> 3.10.0)
28
33
  rspec-expectations (~> 3.10.0)
@@ -32,40 +37,45 @@ GEM
32
37
  rspec-expectations (3.10.1)
33
38
  diff-lcs (>= 1.2.0, < 2.0)
34
39
  rspec-support (~> 3.10.0)
35
- rspec-mocks (3.10.1)
40
+ rspec-mocks (3.10.2)
36
41
  diff-lcs (>= 1.2.0, < 2.0)
37
42
  rspec-support (~> 3.10.0)
38
- rspec-support (3.10.1)
39
- rubocop (1.8.1)
43
+ rspec-support (3.10.2)
44
+ rubocop (1.21.0)
40
45
  parallel (~> 1.10)
41
46
  parser (>= 3.0.0.0)
42
47
  rainbow (>= 2.2.2, < 4.0)
43
48
  regexp_parser (>= 1.8, < 3.0)
44
49
  rexml
45
- rubocop-ast (>= 1.2.0, < 2.0)
50
+ rubocop-ast (>= 1.9.1, < 2.0)
46
51
  ruby-progressbar (~> 1.7)
47
52
  unicode-display_width (>= 1.4.0, < 3.0)
48
- rubocop-ast (1.4.1)
49
- parser (>= 2.7.1.5)
53
+ rubocop-ast (1.11.0)
54
+ parser (>= 3.0.1.1)
50
55
  ruby-progressbar (1.11.0)
51
- simplecov (0.21.2)
56
+ simplecov (0.16.1)
52
57
  docile (~> 1.1)
53
- simplecov-html (~> 0.11)
54
- simplecov_json_formatter (~> 0.1)
55
- simplecov-html (0.12.3)
56
- simplecov_json_formatter (0.1.2)
57
- unicode-display_width (2.0.0)
58
+ json (>= 1.8, < 3)
59
+ simplecov-html (~> 0.10.0)
60
+ simplecov-html (0.10.2)
61
+ sync (0.5.0)
62
+ term-ansicolor (1.7.1)
63
+ tins (~> 1.0)
64
+ thor (1.1.0)
65
+ tins (1.29.1)
66
+ sync
67
+ unicode-display_width (2.1.0)
58
68
 
59
69
  PLATFORMS
60
70
  ruby
61
71
 
62
72
  DEPENDENCIES
63
- codecov
64
73
  concurrent_executor!
74
+ coveralls
65
75
  pry
66
76
  rake (~> 12)
67
77
  rspec (~> 3)
68
78
  rubocop
69
79
 
70
80
  BUNDLED WITH
71
- 2.1.4
81
+ 2.2.22
@@ -28,8 +28,8 @@ Gem::Specification.new do |spec|
28
28
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ['lib']
30
30
 
31
- spec.add_development_dependency 'codecov'
32
31
  spec.add_development_dependency 'rake', '~> 12'
33
32
  spec.add_development_dependency 'rspec', '~> 3'
34
33
  spec.add_development_dependency 'rubocop'
34
+ spec.add_development_dependency 'coveralls'
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConcurrentExecutorVersion
4
- VERSION = '1.2.0'
4
+ VERSION = '1.3.0'
5
5
  end
@@ -33,12 +33,12 @@ class ConcurrentExecutor
33
33
  def consume_enumerable(enum)
34
34
  enum.each(&queue.method(:push))
35
35
  rescue ClosedQueueError
36
- self.class.logger.warn 'Queue closed during iteration'
36
+ logger.warn 'Queue closed during iteration'
37
37
  end
38
38
 
39
39
  class << self
40
40
  def consume_enumerable(enum, **args, &blk)
41
- executor = new(args.merge(executor: blk))
41
+ executor = new(**args.merge(executor: blk))
42
42
  executor.consume_enumerable(enum)
43
43
  rescue StandardError => e
44
44
  puts e
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concurrent_executor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Malinconico
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-25 00:00:00.000000000 Z
11
+ date: 2021-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: codecov
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +52,20 @@ dependencies:
66
52
  - - ">="
67
53
  - !ruby/object:Gem::Version
68
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: coveralls
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
69
  description: Executes things concurrently
70
70
  email:
71
71
  - bmalinconico@terminus.com
@@ -73,9 +73,11 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".github/workflows/test.yml"
76
77
  - ".gitignore"
77
78
  - ".rubocop-https---raw-githubusercontent-com-GetTerminus-ruby-shared-configs-master--rubocop-yml"
78
79
  - ".rubocop.yml"
80
+ - ".ruby-version"
79
81
  - Gemfile
80
82
  - Gemfile.lock
81
83
  - README.md
@@ -92,7 +94,7 @@ metadata:
92
94
  homepage_uri: https://github.com/GetTerminus/concurrent_executor
93
95
  source_code_uri: https://github.com/GetTerminus/concurrent_executor
94
96
  changelog_uri: https://github.com/GetTerminus/concurrent_executor/blob/master/CHANGELOG.md
95
- post_install_message:
97
+ post_install_message:
96
98
  rdoc_options: []
97
99
  require_paths:
98
100
  - lib
@@ -107,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
109
  - !ruby/object:Gem::Version
108
110
  version: '0'
109
111
  requirements: []
110
- rubygems_version: 3.1.2
111
- signing_key:
112
+ rubygems_version: 3.2.22
113
+ signing_key:
112
114
  specification_version: 4
113
115
  summary: Execute things concurrently
114
116
  test_files: []