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

Ensures that Rails options are split by whitespace when generating Rails 6.y.z apps #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrgriffiniii
Copy link

I apologize if this is not the proper approach to addressing this problem, please close this if it is not fit to be merged.

I was attempting to pass --skip-javascript within the .engine_cart.yml file in order to test a Gem against Rails 6.0.0 releases, and found that this was not being whitespace-separated with other Rails generator arguments. Also, I found that I needed to introduce several changes to ensure that the latest Travis CI builds pass for Rails 6.0.0 with sprockets 4.0.0 releases.

apps; Ensuring that the latest Travis CI builds pass for Rails 6.0.0
with sprockets 4.0
gemspec_file_path = ".internal_test_gem/internal_test_gem.gemspec"
IO.write(gemspec_file_path,
File.open(gemspec_file_path) { |f|
f.read.gsub(/(spec.add_dependency "rails".+$)/, "\\1\n spec.add_dependency 'sprockets', '~> 3.7'")
Copy link
Author

@jrgriffiniii jrgriffiniii Nov 5, 2019

Choose a reason for hiding this comment

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

I'm hoping that this will no longer be necessary with rails/rails#36954 (comment) in 6.0.1, as I suspect that this is related to errors raised when using 4.0.0 as the sprockets dependency.

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.

1 participant