Skip to content

Commit

Permalink
Drop EOL Rubies (2.6, 2.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrom committed Dec 22, 2023
1 parent eedcd22 commit 2050a65
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
ruby-version: ['3.0', '3.1', '3.2']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require:

AllCops:
NewCops: enable
TargetRubyVersion: 2.5
TargetRubyVersion: 3.0

Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion lib/rocket_chat/request_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def add_form_data(request, form_data)
end

def reject_nils(data)
data&.reject { |_key, value| value.nil? }
data&.compact
end
end
end
2 changes: 1 addition & 1 deletion rocketchat.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
spec.description = 'Rocket.Chat REST API v1 for Ruby'
spec.homepage = 'https://github.com/abrom/rocketchat-ruby'
spec.license = 'MIT'
spec.required_ruby_version = ['>= 2.5.0', '< 3.3.0']
spec.required_ruby_version = ['>= 3.0.0', '< 3.3.0']

# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
# delete this section to allow pushing this gem to any host.
Expand Down

0 comments on commit 2050a65

Please sign in to comment.