Skip to content

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

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.


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.


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.


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 deivid-rodriguez deleted the revamp branch February 10, 2020 13:33
@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