sp-job 0.2.3 → 0.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/configure +40 -0
- data/lib/sp-job.rb +21 -2
- data/lib/sp/job/back_burner.rb +350 -68
- data/lib/sp/job/broker.rb +18 -16
- data/lib/sp/job/broker_http_client.rb +80 -20
- data/lib/sp/job/broker_oauth2_client.rb +12 -4
- data/lib/sp/job/common.rb +876 -62
- data/lib/sp/job/configure/configure.rb +640 -0
- data/lib/sp/job/curl_http_client.rb +100 -0
- data/lib/sp/job/easy_http_client.rb +94 -0
- data/lib/sp/job/http_client.rb +51 -0
- data/lib/sp/job/job_db_adapter.rb +38 -36
- data/lib/sp/job/jsonapi_error.rb +31 -74
- data/lib/sp/job/jwt.rb +55 -5
- data/lib/sp/job/mail_queue.rb +9 -2
- data/lib/sp/job/manticore_http_client.rb +94 -0
- data/lib/sp/job/pg_connection.rb +90 -10
- data/lib/sp/job/query_params.rb +45 -0
- data/lib/sp/job/rfc822.rb +13 -0
- data/lib/sp/job/session.rb +239 -0
- data/lib/sp/job/unique_file.rb +37 -1
- data/lib/sp/job/uploaded_image_converter.rb +27 -19
- data/lib/sp/job/worker.rb +51 -1
- data/lib/sp/job/worker_thread.rb +22 -7
- data/lib/sp/jsonapi.rb +24 -0
- data/lib/sp/jsonapi/adapters/base.rb +177 -0
- data/lib/sp/jsonapi/adapters/db.rb +26 -0
- data/lib/sp/jsonapi/adapters/raw_db.rb +96 -0
- data/lib/sp/jsonapi/exceptions.rb +54 -0
- data/lib/sp/jsonapi/model/base.rb +31 -0
- data/lib/sp/jsonapi/model/concerns/attributes.rb +91 -0
- data/lib/sp/jsonapi/model/concerns/model.rb +39 -0
- data/lib/sp/jsonapi/model/concerns/persistence.rb +212 -0
- data/lib/sp/jsonapi/model/concerns/serialization.rb +57 -0
- data/lib/sp/jsonapi/parameters.rb +54 -0
- data/lib/sp/jsonapi/service.rb +96 -0
- data/lib/tasks/configure.rake +2 -496
- data/sp-job.gemspec +3 -2
- metadata +24 -2
data/sp-job.gemspec
CHANGED
@@ -26,14 +26,15 @@ Gem::Specification.new do |spec|
|
|
26
26
|
f.match(%r{^(test|spec|features)/})
|
27
27
|
end
|
28
28
|
spec.bindir = 'bin'
|
29
|
-
spec.executables = ['queue-job', 'unique-file']
|
29
|
+
spec.executables = ['queue-job', 'unique-file', 'configure']
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
spec.add_dependency 'os'
|
32
32
|
spec.add_dependency 'ffi'
|
33
33
|
spec.add_dependency 'redis'
|
34
34
|
spec.add_dependency 'backburner'
|
35
35
|
spec.add_dependency 'pg' unless RUBY_ENGINE == 'jruby'
|
36
|
-
spec.add_dependency '
|
36
|
+
spec.add_dependency 'jruby-pg' if RUBY_ENGINE == 'jruby'
|
37
|
+
spec.add_dependency 'manticore' if RUBY_ENGINE == 'jruby'
|
37
38
|
spec.add_dependency 'curb' unless RUBY_ENGINE == 'jruby'
|
38
39
|
spec.add_dependency 'oauth2' unless RUBY_ENGINE == 'jruby'
|
39
40
|
spec.add_dependency 'oauth2-client' unless RUBY_ENGINE == 'jruby'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sp-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eurico Inocencio, Vitor Pinho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|
@@ -268,6 +268,7 @@ email:
|
|
268
268
|
executables:
|
269
269
|
- queue-job
|
270
270
|
- unique-file
|
271
|
+
- configure
|
271
272
|
extensions: []
|
272
273
|
extra_rdoc_files: []
|
273
274
|
files:
|
@@ -279,6 +280,7 @@ files:
|
|
279
280
|
- README.md
|
280
281
|
- Rakefile
|
281
282
|
- VERSION
|
283
|
+
- bin/configure
|
282
284
|
- bin/console
|
283
285
|
- bin/queue-job
|
284
286
|
- bin/setup
|
@@ -290,16 +292,36 @@ files:
|
|
290
292
|
- lib/sp/job/broker_http_client.rb
|
291
293
|
- lib/sp/job/broker_oauth2_client.rb
|
292
294
|
- lib/sp/job/common.rb
|
295
|
+
- lib/sp/job/configure/configure.rb
|
296
|
+
- lib/sp/job/curl_http_client.rb
|
297
|
+
- lib/sp/job/easy_http_client.rb
|
298
|
+
- lib/sp/job/http_client.rb
|
293
299
|
- lib/sp/job/job_db_adapter.rb
|
294
300
|
- lib/sp/job/jsonapi_error.rb
|
295
301
|
- lib/sp/job/jwt.rb
|
296
302
|
- lib/sp/job/mail_queue.rb
|
303
|
+
- lib/sp/job/manticore_http_client.rb
|
297
304
|
- lib/sp/job/pg_connection.rb
|
305
|
+
- lib/sp/job/query_params.rb
|
306
|
+
- lib/sp/job/rfc822.rb
|
307
|
+
- lib/sp/job/session.rb
|
298
308
|
- lib/sp/job/unique_file.rb
|
299
309
|
- lib/sp/job/uploaded_image_converter.rb
|
300
310
|
- lib/sp/job/version.rb
|
301
311
|
- lib/sp/job/worker.rb
|
302
312
|
- lib/sp/job/worker_thread.rb
|
313
|
+
- lib/sp/jsonapi.rb
|
314
|
+
- lib/sp/jsonapi/adapters/base.rb
|
315
|
+
- lib/sp/jsonapi/adapters/db.rb
|
316
|
+
- lib/sp/jsonapi/adapters/raw_db.rb
|
317
|
+
- lib/sp/jsonapi/exceptions.rb
|
318
|
+
- lib/sp/jsonapi/model/base.rb
|
319
|
+
- lib/sp/jsonapi/model/concerns/attributes.rb
|
320
|
+
- lib/sp/jsonapi/model/concerns/model.rb
|
321
|
+
- lib/sp/jsonapi/model/concerns/persistence.rb
|
322
|
+
- lib/sp/jsonapi/model/concerns/serialization.rb
|
323
|
+
- lib/sp/jsonapi/parameters.rb
|
324
|
+
- lib/sp/jsonapi/service.rb
|
303
325
|
- lib/tasks/configure.rake
|
304
326
|
- sp-job.gemspec
|
305
327
|
homepage: https://github.com/vpfpinho/sp-job
|