Drop support for Ruby 3.0 (reaching EOL) (#29702)
This commit is contained in:
		
							
								
								
									
										3
									
								
								.github/workflows/test-ruby.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/test-ruby.yml
									
									
									
									
										vendored
									
									
								
							@@ -111,7 +111,6 @@ jobs:
 | 
				
			|||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        ruby-version:
 | 
					        ruby-version:
 | 
				
			||||||
          - '3.0'
 | 
					 | 
				
			||||||
          - '3.1'
 | 
					          - '3.1'
 | 
				
			||||||
          - '.ruby-version'
 | 
					          - '.ruby-version'
 | 
				
			||||||
          - '3.3'
 | 
					          - '3.3'
 | 
				
			||||||
@@ -187,7 +186,6 @@ jobs:
 | 
				
			|||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        ruby-version:
 | 
					        ruby-version:
 | 
				
			||||||
          - '3.0'
 | 
					 | 
				
			||||||
          - '3.1'
 | 
					          - '3.1'
 | 
				
			||||||
          - '.ruby-version'
 | 
					          - '.ruby-version'
 | 
				
			||||||
          - '3.3'
 | 
					          - '3.3'
 | 
				
			||||||
@@ -287,7 +285,6 @@ jobs:
 | 
				
			|||||||
      fail-fast: false
 | 
					      fail-fast: false
 | 
				
			||||||
      matrix:
 | 
					      matrix:
 | 
				
			||||||
        ruby-version:
 | 
					        ruby-version:
 | 
				
			||||||
          - '3.0'
 | 
					 | 
				
			||||||
          - '3.1'
 | 
					          - '3.1'
 | 
				
			||||||
          - '.ruby-version'
 | 
					          - '.ruby-version'
 | 
				
			||||||
          - '3.3'
 | 
					          - '3.3'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@ require:
 | 
				
			|||||||
  - ./lib/linter/rubocop_middle_dot
 | 
					  - ./lib/linter/rubocop_middle_dot
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AllCops:
 | 
					AllCops:
 | 
				
			||||||
  TargetRubyVersion: 3.0 # Set to minimum supported version of CI
 | 
					  TargetRubyVersion: 3.1 # Set to minimum supported version of CI
 | 
				
			||||||
  DisplayCopNames: true
 | 
					  DisplayCopNames: true
 | 
				
			||||||
  DisplayStyleGuide: true
 | 
					  DisplayStyleGuide: true
 | 
				
			||||||
  ExtraDetails: true
 | 
					  ExtraDetails: true
 | 
				
			||||||
@@ -80,6 +80,11 @@ Metrics/CyclomaticComplexity:
 | 
				
			|||||||
Metrics/ParameterLists:
 | 
					Metrics/ParameterLists:
 | 
				
			||||||
  CountKeywordArgs: false
 | 
					  CountKeywordArgs: false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Reason: Prefer seeing a variable name
 | 
				
			||||||
 | 
					# https://docs.rubocop.org/rubocop/cops_naming.html#namingblockforwarding
 | 
				
			||||||
 | 
					Naming/BlockForwarding:
 | 
				
			||||||
 | 
					  EnforcedStyle: explicit
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Reason: Prevailing style is argument file paths
 | 
					# Reason: Prevailing style is argument file paths
 | 
				
			||||||
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsfilepath
 | 
					# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsfilepath
 | 
				
			||||||
Rails/FilePath:
 | 
					Rails/FilePath:
 | 
				
			||||||
@@ -180,6 +185,7 @@ Style/FormatStringToken:
 | 
				
			|||||||
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashsyntax
 | 
					# https://docs.rubocop.org/rubocop/cops_style.html#stylehashsyntax
 | 
				
			||||||
Style/HashSyntax:
 | 
					Style/HashSyntax:
 | 
				
			||||||
  EnforcedStyle: ruby19_no_mixed_keys
 | 
					  EnforcedStyle: ruby19_no_mixed_keys
 | 
				
			||||||
 | 
					  EnforcedShorthandSyntax: either
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Reason:
 | 
					# Reason:
 | 
				
			||||||
# https://docs.rubocop.org/rubocop/cops_style.html#stylenumericliterals
 | 
					# https://docs.rubocop.org/rubocop/cops_style.html#stylenumericliterals
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								Gemfile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Gemfile
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
				
			|||||||
# frozen_string_literal: true
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
source 'https://rubygems.org'
 | 
					source 'https://rubygems.org'
 | 
				
			||||||
ruby '>= 3.0.0'
 | 
					ruby '>= 3.1.0'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
gem 'puma', '~> 6.3'
 | 
					gem 'puma', '~> 6.3'
 | 
				
			||||||
gem 'rails', '~> 7.1.1'
 | 
					gem 'rails', '~> 7.1.1'
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -69,7 +69,7 @@ Mastodon acts as an OAuth2 provider, so 3rd party apps can use the REST and Stre
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- **PostgreSQL** 12+
 | 
					- **PostgreSQL** 12+
 | 
				
			||||||
- **Redis** 4+
 | 
					- **Redis** 4+
 | 
				
			||||||
- **Ruby** 3.0+
 | 
					- **Ruby** 3.1+
 | 
				
			||||||
- **Node.js** 16+
 | 
					- **Node.js** 16+
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The repository includes deployment configurations for **Docker and docker-compose** as well as specific platforms like **Heroku**, **Scalingo**, and **Nanobox**. For Helm charts, reference the [mastodon/chart repository](https://github.com/mastodon/chart). The [**standalone** installation guide](https://docs.joinmastodon.org/admin/install/) is available in the documentation.
 | 
					The repository includes deployment configurations for **Docker and docker-compose** as well as specific platforms like **Heroku**, **Scalingo**, and **Nanobox**. For Helm charts, reference the [mastodon/chart repository](https://github.com/mastodon/chart). The [**standalone** installation guide](https://docs.joinmastodon.org/admin/install/) is available in the documentation.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user