I quadruple-checked that the local file (/Users/mia/Downloads/enlitement.rb) contains the most recent version of the script, and tried to create a new application with
rails new enlitement_test_3 -m /Users/mia/Downloads/enlitement.rb
It bombs with
apply /Users/mia/Downloads/enlitement.rb
The template [/Users/mia/Downloads/enlitement.rb] could not be loaded. Error: No such file or directory @ rb_sysopen - /Users/mia/workspace/rails/enlitement_test_4/Gemfile.lock
I got past that by changing this line
return if file_includes?("Gemfile.lock", " #{name}")
to
return if File.exist?('Gemfile.lock') && file_includes?("Gemfile.lock", " #{name}")
while I could try to debug/fix this further, it sounds like I'm doing something fundamentally wrong (I can hardly imagine how something as basic as "I can't create an app" made it this far after all the testing) so please take a look.
Expected behavior
A new application should be created.
NB: I'm not even saying 'created correctly', i.e. everything works as intended once the app is set up. In fact, I wanted to set this app up to demonstrate a bug I ran into, but well, now you know how that went 😅
Describe the bug
I can not create a new application using the current version of enlitement (89c28190960aed3e1b385f8444a6cdb0cef42b08).
To Reproduce
I quadruple-checked that the local file (
/Users/mia/Downloads/enlitement.rb
) contains the most recent version of the script, and tried to create a new application withIt bombs with
I got past that by changing this line
to
but then it blows up with
while I could try to debug/fix this further, it sounds like I'm doing something fundamentally wrong (I can hardly imagine how something as basic as "I can't create an app" made it this far after all the testing) so please take a look.
Expected behavior
A new application should be created.
NB: I'm not even saying 'created correctly', i.e. everything works as intended once the app is set up. In fact, I wanted to set this app up to demonstrate a bug I ran into, but well, now you know how that went 😅