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

Remove Foreman gem #5821

Merged
merged 3 commits into from
Feb 5, 2020
Merged

Remove Foreman gem #5821

merged 3 commits into from
Feb 5, 2020

Conversation

citizen428
Copy link
Contributor

@citizen428 citizen428 commented Jan 31, 2020

What type of PR is this? (check all applicable)

  • Update

Description

This removes the Foreman gem, as per the author's recommendation:

Ruby users should take care not to install foreman in their project's Gemfile. See this wiki article for more details.

Related Tickets & Documents

n/a

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

Added to documentation?

  • docs.dev.to
  • readme
  • no documentation needed

@pr-triage pr-triage bot added the PR: unreviewed bot applied label for PR's with no review label Jan 31, 2020
Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

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

Seems very reasonable, though the PR that introduced this is from March 2019, which makes me think there was something else going on

#2143

I couldn't find it though

@citizen428
Copy link
Contributor Author

@rhymes Nothing was going on from what I can tell. Thor was updated, Foreman wasn't yet. We left a note to update Foreman once it had released the new version with an updated dependency, which didn't happen until 0.86.0 released in October 2019. Foreman 0.85.0 had the dependency listed as thor ~> 0.19.1.

rhymes
rhymes previously approved these changes Feb 1, 2020
Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

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

I still think we shouldn't have foreman in our Gemfile:

Ruby users should take care not to install foreman in their project's Gemfile. See this wiki article for more details.

and the wiki link is title "Don't Bundle Foreman" :D https://github.com/ddollar/foreman/wiki/Don't-Bundle-Foreman

though having it enabled only in development mode should be safe enough

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Feb 1, 2020
@citizen428
Copy link
Contributor Author

@rhymes Agreed, I usually don't bundle it. But since this project does and had a pretty outdated comment, I updated Foreman. I'd be just as happy removing it.

@rhymes
Copy link
Contributor

rhymes commented Feb 2, 2020

Let's see what @maestromac thinks, I'm definitely down to removing it and add it to the installation guide

@maestromac
Copy link
Contributor

Oh yes! Let's remove foreman from our app and have a separate step for installing foreman to our guide.

@rhymes rhymes self-requested a review February 4, 2020 23:22
@rhymes rhymes removed the PR: reviewed-approved bot applied label for PR's where reviewer approves changes label Feb 4, 2020
@citizen428 citizen428 changed the title Update Foreman gem Remove Foreman gem Feb 5, 2020
@pr-triage pr-triage bot added the PR: reviewed-approved bot applied label for PR's where reviewer approves changes label Feb 5, 2020
@pr-triage pr-triage bot added PR: unreviewed bot applied label for PR's with no review and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Feb 5, 2020
@citizen428
Copy link
Contributor Author

@rhymes & @maestromac Removed Foreman and updated the docs.

rhymes
rhymes previously approved these changes Feb 5, 2020
Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

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

Loks good!

I wonder if it'd make sense to link this new "others" page in a note in this other page: https://docs.dev.to/getting-started/start-app/

In case people run bin/startup and they don't have foreman installed:

➜  devto git:(citizen428/update-foreman) ✗ bin/startup
== STARTING UP ==
Traceback (most recent call last):
	4: from /Users/rhymes/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `<main>'
	3: from /Users/rhymes/.rvm/gems/ruby-2.6.5/bin/ruby_executable_hooks:24:in `eval'
	2: from /Users/rhymes/.rvm/gems/ruby-2.6.5/bin/foreman:23:in `<main>'
	1: from /Users/rhymes/.rvm/gems/ruby-2.6.5/gems/bundler-2.0.2/lib/bundler/rubygems_integration.rb:480:in `block in replace_bin_path'
/Users/rhymes/.rvm/gems/ruby-2.6.5/gems/bundler-2.0.2/lib/bundler/rubygems_integration.rb:460:in `block in replace_bin_path': can't find executable foreman for gem foreman. foreman is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception)

== Command ["bundle exec foreman start -f Procfile.dev"] failed ==

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Feb 5, 2020
@pr-triage pr-triage bot added PR: unreviewed bot applied label for PR's with no review and removed PR: reviewed-approved bot applied label for PR's where reviewer approves changes labels Feb 5, 2020
@citizen428
Copy link
Contributor Author

@rhymes Makes total sense, added a note there.

Copy link
Contributor

@rhymes rhymes left a comment

Choose a reason for hiding this comment

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

LGTM!

@pr-triage pr-triage bot added PR: reviewed-approved bot applied label for PR's where reviewer approves changes and removed PR: unreviewed bot applied label for PR's with no review labels Feb 5, 2020
Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

I think this makes sense 👍

@mstruve mstruve merged commit 424c141 into master Feb 5, 2020
@pr-triage pr-triage bot removed the PR: reviewed-approved bot applied label for PR's where reviewer approves changes label Feb 5, 2020
@mstruve mstruve deleted the citizen428/update-foreman branch February 5, 2020 22:01
@pr-triage pr-triage bot added the PR: merged bot applied label for PR's that are merged label Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged bot applied label for PR's that are merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants