Skip to content
Snippets Groups Projects
Commit aa38dbd4 authored by Kerri Miller's avatar Kerri Miller Committed by Max Woolf
Browse files

Remove support for Ruby 2.7.x

parent 422d1d2a
No related branches found
No related tags found
1 merge request!59Remove support for Ruby 2.7.x
...@@ -17,7 +17,7 @@ workflow: ...@@ -17,7 +17,7 @@ workflow:
- bundle install -j $(nproc) # Install dependencies into ./vendor/ruby - bundle install -j $(nproc) # Install dependencies into ./vendor/ruby
parallel: parallel:
matrix: matrix:
- RUBY_VERSION: ['2.7', '3.0', '3.1', '3.2'] - RUBY_VERSION: ['3.0', '3.1', '3.2']
image: "ruby:$RUBY_VERSION" image: "ruby:$RUBY_VERSION"
cache: cache:
paths: paths:
...@@ -79,7 +79,7 @@ secret_detection: ...@@ -79,7 +79,7 @@ secret_detection:
update-changelog: update-changelog:
stage: deploy stage: deploy
image: ruby:2.7 image: ruby:3.0
rules: rules:
- if: '$GITLAB_API_TOKEN == null' - if: '$GITLAB_API_TOKEN == null'
when: never when: never
......
AllCops: AllCops:
TargetRubyVersion: 2.7 TargetRubyVersion: 3.0
Exclude: Exclude:
- '*.gemspec' - '*.gemspec'
- 'vendor/**/*' - 'vendor/**/*'
......
...@@ -8,8 +8,8 @@ module TanukiEmoji ...@@ -8,8 +8,8 @@ module TanukiEmoji
class Character class Character
IMAGE_PREFIX = 'emoji_u' IMAGE_PREFIX = 'emoji_u'
IMAGE_EXTENSION = '.png' IMAGE_EXTENSION = '.png'
FLAG_REGEXP = /[🇦-🇿]{2}/u.freeze FLAG_REGEXP = /[🇦-🇿]{2}/u
ALPHA_CODE_REGEXP = /:(?<alpha_text>[_+\-a-z0-9]+):/.freeze ALPHA_CODE_REGEXP = /:(?<alpha_text>[_+\-a-z0-9]+):/
# This denotes a "color" or "emoji" version # This denotes a "color" or "emoji" version
EMOJI_VARIATION_SELECTOR = 0xFE0F EMOJI_VARIATION_SELECTOR = 0xFE0F
......
...@@ -12,7 +12,7 @@ Gem::Specification.new do |spec| ...@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
spec.description = %q{Tanuki Emoji provides Emoji character information and metadata with support for Noto Emoji resources as fallback} spec.description = %q{Tanuki Emoji provides Emoji character information and metadata with support for Noto Emoji resources as fallback}
spec.homepage = 'https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji' spec.homepage = 'https://gitlab.com/gitlab-org/ruby/gems/tanuki_emoji'
spec.licenses = %w[MIT Apache2] spec.licenses = %w[MIT Apache2]
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0") spec.required_ruby_version = Gem::Requirement.new(">= 3.0.0")
spec.metadata['homepage_uri'] = spec.homepage spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage spec.metadata['source_code_uri'] = spec.homepage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment