asynchronic 1.5.1 → 1.5.2

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
  SHA1:
3
- metadata.gz: 208fbdbb4ecc99c379e02e453f014693f0aa9b4e
4
- data.tar.gz: d274c2fa79f7a1fafdff2de097f08dedde801c64
3
+ metadata.gz: 91d93cee903cf5734fc88048a090ba518d4c65e1
4
+ data.tar.gz: 441eb434a52aaacdc469c95f186a4aa2718af4b7
5
5
  SHA512:
6
- metadata.gz: dc97dd65da5af0027afac0ac88623f1dbd4a12d9ec6823b1bf58c819ba6e8a53c30cd1502a59c19a64dcde64b72daca4d3db67c6c95d60f3ba52bc73fa0f9c3f
7
- data.tar.gz: 6acd4d9faaabce8023b28b5b5b75228cbe4867259966fa06358e0e75bf77d8027d993e5192b2d5c5c3a4b265a8770827709a15225161228c8db5a208b2a7bdac
6
+ metadata.gz: 9d1c471352876eaf7ef6a62369a32dcfa1bfe9dc75e872def46291c12b8a09cd9ac3722b532d51b0d4d0a40837515756f37409d02d2c560463eaa3d002f8b8da
7
+ data.tar.gz: 25d56122f0a8e13847b247de73b4bb2d30859f4a02588a9719838a4aba3430c9d583e4641dd7e1db4340874610842eff36587086dd2d39e3466ac352445fb903
data/asynchronic.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
 
27
27
  spec.add_development_dependency 'bundler', '~> 1.12'
28
28
  spec.add_development_dependency 'rake', '~> 11.0'
29
- spec.add_development_dependency 'minitest', '~> 5.0'
29
+ spec.add_development_dependency 'minitest', '~> 5.0', '< 5.11'
30
30
  spec.add_development_dependency 'minitest-great_expectations', '~> 0.0'
31
31
  spec.add_development_dependency 'minitest-colorin', '~> 0.1'
32
32
  spec.add_development_dependency 'minitest-line', '~> 0.6'
@@ -98,8 +98,13 @@ module Asynchronic
98
98
  end
99
99
 
100
100
  def dependencies
101
- return [] unless parent
102
- data_store[:dependencies].map { |d| parent[d] }
101
+ return [] if parent.nil? || data_store[:dependencies].empty?
102
+
103
+ parent_processes = parent.processes.each_with_object({}) do |process, hash|
104
+ hash[process.name] = process
105
+ end
106
+
107
+ data_store[:dependencies].map { |d| parent_processes[d.to_s] }
103
108
  end
104
109
 
105
110
  def enqueue
@@ -1,3 +1,3 @@
1
1
  module Asynchronic
2
- VERSION = '1.5.1'
2
+ VERSION = '1.5.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asynchronic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-10 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -115,6 +115,9 @@ dependencies:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '5.0'
118
+ - - "<"
119
+ - !ruby/object:Gem::Version
120
+ version: '5.11'
118
121
  type: :development
119
122
  prerelease: false
120
123
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,6 +125,9 @@ dependencies:
122
125
  - - "~>"
123
126
  - !ruby/object:Gem::Version
124
127
  version: '5.0'
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '5.11'
125
131
  - !ruby/object:Gem::Dependency
126
132
  name: minitest-great_expectations
127
133
  requirement: !ruby/object:Gem::Requirement