asynchronic 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -4
- data/Rakefile +5 -0
- data/asynchronic.gemspec +13 -5
- data/lib/asynchronic/version.rb +1 -1
- data/spec/facade_spec.rb +1 -1
- data/spec/minitest_helper.rb +1 -0
- data/spec/process/life_cycle_examples.rb +7 -2
- data/spec/process/life_cycle_redis_spec.rb +0 -4
- metadata +47 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c233ba42d14f9cd01205b836b977bbb421967a86
|
4
|
+
data.tar.gz: 3981749bcf400e7a357a5f966faa1a22262d177b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ee6f44da055f4d10cdc4119bca30f4dd87db2230a16e47a7158871695ef66f9556cbb50233897406fb58ff2761c95817b0b641c1f4d66dcf3b7f6235617272a
|
7
|
+
data.tar.gz: fa2f7b3269ada65f0b0c756bef8de2f5e10a33b50b37c0cc6d144b26ce765a3752ccdfdb8036c9e53ff0da448a6fb2629de297d9dd2a0b87368957fa05da31cd
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -6,6 +6,11 @@ Rake::TestTask.new(:spec) do |t|
|
|
6
6
|
t.pattern = 'spec/**/*_spec.rb'
|
7
7
|
t.verbose = false
|
8
8
|
t.warning = false
|
9
|
+
t.loader = nil if ENV['TEST']
|
10
|
+
ENV['TEST'], ENV['LINE'] = ENV['TEST'].split(':') if ENV['TEST'] && !ENV['LINE']
|
11
|
+
t.options = ''
|
12
|
+
t.options << "--name=/#{ENV['NAME']}/ " if ENV['NAME']
|
13
|
+
t.options << "-l #{ENV['LINE']} " if ENV['LINE'] && ENV['TEST']
|
9
14
|
end
|
10
15
|
|
11
16
|
task :console do
|
data/asynchronic.gemspec
CHANGED
@@ -23,11 +23,19 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'class_config', '~> 0.0'
|
24
24
|
spec.add_dependency 'transparent_proxy', '~> 0.0'
|
25
25
|
|
26
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
27
|
-
spec.add_development_dependency 'rake'
|
26
|
+
spec.add_development_dependency 'bundler', '~> 1.12'
|
27
|
+
spec.add_development_dependency 'rake', '~> 11.0'
|
28
28
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
29
|
-
spec.add_development_dependency 'minitest-colorin', '~> 0.1'
|
30
29
|
spec.add_development_dependency 'minitest-great_expectations', '~> 0.0'
|
31
|
-
spec.add_development_dependency '
|
32
|
-
spec.add_development_dependency '
|
30
|
+
spec.add_development_dependency 'minitest-colorin', '~> 0.1'
|
31
|
+
spec.add_development_dependency 'minitest-line', '~> 0.6'
|
32
|
+
spec.add_development_dependency 'simplecov', '~> 0.12'
|
33
|
+
spec.add_development_dependency 'coveralls', '~> 0.8'
|
34
|
+
spec.add_development_dependency 'pry-nav', '~> 0.2'
|
35
|
+
|
36
|
+
if RUBY_VERSION < '2'
|
37
|
+
spec.add_development_dependency 'term-ansicolor', '~> 1.3.0'
|
38
|
+
spec.add_development_dependency 'tins', '~> 1.6.0'
|
39
|
+
spec.add_development_dependency 'json', '~> 1.8'
|
40
|
+
end
|
33
41
|
end
|
data/lib/asynchronic/version.rb
CHANGED
data/spec/facade_spec.rb
CHANGED
data/spec/minitest_helper.rb
CHANGED
@@ -4,6 +4,11 @@ module LifeCycleExamples
|
|
4
4
|
|
5
5
|
let(:queue) { env.default_queue }
|
6
6
|
|
7
|
+
after do
|
8
|
+
data_store.clear
|
9
|
+
queue_engine.clear
|
10
|
+
end
|
11
|
+
|
7
12
|
def create(type, params={})
|
8
13
|
env.create_process type, params
|
9
14
|
end
|
@@ -417,7 +422,7 @@ module LifeCycleExamples
|
|
417
422
|
end
|
418
423
|
|
419
424
|
it 'Inheritance of queues in processes. Specify queue in params' do
|
420
|
-
process = create NestedJob,
|
425
|
+
process = create NestedJob, input: 100, queue: :test_queue
|
421
426
|
|
422
427
|
process.queue.must_equal :test_queue
|
423
428
|
|
@@ -432,7 +437,7 @@ module LifeCycleExamples
|
|
432
437
|
end
|
433
438
|
|
434
439
|
it 'Inheritance of queues in processes. Redefine queue in job class' do
|
435
|
-
process = create NestedJobWithDifferentsQueues,
|
440
|
+
process = create NestedJobWithDifferentsQueues, input: 100, queue: :test_queue
|
436
441
|
|
437
442
|
process.queue.must_equal :test_queue
|
438
443
|
|
@@ -6,10 +6,6 @@ describe Asynchronic::Process, 'Life cycle - Redis' do
|
|
6
6
|
let(:queue_engine) { Asynchronic::QueueEngine::Ost.new }
|
7
7
|
let(:data_store) { Asynchronic::DataStore::Redis.new :asynchronic_test }
|
8
8
|
|
9
|
-
after do
|
10
|
-
data_store.clear
|
11
|
-
end
|
12
|
-
|
13
9
|
include LifeCycleExamples
|
14
10
|
|
15
11
|
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Naiman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - ~>
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
75
|
+
version: '1.12'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
82
|
+
version: '1.12'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
89
|
+
version: '11.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
96
|
+
version: '11.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '5.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: minitest-great_expectations
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: minitest-colorin
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,47 +137,61 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0.1'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: minitest-
|
140
|
+
name: minitest-line
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - ~>
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0.
|
145
|
+
version: '0.6'
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - ~>
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0.
|
152
|
+
version: '0.6'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: simplecov
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
|
-
- -
|
157
|
+
- - ~>
|
144
158
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
159
|
+
version: '0.12'
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
|
-
- -
|
164
|
+
- - ~>
|
151
165
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
166
|
+
version: '0.12'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: coveralls
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.8'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ~>
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0.8'
|
153
181
|
- !ruby/object:Gem::Dependency
|
154
182
|
name: pry-nav
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
156
184
|
requirements:
|
157
|
-
- -
|
185
|
+
- - ~>
|
158
186
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
187
|
+
version: '0.2'
|
160
188
|
type: :development
|
161
189
|
prerelease: false
|
162
190
|
version_requirements: !ruby/object:Gem::Requirement
|
163
191
|
requirements:
|
164
|
-
- -
|
192
|
+
- - ~>
|
165
193
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
194
|
+
version: '0.2'
|
167
195
|
description: DSL for asynchronic pipeline
|
168
196
|
email:
|
169
197
|
- gabynaiman@gmail.com
|