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

docs: Make UPGRADING examples more copyable #1363

Merged
merged 2 commits into from
Jan 5, 2022
Merged

Conversation

olleolleolle
Copy link
Member

Description

To improve the UPGRADING docs' usability, this change makes the examples stand out more. I made them monospaced, so as to be more copypastable.

In order to make these stand out more, I made them monospaced, so more copypastable.
Copy link
Member

@iMacTia iMacTia 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 the improvements! I noted a slight issue with the require, looks good otherwise!

`faraday` altogether as these gems usually have Faraday already in their dependencies.
`faraday` altogether as these gems usually have Faraday already in their dependencies. Example Gemfile line:
```ruby
gem 'faraday-net_http'
Copy link
Member

Choose a reason for hiding this comment

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

When requiring, this should be faraday/net_http

Copy link
Member Author

Choose a reason for hiding this comment

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

Unrelated: Right. I peeked in the Gemfile description, of the kwarg "require:" for gem, but it doesn't fully help the user.

https://bundler.io/v2.2/man/gemfile.5.html#REQUIRE-AS

I'll improve the documentation on "what to do in the app code".

Copy link
Member

@iMacTia iMacTia 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 the addition!

@iMacTia iMacTia merged commit 565f463 into main Jan 5, 2022
@iMacTia iMacTia deleted the docs-20-upgrading-examples branch January 5, 2022 08:34
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.

2 participants