-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop support for Ruby 2.0, 2.1, 2.2, 2.3, and 2.4 #549
base: master
Are you sure you want to change the base?
Changes from all commits
e079afc
c42f2eb
e753d72
574f64e
38b0960
df971c7
07880f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ inherit_from: .rubocop_todo.yml | |
AllCops: | ||
DisplayCopNames: true | ||
DisplayStyleGuide: true | ||
TargetRubyVersion: 2.0 | ||
TargetRubyVersion: 2.5 | ||
|
||
Lint/AmbiguousBlockAssociation: | ||
Enabled: false | ||
|
@@ -18,12 +18,12 @@ Style/ClassAndModuleChildren: | |
Enabled: false | ||
Style/DoubleNegation: | ||
Enabled: false | ||
Style/FileName: | ||
Naming/FileName: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗒️ I had to upgrade the rubocop gem to support |
||
Exclude: | ||
- "Dangerfile" | ||
Style/IndentHeredoc: | ||
Layout/IndentHeredoc: | ||
Enabled: false | ||
Style/SpaceAroundEqualsInParameterDefault: | ||
Layout/SpaceAroundEqualsInParameterDefault: | ||
EnforcedStyle: no_space | ||
Style/StringLiterals: | ||
EnforcedStyle: double_quotes | ||
|
@@ -47,7 +47,7 @@ Metrics/CyclomaticComplexity: | |
Enabled: false | ||
Metrics/MethodLength: | ||
Enabled: false | ||
Style/PredicateName: | ||
Naming/PredicateName: | ||
Enabled: false | ||
Metrics/LineLength: | ||
Enabled: false | ||
|
@@ -59,5 +59,5 @@ Metrics/ClassLength: | |
Enabled: false | ||
Metrics/ModuleLength: | ||
Enabled: false | ||
Style/AccessorMethodName: | ||
Naming/AccessorMethodName: | ||
Enabled: false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
# public_suffix 3+ requires ruby 2.1+ | ||
if Gem::Requirement.new('< 2.1').satisfied_by?(Gem::Version.new(RUBY_VERSION)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗒️ No longer needed, since we no longer support Ruby < 2.1. |
||
gem 'public_suffix', '< 3' | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
require "monitor" | ||
require "thread" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗒️ RuboCop flagged this as an unnecessary |
||
|
||
# Since we call to_s on new connection arguments and use that as a cache key, we | ||
# need to make sure the memory address of the object is not used as part of the | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
require 'thread' | ||
|
||
module SSHKit | ||
|
||
module Runner | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,7 @@ def test_execute_raises_on_non_zero_exit_status_and_captures_stdout_and_stderr | |
|
||
def test_test_does_not_raise_on_non_zero_exit_status | ||
Netssh.new(a_host) do |_host| | ||
test :false | ||
test :false # rubocop:disable Lint/BooleanSymbol | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗒️ RuboCop thinks this is a typo, and that we mean |
||
end.run | ||
end | ||
|
||
|
@@ -151,7 +151,7 @@ def test_connection_pool_keepalive | |
# ensure we enable connection pool | ||
SSHKit::Backend::Netssh.pool.idle_timeout = 10 | ||
Netssh.new(a_host) do |_host| | ||
test :false | ||
test :false # rubocop:disable Lint/BooleanSymbol | ||
end.run | ||
sleep 2.5 | ||
captured_command_result = nil | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗒️ Run slow functional tests on the oldest Ruby we support (2.5) and the latest Ruby.