Skip to content

Commit

Permalink
Drop support for Ruby < 3.0, Rails < 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Jul 18, 2023
1 parent d2fe70c commit cf83848
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
ruby-version: 3.0
bundler-cache: true
- run: bundle exec rake rubocop
10 changes: 3 additions & 7 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [ '2.5', '2.6', '2.7', '3.0', 'head' ]
rails: [ 'gemfiles/Gemfile.rails-6.1.x', 'gemfiles/Gemfile.rails-6.0.x', 'gemfiles/Gemfile.rails-5.2.x']
exclude:
- { ruby: '2.7', rails: 'gemfiles/Gemfile.rails-5.2.x' }
- { ruby: '3.0', rails: 'gemfiles/Gemfile.rails-5.2.x' }
- { ruby: 'head', rails: 'gemfiles/Gemfile.rails-5.2.x' }
- { ruby: '2.5', rails: 'gemfiles/Gemfile.rails-6.0.x' }
ruby: [ '3.0', '3.1', '3.2', 'head' ]
rails: [ 'gemfiles/Gemfile.rails-6.0.x', 'gemfiles/Gemfile.rails-6.1.x', 'gemfiles/Gemfile.rails-7.0.x']
exclude: []
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
env:
BUNDLE_GEMFILE: ${{ matrix.rails }}
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ AllCops:
- 'vendor/bundle/**/*'
DisplayCopNames: true
StyleGuideCopsOnly: false
TargetRubyVersion: 2.5
TargetRubyVersion: 3.0
NewCops: enable

Gemspec/DevelopmentDependencies:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

For the full commit log, [see here](https://github.com/influxdata/influxdb-rails/commits/one-stable).

## v2.0.0.beta1, not released yet
- Drop support for Ruby < 3.0, Rails < 7.0

## v1.0.2, released 2021-04-13

Fix passing booleans to custom tags.
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
> :warning: You are looking at the README for the master branch of this gem.
> See the latest [released version (1.0.1)](https://github.com/influxdata/influxdb-rails/tree/v1.0.1#readme)
> :warning: You are looking at the README a development branch of this gem.
> If you are using this gem you should have a look at the
> latest [released version (1.0.3)](https://github.com/influxdata/influxdb-rails/tree/v1.0.3#readme)
> instead.
# influxdb-rails
Expand Down
7 changes: 0 additions & 7 deletions gemfiles/Gemfile.rails-5.2.x

This file was deleted.

9 changes: 9 additions & 0 deletions gemfiles/Gemfile.rails-7.0.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source "https://rubygems.org"

gem 'actionpack', '~> 7.0.0'
gem 'activesupport', '~> 7.0.0'
gem 'activemodel', '~> 7.0.0'
gem 'sqlite3', '~> 1.4'
gem 'rspec-rails'

gemspec :path => '../'
2 changes: 1 addition & 1 deletion influxdb-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files`.split($/) # rubocop:disable Style/SpecialGlobalVars
spec.require_paths = ["lib"]

spec.required_ruby_version = ">= 2.5.0"
spec.required_ruby_version = ">= 3.0"

spec.add_runtime_dependency "influxdb", "~> 0.6", ">= 0.6.4"
spec.add_runtime_dependency "railties", ">= 5.0"
Expand Down
File renamed without changes.

0 comments on commit cf83848

Please sign in to comment.