Skip to content

Commit

Permalink
Basic Sidekiq::DelayedExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Feb 8, 2022
1 parent 3d2e60c commit 09ebd4e
Show file tree
Hide file tree
Showing 97 changed files with 4,749 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,20 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

Ruby version:
Rails version:
Sidekiq / Pro / Enterprise version(s):

Please include your initializer, sidekiq.yml, and any error message with the full backtrace.

If you are using an old version, have you checked the changelogs to see if your issue has been fixed in a later version?

https://github.com/mperham/sidekiq/blob/main/Changes.md
https://github.com/mperham/sidekiq/blob/main/Pro-Changes.md
https://github.com/mperham/sidekiq/blob/main/Ent-Changes.md
47 changes: 47 additions & 0 deletions .github/contributing.md
@@ -0,0 +1,47 @@
# Contributing

## Issues

When opening an issue:

* include the full **backtrace** with your error
* include your Sidekiq initializer
* list versions you are using: Ruby, Rails, Sidekiq, OS, etc.

It's always better to include more info rather than less.

## Code

It's always best to open an issue before investing a lot of time into a
fix or new functionality. Functionality must meet my design goals and
vision for the project to be accepted; I would be happy to discuss how
your idea can best fit into Sidekiq.

### Local development setup

You need Redis installed and a Ruby version that fulfills the requirements in
`sidekiq.gemspec`. Then:

```
bundle install
```

And in order to run the tests and linter checks:

```
bundle exec rake
```

## Legal

By submitting a Pull Request, you disavow any rights or claims to any changes
submitted to the Sidekiq project and assign the copyright of
those changes to Contributed Systems LLC.

If you cannot or do not want to reassign those rights (your employment
contract for your employer may not allow this), you should not submit a PR.
Open an issue and someone else can do the work.

This is a legal way of saying "If you submit a PR to us, that code becomes ours".
99.9% of the time that's what you intend anyways; we hope it doesn't scare you
away from contributing.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby: ["2.6", "2.7", "3.0", "3.1"]
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: ${{ matrix.ruby }}
- name: Run tests
run: bundle exec rake
14 changes: 14 additions & 0 deletions .gitignore
@@ -0,0 +1,14 @@
.rvmrc
.ruby-version
tags
*.swp
dump.rdb
.rbx
coverage/
vendor/
.bundle/
.sass-cache/
tmp/
pkg/*.gem
.byebug_history
Gemfile.lock
15 changes: 15 additions & 0 deletions .standard.yml
@@ -0,0 +1,15 @@
ruby_version: 2.5.0
fix: true
parallel: true
ignore:
- test/**/*
- examples/**/*
- myapp/**/*
- 'lib/sidekiq.rb':
- Lint/InheritException
- 'lib/sidekiq/extensions/**/*':
- Style/MissingRespondToMissing
- 'lib/**/*':
- Lint/RescueException
- Security/YAMLLoad
- Style/GlobalVars
6 changes: 6 additions & 0 deletions .standard_todo.yml
@@ -0,0 +1,6 @@
# Auto generated files with errors to ignore.
# Remove from this list as you refactor files.
---
ignore:
- lib/sidekiq/delay_extensions/generic_proxy.rb:
- Style/MissingRespondToMissing
97 changes: 97 additions & 0 deletions COMM-LICENSE.txt

Large diffs are not rendered by default.

0 comments on commit 09ebd4e

Please sign in to comment.