mattbrictson/rails-template

add_template_repository_to_source_path: undefined method 'mktmpdir'

zachmakesuwonder opened this issue · 2 comments

Here's what I did

rails new my_app \
  -d postgresql \
  -m https://raw.githubusercontent.com/mattbrictson/rails-template/master/template.rb

Here's my error.

screen shot 2017-08-22 at 5 02 37 pm

As they said here I need to require 'tmpdir' first.

Can't find a way to require 'tmpdir' in your code here

My version of
rbenv 1.1.0
ruby 2.3.1
Rails 5.1.3

TIA!

Thanks for the report! It seems this is due to version 0.20.0 of the thor gem, which no longer requires tmpdir automatically. I'll fix this later today.

Fixed in 55c1b88.