-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from bdurand/update-database-cleaner-dependency
Update data_cleaner dependency
- Loading branch information
Showing
45 changed files
with
489 additions
and
1,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.