in_threads 1.5.3 → 1.5.4

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: 8ebe4a6d33ed8fc2827b9a20409407ef75e67942b8a32ad19bba8ecfcdd2460d
4
- data.tar.gz: '06999b5635d13894260b71e33b01858f902e19aa5953e8bd7444731dc204e928'
3
+ metadata.gz: 2a13000fc0f561105a6adeeea71266dbf5c612be3db0a9091966b2296e5778f4
4
+ data.tar.gz: f8fd0391af01fcf83066904a32fd99e9709e2724d301753e960a0d227b0bc551
5
5
  SHA512:
6
- metadata.gz: 196a647289a80b9f43659a63f629f92dba72bb44ded0b51d2c787e5f8d63f63497c28025fdef818928d61193b0b86ae8700954a9f66f414d761e6e4a4e41b2ea
7
- data.tar.gz: 18f2c5b6dc257f61cccc950d0ad5563099cc741bfc6bff92a4368e59082e1d6764d566fcaf7b1d1526021905440313e28b0e3a631b67f092399d7b6c0dcd316e
6
+ metadata.gz: db4a7b1c67f3a0e53af5e74b43c8620ca90a7ba863415c8d7246feb55f687ac49772d4aa96e43152b64df6b8822e34563186f94233ea9fff8a49002e0d920a29
7
+ data.tar.gz: 7a5305b83387426a78f502a71941f476f0af8dd69c1ca16cb95902270898aebf72b5c7f513c52419b398e0fc02f8fec5e65466279f44cec953f3c547a3340259
@@ -14,7 +14,7 @@ Layout/DotPosition:
14
14
  Layout/EndAlignment:
15
15
  EnforcedStyleAlignWith: variable
16
16
 
17
- Layout/IndentFirstHashElement:
17
+ Layout/FirstHashElementIndentation:
18
18
  EnforcedStyle: consistent
19
19
 
20
20
  Layout/RescueEnsureAlignment:
@@ -33,10 +33,10 @@ Lint/AmbiguousBlockAssociation:
33
33
  Lint/EnsureReturn:
34
34
  Enabled: false
35
35
 
36
- Lint/RescueException:
36
+ Lint/RedundantRequireStatement:
37
37
  Enabled: false
38
38
 
39
- Lint/UnneededRequireStatement:
39
+ Lint/RescueException:
40
40
  Enabled: false
41
41
 
42
42
  Metrics/AbcSize:
@@ -1,17 +1,20 @@
1
1
  sudo: false
2
+ dist: trusty
2
3
  language: ruby
3
4
  rvm:
4
- - '1.8.7-p371'
5
+ - '1.8.7-p374'
5
6
  - '1.9.3-p551'
6
7
  - '2.0.0-p648'
7
8
  - '2.1.10'
8
9
  - '2.2.10'
9
10
  - '2.3.8'
10
- - '2.4.6'
11
- - '2.5.5'
12
- - '2.6.3'
11
+ - '2.4.9'
12
+ - '2.5.7'
13
+ - '2.6.5'
14
+ - '2.7.0'
13
15
  - 'ruby-head'
14
- - 'jruby-9.1.9.0'
16
+ - 'jruby-9.1.17.0'
17
+ - 'jruby-9.2.7.0'
15
18
  before_install:
16
19
  - gem install rubygems-update || gem install rubygems-update --version '< 3'
17
20
  - gem update --system
@@ -20,10 +23,11 @@ script: bundle exec rspec
20
23
  matrix:
21
24
  include:
22
25
  - env: RUBOCOP=✓
23
- rvm: '2.6.3'
26
+ rvm: '2.6.5'
24
27
  script: bundle exec rubocop
25
28
  - env: CHECK_RUBIES=✓
26
- rvm: '2.6.3'
29
+ rvm: '2.6.5'
27
30
  script: bundle exec travis_check_rubies
28
31
  allow_failures:
29
32
  - rvm: 'ruby-head'
33
+ - rvm: 'jruby-9.2.7.0'
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v1.5.4 (2019-12-26)
6
+
7
+ * Register `filter_map` to run in threads and `tally` to run without threads (as it doesn't accept block) [@toy](https://github.com/toy)
8
+
5
9
  ## v1.5.3 (2019-07-14)
6
10
 
7
11
  * Remove deprecated `rubyforge_project` attribute from gemspec [rubygems/rubygems#2436](https://github.com/rubygems/rubygems/pull/2436) [@toy](https://github.com/toy)
@@ -2,9 +2,9 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'in_threads'
5
- s.version = '1.5.3'
5
+ s.version = '1.5.4'
6
6
  s.summary = %q{Run all possible enumerable methods in concurrent/parallel threads}
7
- s.homepage = "http://github.com/toy/#{s.name}"
7
+ s.homepage = "https://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
9
9
  s.license = 'MIT'
10
10
 
@@ -23,6 +23,6 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency 'rspec', '~> 3.0'
24
24
  s.add_development_dependency 'rspec-retry', '~> 0.3'
25
25
  if RUBY_VERSION >= '2.2'
26
- s.add_development_dependency 'rubocop', '~> 0.59'
26
+ s.add_development_dependency 'rubocop', '~> 0.59', '!= 0.78.0'
27
27
  end
28
28
  end
@@ -101,6 +101,7 @@ class InThreads < SimpleDelegator
101
101
  partition find_all select filter reject count
102
102
  collect map group_by max_by min_by minmax_by sort_by sum uniq
103
103
  flat_map collect_concat
104
+ filter_map
104
105
  ], :ignore_undefined => true
105
106
 
106
107
  INCOMPATIBLE_METHODS = %w[
@@ -114,6 +115,7 @@ class InThreads < SimpleDelegator
114
115
  chunk chunk_while slice_before slice_after slice_when
115
116
  lazy
116
117
  chain
118
+ tally
117
119
  ].map(&:to_sym)
118
120
 
119
121
  # Special case method, works by applying `run_in_threads_use_block_result` with
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: in_threads
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-14 00:00:00.000000000 Z
11
+ date: 2019-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -45,6 +45,9 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.59'
48
+ - - "!="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.78.0
48
51
  type: :development
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,6 +55,9 @@ dependencies:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
57
  version: '0.59'
58
+ - - "!="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.78.0
55
61
  description:
56
62
  email:
57
63
  executables: []
@@ -68,13 +74,13 @@ files:
68
74
  - in_threads.gemspec
69
75
  - lib/in_threads.rb
70
76
  - spec/in_threads_spec.rb
71
- homepage: http://github.com/toy/in_threads
77
+ homepage: https://github.com/toy/in_threads
72
78
  licenses:
73
79
  - MIT
74
80
  metadata:
75
81
  bug_tracker_uri: https://github.com/toy/in_threads/issues
76
82
  changelog_uri: https://github.com/toy/in_threads/blob/master/CHANGELOG.markdown
77
- documentation_uri: https://www.rubydoc.info/gems/in_threads/1.5.3
83
+ documentation_uri: https://www.rubydoc.info/gems/in_threads/1.5.4
78
84
  source_code_uri: https://github.com/toy/in_threads
79
85
  post_install_message:
80
86
  rdoc_options: []
@@ -91,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
97
  - !ruby/object:Gem::Version
92
98
  version: '0'
93
99
  requirements: []
94
- rubygems_version: 3.0.3
100
+ rubygems_version: 3.1.2
95
101
  signing_key:
96
102
  specification_version: 4
97
103
  summary: Run all possible enumerable methods in concurrent/parallel threads