background_job 0.0.1.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/specs.yml +34 -0
  3. data/.gitignore +11 -0
  4. data/.rspec +1 -0
  5. data/.tool-versions +1 -0
  6. data/CHANGELOG.md +10 -0
  7. data/Gemfile +12 -0
  8. data/Gemfile.lock +58 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +247 -0
  11. data/Rakefile +2 -0
  12. data/background_job.gemspec +39 -0
  13. data/bin/console +14 -0
  14. data/bin/setup +6 -0
  15. data/docker-compose.yml +6 -0
  16. data/lib/background-job.rb +3 -0
  17. data/lib/background_job/configuration/base.rb +102 -0
  18. data/lib/background_job/configuration/faktory.rb +6 -0
  19. data/lib/background_job/configuration/middleware_chain.rb +109 -0
  20. data/lib/background_job/configuration/sidekiq.rb +23 -0
  21. data/lib/background_job/configuration.rb +63 -0
  22. data/lib/background_job/errors.rb +24 -0
  23. data/lib/background_job/jobs/faktory.rb +87 -0
  24. data/lib/background_job/jobs/job.rb +126 -0
  25. data/lib/background_job/jobs/sidekiq.rb +75 -0
  26. data/lib/background_job/jobs.rb +8 -0
  27. data/lib/background_job/lock.rb +141 -0
  28. data/lib/background_job/lock_digest.rb +36 -0
  29. data/lib/background_job/middleware/unique_job/faktory.rb +41 -0
  30. data/lib/background_job/middleware/unique_job/sidekiq.rb +48 -0
  31. data/lib/background_job/middleware/unique_job.rb +67 -0
  32. data/lib/background_job/mixin/faktory.rb +56 -0
  33. data/lib/background_job/mixin/shared_interface.rb +49 -0
  34. data/lib/background_job/mixin/sidekiq.rb +61 -0
  35. data/lib/background_job/mixin.rb +6 -0
  36. data/lib/background_job/redis_pool.rb +28 -0
  37. data/lib/background_job/testing.rb +76 -0
  38. data/lib/background_job/unique_job.rb +84 -0
  39. data/lib/background_job/version.rb +5 -0
  40. data/lib/background_job.rb +87 -0
  41. metadata +131 -0
metadata ADDED
@@ -0,0 +1,131 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: background_job
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.rc1
5
+ platform: ruby
6
+ authors:
7
+ - Marcos G. Zimmermann
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redis
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: connection_pool
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.0
55
+ description: 'A generic swappable background job client that allows you to push jobs
56
+ to different background job services.
57
+
58
+ '
59
+ email:
60
+ - mgzmaster@gmail.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - ".github/workflows/specs.yml"
66
+ - ".gitignore"
67
+ - ".rspec"
68
+ - ".tool-versions"
69
+ - CHANGELOG.md
70
+ - Gemfile
71
+ - Gemfile.lock
72
+ - LICENSE.txt
73
+ - README.md
74
+ - Rakefile
75
+ - background_job.gemspec
76
+ - bin/console
77
+ - bin/setup
78
+ - docker-compose.yml
79
+ - lib/background-job.rb
80
+ - lib/background_job.rb
81
+ - lib/background_job/configuration.rb
82
+ - lib/background_job/configuration/base.rb
83
+ - lib/background_job/configuration/faktory.rb
84
+ - lib/background_job/configuration/middleware_chain.rb
85
+ - lib/background_job/configuration/sidekiq.rb
86
+ - lib/background_job/errors.rb
87
+ - lib/background_job/jobs.rb
88
+ - lib/background_job/jobs/faktory.rb
89
+ - lib/background_job/jobs/job.rb
90
+ - lib/background_job/jobs/sidekiq.rb
91
+ - lib/background_job/lock.rb
92
+ - lib/background_job/lock_digest.rb
93
+ - lib/background_job/middleware/unique_job.rb
94
+ - lib/background_job/middleware/unique_job/faktory.rb
95
+ - lib/background_job/middleware/unique_job/sidekiq.rb
96
+ - lib/background_job/mixin.rb
97
+ - lib/background_job/mixin/faktory.rb
98
+ - lib/background_job/mixin/shared_interface.rb
99
+ - lib/background_job/mixin/sidekiq.rb
100
+ - lib/background_job/redis_pool.rb
101
+ - lib/background_job/testing.rb
102
+ - lib/background_job/unique_job.rb
103
+ - lib/background_job/version.rb
104
+ homepage: https://github.com/marcosgz/background_job
105
+ licenses:
106
+ - MIT
107
+ metadata:
108
+ homepage_uri: https://github.com/marcosgz/background_job
109
+ bug_tracker_uri: https://github.com/marcosgz/background_job/issues
110
+ documentation_uri: https://github.com/marcosgz/background_job
111
+ source_code_uri: https://github.com/marcosgz/background_job
112
+ post_install_message:
113
+ rdoc_options: []
114
+ require_paths:
115
+ - lib
116
+ required_ruby_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: 2.7.0
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">"
124
+ - !ruby/object:Gem::Version
125
+ version: 1.3.1
126
+ requirements: []
127
+ rubygems_version: 3.1.6
128
+ signing_key:
129
+ specification_version: 4
130
+ summary: A generic swappable background job client.
131
+ test_files: []