Skip to content

Commit

Permalink
Drop Ruby 2.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Sep 11, 2024
1 parent d0768b6 commit bb4426b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
RUBY_VERSION: '2.7.6'
RUBY_VERSION: '3.3'

jobs:
rubocop:
Expand All @@ -27,10 +27,10 @@ jobs:
strategy:
matrix:
ruby:
- 2.6
- 2.7
- 3.0
- 3.1
- 3.2
- 3.3
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand Down
3 changes: 2 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
# See https://docs.rubocop.org/rubocop/configuration

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 3.0
SuggestExtensions: false
NewCops: enable

Metrics/BlockLength:
Expand Down
2 changes: 1 addition & 1 deletion boxing.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
spec.summary = 'The zero-configuration Dockerfile generator for Ruby'
spec.description = 'The zero-configuration Dockerfile generator for Ruby'
spec.homepage = 'https://github.com/elct9620/boxing'
spec.required_ruby_version = '>= 2.5.0'
spec.required_ruby_version = '>= 3.0.0'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/elct9620/boxing'
Expand Down
10 changes: 5 additions & 5 deletions lib/boxing/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class Generator
ASCII_BOLD = "\e[1m"
ASCII_RED = "\e[31m"

CREATED_MESSAGE = "#{ASCII_BOLD}create#{ASCII_CLEAR}\t%s"
IDENTICAL_MESSAGE = "#{ASCII_BOLD}identical#{ASCII_CLEAR}\t%s"
CONFLICT_MESSAGE = "#{ASCII_BOLD}#{ASCII_RED}conflict#{ASCII_CLEAR}\t%s"
CREATED_MESSAGE = "#{ASCII_BOLD}create#{ASCII_CLEAR}\t%s".freeze
IDENTICAL_MESSAGE = "#{ASCII_BOLD}identical#{ASCII_CLEAR}\t%s".freeze
CONFLICT_MESSAGE = "#{ASCII_BOLD}#{ASCII_RED}conflict#{ASCII_CLEAR}\t%s".freeze
OVERWRITE_MESSAGE = 'Overwrite %s? (enter "h" for help) [Ynqdhm] '
FORCE_MESSAGE = "#{ASCII_BOLD}force#{ASCII_CLEAR}\t%s"
SKIP_MESSAGE = "#{ASCII_BOLD}skip#{ASCII_CLEAR}\t%s"
FORCE_MESSAGE = "#{ASCII_BOLD}force#{ASCII_CLEAR}\t%s".freeze
SKIP_MESSAGE = "#{ASCII_BOLD}skip#{ASCII_CLEAR}\t%s".freeze
MERGE_TOOL_NOT_FOUND = 'Please configure merge.tool in your Git config.'

attr_reader :destination, :path
Expand Down
2 changes: 1 addition & 1 deletion lib/boxing/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class << self
#
# @since 0.1.0
def load(path)
data = YAML.safe_load(File.read(path))
data = YAML.safe_load_file(path)
mode = 0b00
mode |= Package::RUNTIME if data['runtime']
mode |= Package::BUILD if data['build']
Expand Down

0 comments on commit bb4426b

Please sign in to comment.