Skip to content
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 MRI 1.8.7-2.2 support #158

Merged
merged 7 commits into from
Feb 10, 2020
Merged

Drop MRI 1.8.7-2.2 support #158

merged 7 commits into from
Feb 10, 2020

Conversation

deivid-rodriguez
Copy link
Contributor

@deivid-rodriguez deivid-rodriguez commented Sep 6, 2019

These rubies are no longer maintained, and by dropping support we get inline with the range of rubies bundler supports, and get CI green.

This is currently a noop.
expect(Appraisal::Utils.format_string(hash)).
to eq('"baz" => { :ball => "boo" }')
end
hash = { 'baz' => { :ball => 'boo' }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Style/HashSyntax: Use the new Ruby 1.9 hash syntax.
Layout/SpaceInsideHashLiteralBraces: Space inside } missing.

hash = { :foo => 'bar' }
expect(Appraisal::Utils.format_string(hash)).to eq('foo: "bar"')
it "prints out a nice looking hash without brackets with new syntax" do
hash = { :foo => 'bar' }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/HashSyntax: Use the new Ruby 1.9 hash syntax.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@deivid-rodriguez deivid-rodriguez changed the title Drop MRI 1.8.7 support Drop MRI 1.8.7-2.2 support Sep 6, 2019
end
end

describe '.format_arguments' do
before { stub_const('RUBY_VERSION', '1.8.7') }
before { stub_const('RUBY_VERSION', '2.3.0') }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@@ -420,7 +420,7 @@
end

context "git_source support" do
before { stub_const('RUBY_VERSION', '1.8.7') }
before { stub_const('RUBY_VERSION', '2.3.0') }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@@ -251,7 +251,7 @@
end

context "relative path handling" do
before { stub_const('RUBY_VERSION', '1.8.7') }
before { stub_const('RUBY_VERSION', '2.3.0') }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.


it 'prints out arguments without enclosing square brackets' do
arguments = [:foo, { :bar => { :baz => 'ball' }}]

expect(Appraisal::Utils.format_arguments(arguments)).to eq(
':foo, :bar => { :baz => "ball" }'
':foo, bar: { baz: "ball" }'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/TrailingCommaInArguments: Put a comma after the last parameter of a multiline method call.

@deivid-rodriguez
Copy link
Contributor Author

Ping! Anybody watching this repo?

Copy link
Member

@nickcharlton nickcharlton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! I'm going to merge, as this is looking great.

@nickcharlton nickcharlton merged commit 92d5134 into thoughtbot:master Feb 10, 2020
@deivid-rodriguez
Copy link
Contributor Author

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants