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

Rails 6.1.1 #1061

Closed
wants to merge 2 commits into from
Closed

Rails 6.1.1 #1061

wants to merge 2 commits into from

Conversation

mike-burns
Copy link
Contributor

@mike-burns mike-burns commented Jan 19, 2021

Along the way some tiny changes were made:

Closes #1060 .

@mike-burns
Copy link
Contributor Author

I'm not convinced the build failures are related to anything I did. What's the status of CI?

@mike-burns mike-burns force-pushed the rails-6 branch 3 times, most recently from bec391d to 6e98608 Compare February 12, 2021 20:44
Base automatically changed from master to main March 5, 2021 19:05
@mike-burns
Copy link
Contributor Author

Some of these tests are failing because the gem command is irreversible.

@mike-burns
Copy link
Contributor Author

That's because of rails/rails#35285, which swapped from Thor append_file (reversible) to Thor gsub_file (irreversible).

mike-burns added a commit that referenced this pull request Mar 13, 2021
For too long we have [suffered] under the tyranny of Rails' mediocre `gem`
action! But Rails 6 took it a step too far: it [no longer] supports a
`destroy` generator.

[suffered]: #915
[no longer]:#1061 (comment)

So it's high time we make our own. In the process, encode the rules we
like to see: keep gems alphabetical, and use the `group` block syntax
instead of the `:group` argument.

When inserting a gem, we have to consider two cases: do we have a group
specification? If we don't have a group name, insert it alphabetically
before the first non-indented `gem "..."` declaration. If we do have a
group name, find the block for that group and insert it alphabetically.
But there's also the chance thar we are the first to add this group, in
which case we should add the group with the `gem` line at the end.

When removing a group, we again consider the groups case. If there is no
group specification, remove the first matching non-indented `gem "..."`
declaration. If we have a group spec, find the group block in the
Gemfile and remove it. If there is no such group block, do nothing.

Closes #915.
@mike-burns mike-burns mentioned this pull request Mar 13, 2021
@mike-burns
Copy link
Contributor Author

Fixing it in #1066.

mike-burns and others added 2 commits October 1, 2021 10:19
Along the way some tiny changes were made:

- Use [`config.i18n.raise_on_missing_translations`] instead of the
deprecated setting.
- Better print-debugging in the test suite for the `destroy` task.

[`config.i18n.raise_on_missing_translations`]: rails/rails#31571
In [this commit] ActiveJob::LogSubscriber was extracted to a separate
class and now needs to be required explicitly.

[this commit]: rails/rails@e8b3a46#diff-607cb532b6032217dc132c06d6822726cdd173c1907c09bddae078e436c50e03
@stevepolitodesign
Copy link
Contributor

We might want to consider closing this now that #1104 has been merged.

@mike-burns
Copy link
Contributor Author

We Rails 7 now, hey!

@mike-burns mike-burns closed this Jan 13, 2023
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.

Update for Rails 6.1.0 webpack.yml is missing after creating an app
3 participants