Skip to content

Commit

Permalink
Drop support for Ruby <2.6 (#2027)
Browse files Browse the repository at this point in the history
Ruby 2.5 reached EOL with the 2.5.9 release on 2021-04-05, we're now
starting to see many deprecations of other libraries and so it's time
for us to drop it too.

http://www.ruby-lang.org/en/news/2021/04/05/ruby-2-5-9-released/
  • Loading branch information
nickcharlton authored Aug 9, 2021
1 parent 1291501 commit 5e2721a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 27 deletions.
16 changes: 0 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@ default_job: &default_job
- run: bundle exec appraisal rake

jobs:
ruby-25:
<<: *default_job
docker:
- image: circleci/ruby:2.5.0-node-browsers
environment:
PGHOST: localhost
PGUSER: administrate
RAILS_ENV: test
BUNDLER_VERSION: 2.1.4
- image: postgres:10.1-alpine
environment:
POSTGRES_USER: administrate
POSTGRES_DB: ruby25
POSTGRES_PASSWORD: ""

ruby-26:
<<: *default_job
docker:
Expand Down Expand Up @@ -94,4 +79,3 @@ workflows:
jobs:
- ruby-27
- ruby-26
- ruby-25
5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ gemspec

gem "administrate-field-image"
gem "faker"
gem "front_matter_parser"
gem "globalid"
gem "kaminari-i18n"
gem "pg"
gem "redcarpet"
gem "sentry-raven"
gem "unicorn"

# Version 1.0.1 invokes `YAML.safe_load` with arguments that are incompatible
# with Ruby 2.5, causing an `ArgumentError: unknown keyword: permitted_classes`
gem "front_matter_parser", "1.0.0"

group :development, :test do
gem "appraisal"
gem "awesome_print"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ DEPENDENCIES
factory_bot_rails
faker
formulaic
front_matter_parser (= 1.0.0)
front_matter_parser
globalid
i18n-tasks (= 0.9.34)
kaminari-i18n
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Getting Started
---

Administrate is released as a Ruby gem, and can be installed on Rails
applications version 5.0 or greater. We support Ruby 2.4 and up.
applications version 5.0 or greater. We support Ruby 2.6 and up.

First, add the following to your Gemfile:

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails50.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ source "https://rubygems.org"

gem "administrate-field-image"
gem "faker"
gem "front_matter_parser"
gem "globalid"
gem "kaminari-i18n"
gem "pg", "0.21.0"
gem "redcarpet"
gem "sentry-raven"
gem "unicorn"
gem "front_matter_parser", "1.0.0"
gem "actionpack", "~> 5.0.0"
gem "actionview", "~> 5.0.0"
gem "activerecord", "~> 5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails51.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ source "https://rubygems.org"

gem "administrate-field-image"
gem "faker"
gem "front_matter_parser"
gem "globalid"
gem "kaminari-i18n"
gem "pg", "0.21.0"
gem "redcarpet"
gem "sentry-raven"
gem "unicorn"
gem "front_matter_parser", "1.0.0"
gem "actionpack", "~> 5.1.0"
gem "actionview", "~> 5.1.0"
gem "activerecord", "~> 5.1.0"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails52.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ source "https://rubygems.org"

gem "administrate-field-image"
gem "faker"
gem "front_matter_parser"
gem "globalid"
gem "kaminari-i18n"
gem "pg"
gem "redcarpet"
gem "sentry-raven"
gem "unicorn"
gem "front_matter_parser", "1.0.0"
gem "actionpack", "~> 5.2.0"
gem "actionview", "~> 5.2.0"
gem "activerecord", "~> 5.2.0"
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails60.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ source "https://rubygems.org"

gem "administrate-field-image"
gem "faker"
gem "front_matter_parser"
gem "globalid"
gem "kaminari-i18n"
gem "pg"
gem "redcarpet"
gem "sentry-raven"
gem "unicorn"
gem "front_matter_parser", "1.0.0"
gem "rails", "~> 6.0.3.4"

group :development, :test do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails61.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ source "https://rubygems.org"

gem "administrate-field-image"
gem "faker"
gem "front_matter_parser"
gem "globalid"
gem "kaminari-i18n"
gem "pg"
gem "redcarpet"
gem "sentry-raven"
gem "unicorn"
gem "front_matter_parser", "1.0.0"
gem "rails", "~> 6.1"

group :development, :test do
Expand Down

0 comments on commit 5e2721a

Please sign in to comment.