activejob-null 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +56 -0
- data/LICENSE +21 -0
- data/README.md +18 -0
- data/activejob-null.gemspec +11 -0
- data/lib/active_job/queue_adapters/null_adapter.rb +17 -0
- data/lib/activejob-null.rb +1 -0
- metadata +48 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8524787fd24d6faff930900b0df7cd77c2af9a2c604db232307dc77272e9afdc
|
4
|
+
data.tar.gz: de15a529ff23213576d076a4e1a0fa0cfb299d79e844b976b13a914ae485f50a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0b983996309b30e6d3f8c7bda5b6b52b8fd8a81dcce018737bc23e0a7b184645e212bf34a8ea17d23000560bbcde947bc8f0c85185d38aaf9c1f0b24460b256a
|
7
|
+
data.tar.gz: fdad50578945e3910ec1cbac2931dc6852b0b008af969c17d6225ce70219eb4fdb944666831fab1e39721bc2b6dfe0db27125ef052520940194977d239e96e7a
|
data/.gitignore
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
/.config
|
4
|
+
/coverage/
|
5
|
+
/InstalledFiles
|
6
|
+
/pkg/
|
7
|
+
/spec/reports/
|
8
|
+
/spec/examples.txt
|
9
|
+
/test/tmp/
|
10
|
+
/test/version_tmp/
|
11
|
+
/tmp/
|
12
|
+
|
13
|
+
# Used by dotenv library to load environment variables.
|
14
|
+
# .env
|
15
|
+
|
16
|
+
# Ignore Byebug command history file.
|
17
|
+
.byebug_history
|
18
|
+
|
19
|
+
## Specific to RubyMotion:
|
20
|
+
.dat*
|
21
|
+
.repl_history
|
22
|
+
build/
|
23
|
+
*.bridgesupport
|
24
|
+
build-iPhoneOS/
|
25
|
+
build-iPhoneSimulator/
|
26
|
+
|
27
|
+
## Specific to RubyMotion (use of CocoaPods):
|
28
|
+
#
|
29
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
30
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
31
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
32
|
+
#
|
33
|
+
# vendor/Pods/
|
34
|
+
|
35
|
+
## Documentation cache and generated files:
|
36
|
+
/.yardoc/
|
37
|
+
/_yardoc/
|
38
|
+
/doc/
|
39
|
+
/rdoc/
|
40
|
+
|
41
|
+
## Environment normalization:
|
42
|
+
/.bundle/
|
43
|
+
/vendor/bundle
|
44
|
+
/lib/bundler/man/
|
45
|
+
|
46
|
+
# for a library or gem, you might want to ignore these files since the code is
|
47
|
+
# intended to run in multiple environments; otherwise, check them in:
|
48
|
+
# Gemfile.lock
|
49
|
+
# .ruby-version
|
50
|
+
# .ruby-gemset
|
51
|
+
|
52
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
53
|
+
.rvmrc
|
54
|
+
|
55
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
56
|
+
# .rubocop-https?--*
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Adam Coffman
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# activejob-null
|
2
|
+
ActiveJob Queue Adapter That Discards All Jobs
|
3
|
+
|
4
|
+
### Installation and Setup
|
5
|
+
|
6
|
+
Add this gem to your Gemfile
|
7
|
+
|
8
|
+
```ruby
|
9
|
+
gem 'activejob-null'
|
10
|
+
```
|
11
|
+
|
12
|
+
Congifure your Rails application to use it in `config/application.rb` or `config/environments/*`
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
config.active_job.queue_adapter = :null
|
16
|
+
```
|
17
|
+
|
18
|
+
All jobs will now be discarded instead of run.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "activejob-null"
|
3
|
+
s.version = "0.0.1"
|
4
|
+
s.summary = "An ActiveJob adapter that discards all jobs."
|
5
|
+
s.description = s.summary
|
6
|
+
s.authors = ["Adam Coffman"]
|
7
|
+
s.email = "acc@fastmail.com"
|
8
|
+
s.files = `git ls-files`.split("\n")
|
9
|
+
s.homepage = "https://github.com/acoffman/activejob-null"
|
10
|
+
s.license = "MIT"
|
11
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module ActiveJob
|
3
|
+
module QueueAdapters
|
4
|
+
# == ActiveJob Null adapter
|
5
|
+
#
|
6
|
+
# A trivial adapter for ActiveJob that discards all jobs
|
7
|
+
#
|
8
|
+
# Rails.application.config.active_job.queue_adapter = :null
|
9
|
+
class NullAdapter
|
10
|
+
def enqueue(job) # :nodoc:
|
11
|
+
end
|
12
|
+
|
13
|
+
def enqueue_at(job, timestamp) # :nodoc:
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'active_job/queue_adapters/null_adapter'
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activejob-null
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adam Coffman
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-09-13 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: An ActiveJob adapter that discards all jobs.
|
14
|
+
email: acc@fastmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- ".gitignore"
|
20
|
+
- LICENSE
|
21
|
+
- README.md
|
22
|
+
- activejob-null.gemspec
|
23
|
+
- lib/active_job/queue_adapters/null_adapter.rb
|
24
|
+
- lib/activejob-null.rb
|
25
|
+
homepage: https://github.com/acoffman/activejob-null
|
26
|
+
licenses:
|
27
|
+
- MIT
|
28
|
+
metadata: {}
|
29
|
+
post_install_message:
|
30
|
+
rdoc_options: []
|
31
|
+
require_paths:
|
32
|
+
- lib
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
requirements: []
|
44
|
+
rubygems_version: 3.4.19
|
45
|
+
signing_key:
|
46
|
+
specification_version: 4
|
47
|
+
summary: An ActiveJob adapter that discards all jobs.
|
48
|
+
test_files: []
|