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 +4 -4
- data/asynchronic.gemspec +1 -1
- data/lib/asynchronic/process.rb +7 -2
- data/lib/asynchronic/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91d93cee903cf5734fc88048a090ba518d4c65e1
|
4
|
+
data.tar.gz: 441eb434a52aaacdc469c95f186a4aa2718af4b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
data/lib/asynchronic/process.rb
CHANGED
@@ -98,8 +98,13 @@ module Asynchronic
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def dependencies
|
101
|
-
return []
|
102
|
-
|
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
|
data/lib/asynchronic/version.rb
CHANGED
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.
|
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-
|
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
|