Skip to content

Commit

Permalink
Merge pull request #10 from bdurand/update-database-cleaner-dependency
Browse files Browse the repository at this point in the history
Update data_cleaner dependency
  • Loading branch information
bdurand authored Mar 1, 2023
2 parents bd452c3 + 7557f14 commit d28454b
Show file tree
Hide file tree
Showing 45 changed files with 489 additions and 1,084 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Dependabot update strategy
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: weekly
allow:
# Automatically keep all runtime dependencies updated
- dependency-name: "*"
dependency-type: "production"
versioning-strategy: lockfile-only
84 changes: 84 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Continuous Integration

on:
push:
branches:
- master
- actions-*
tags:
- v*
pull_request:
branches-ignore:
- actions-*

env:
BUNDLE_CLEAN: "true"
BUNDLE_PATH: vendor/bundle
BUNDLE_JOBS: 3
BUNDLE_RETRY: 3

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby: "ruby"
standardrb: true
- ruby: "3.2"
appraisal: "activerecord_7.0"
- ruby: "3.1"
appraisal: "activerecord_6.1"
- ruby: "2.7"
appraisal: "activerecord_6.0"
- ruby: "2.7"
appraisal: "activerecord_5.2"
- ruby: "2.6"
appraisal: "activerecord_5.1"
- ruby: "2.6"
appraisal: "activerecord_5.0"
- ruby: "2.5"
appraisal: "activerecord_4.2"
- ruby: "2.5"
appraisal: "activerecord_4.1"
- ruby: "2.5"
appraisal: "activerecord_4.0"
- ruby: "3.2"
appraisal: "sidekiq_7"
- ruby: "3.0"
appraisal: "sidekiq_6"
- ruby: "2.7"
appraisal: "sidekiq_5"
- ruby: "2.6"
appraisal: "sidekiq_4"
- ruby: "2.5"
appraisal: "sidekiq_3"
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install libsqlite3-dev
- name: Setup bundler
if: matrix.bundler != ''
run: |
gem uninstall bundler --all
gem install bundler --no-document --version ${{ matrix.bundler }}
- name: Set Appraisal bundle
if: matrix.appraisal != ''
run: |
echo "using gemfile gemfiles/${{ matrix.appraisal }}.gemfile"
bundle config set gemfile "gemfiles/${{ matrix.appraisal }}.gemfile"
- name: Install gems
run: |
bundle update
- name: Run Tests
run: bundle exec rake
- name: standardrb
if: matrix.standardrb == true
run: bundle exec rake standard
24 changes: 12 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/.bundle/
/.yardoc
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

.DS_Store

# rspec failure tracking
.rspec_status
.bundle/
.rspec
.ruby-version
.yardoc/
.env
Gemfile.lock
coverage/
gemfiles/*.gemfile.lock
log/*.log
pkg/
rdoc/
doc/
9 changes: 9 additions & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
format: progress

ruby_version: 2.5

ignore:
- 'spec/**/*':
- Lint/ConstantDefinitionInBlock
- Lint/UselessAssignment

53 changes: 0 additions & 53 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# The code is a little more tightly integrated with ActiveRecord so check
# all minor releases. Only need to sanity check major releases of Sidekiq.

RAILS_MINOR_RELEASES = ["6.0", "5.2", "5.1", "5.0", "4.2", "4.1", "4.0"].freeze
SIDEKIQ_MAJOR_RELEASES = ["6", "5", "4", "3"].freeze
RAILS_MINOR_RELEASES = ["7.0", "6.1", "6.0", "5.2", "5.1", "5.0", "4.2", "4.1", "4.0"].freeze
SIDEKIQ_MAJOR_RELEASES = ["7", "6", "5", "4", "3"].freeze

RAILS_MINOR_RELEASES.each do |version|
appraise "activerecord-#{version}" do
Expand Down
22 changes: 18 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
# 1.0.1
# Changelog
All notable changes to this project will be documented in this file.

* Sidekiq 6.0 compatibility
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# 1.0.0
## 1.0.2

* Initial release
### Changed
- Updated database cleaner dependency to use database_cleaner-active_record instead of deprecated database_cleaner gem.
- Added YARD doc param and return types.

## 1.0.1

### Added
- Sidekiq 6.0 compatibility

## 1.0.0

### Added
- Initial release
12 changes: 9 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
source "https://rubygems.org"

# Cover security vulnerability of not loading github gems over HTTPS (just in case...)
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

gemspec

gem "rspec", "~> 3.0"
gem "rake"
gem "sqlite3"
gem "database_cleaner-active_record"
gem "appraisal"
gem "standard", "~>1.0"
gem "pry-byebug"
gem "yard"
Loading

0 comments on commit d28454b

Please sign in to comment.