hotwired / stimulus-rails

Use Stimulus in your Ruby on Rails app
https://stimulus.hotwired.dev
MIT License
638 stars 92 forks source link

Changed install template system call to account for spaces in path #137

Closed marekhilton closed 3 months ago

marekhilton commented 6 months ago

This is a very small fix to the installation process. In run_stimulus_install_template the path may contain a space. In my case, the bundle directory has a space in it for some reason unknown to me (vendor/bundle /). In the old code this broke the system call and prevented generation of a new rails project by rails new app_name. The new version is in line with other library install templates like importmap)

I'm using rbenv on Arch, ruby 3.3.1, rails 7.1.3.2.