-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEX-2728] fix: drop ruby 2.5/2.6 support
- Loading branch information
Сатаров Юрий Сергеевич
committed
Jan 9, 2025
1 parent
0a4aa54
commit 67da40b
Showing
24 changed files
with
365 additions
and
153 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 |
---|---|---|
@@ -1 +1 @@ | ||
REDIS_URL=redis://:supersecret@127.0.0.1:6379/10 | ||
REDIS_URL=redis://:supersecret@redis:6379/10 |
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,33 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Provide configs | ||
2. Run command | ||
3. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Context (please complete the following information):** | ||
- Gem version | ||
- Ruby version | ||
- Rails version | ||
- Gruf version | ||
- Faraday version | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,24 @@ | ||
# Context | ||
|
||
<!-- | ||
Short description about the feature and the motivation/issue behind it | ||
--> | ||
- | ||
|
||
## Related tickets | ||
|
||
- | ||
|
||
# What's inside | ||
|
||
<!-- | ||
List of features and changes (or highlights) (from the code perspective) | ||
The purpose of this list is to track the progress if it's WIP (use checkboxes) | ||
and to emphasize the critical parts (which you'd like to pay reviewers attention to) | ||
--> | ||
- [x] A | ||
|
||
# Checklist: | ||
|
||
- [ ] I have added tests | ||
- [ ] I have made corresponding changes to the documentation |
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
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,37 @@ | ||
include: | ||
- project: "nstmrt/rubygems/templates" | ||
ref: master | ||
file: "build-rubygems.yml" | ||
|
||
lint: | ||
stage: test | ||
image: ${BUILD_CONF_HARBOR_REGISTRY}/dhub/library/ruby:3.3 | ||
tags: | ||
- paas-tests | ||
script: | ||
- bundle install | ||
- bundle exec rubocop | ||
|
||
tests: | ||
stage: test | ||
image: ${BUILD_CONF_HARBOR_REGISTRY}/dhub/library/ruby:$RUBY_VERSION | ||
tags: | ||
- paas-tests | ||
services: | ||
- name: ${BUILD_CONF_HARBOR_REGISTRY}/dhub/bitnami/redis:6.2 | ||
alias: redis | ||
variables: | ||
REDIS_PASSWORD: supersecret | ||
parallel: | ||
matrix: | ||
- RUBY_VERSION: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4'] | ||
before_script: | ||
- gem sources --remove https://rubygems.org/ | ||
- gem sources --add ${RUBYGEMS_PUBLIC_SOURCE} | ||
- gem install bundler -v 2.3.26 | ||
- bin/setup | ||
script: | ||
- bundle exec appraisal rspec --format RspecJunitFormatter --out test-results/rspec_$RUBY_VERSION.xml --format documentation | ||
artifacts: | ||
reports: | ||
junit: test-results/rspec*.xml |
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 +1,2 @@ | ||
--require spec_helper | ||
--require rails_helper |
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,5 +1,5 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.5 | ||
TargetRubyVersion: 2.7 | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
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,24 @@ | ||
# frozen_string_literal: true | ||
|
||
# See compatibility table at https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html | ||
|
||
versions_map = { | ||
'6.0' => %w[2.7], | ||
'6.1' => %w[2.7 3.0], | ||
'7.0' => %w[3.1], | ||
'7.1' => %w[3.2], | ||
'7.2' => %w[3.3 3.4], | ||
'8.0' => %w[3.4] | ||
} | ||
|
||
current_ruby_version = RUBY_VERSION.split('.').first(2).join('.') | ||
|
||
versions_map.each do |rails_version, ruby_versions| | ||
ruby_versions.each do |ruby_version| | ||
next if ruby_version != current_ruby_version | ||
|
||
appraise "rails-#{rails_version}" do | ||
gem 'rails', "~> #{rails_version}.0" | ||
end | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG RUBY_VERSION | ||
|
||
FROM ruby:$RUBY_VERSION | ||
|
||
ARG BUNDLER_VERSION | ||
ARG RUBYGEMS_VERSION | ||
|
||
ENV BUNDLE_JOBS=4 \ | ||
BUNDLE_RETRY=3 | ||
|
||
RUN gem update --system "${RUBYGEMS_VERSION}" \ | ||
&& rm /usr/local/lib/ruby/gems/*/specifications/default/bundler*.gemspec \ | ||
&& gem install --default bundler:${BUNDLER_VERSION} \ | ||
&& gem install bundler -v ${BUNDLER_VERSION} |
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,14 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source ENV.fetch('RUBYGEMS_PUBLIC_SOURCE', 'https://rubygems.org/') | ||
|
||
# Specify your gem's dependencies in http_health_check.gemspec | ||
gemspec | ||
|
||
gem 'rake', '~> 13.0' | ||
|
||
group :test do | ||
gem 'rspec_junit_formatter' | ||
gem 'simplecov', require: false | ||
gem 'simplecov-cobertura', require: false | ||
end |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
bundle exec rubocop | ||
bundle exec appraisal rspec |
Oops, something went wrong.