I am trying to run a simple application with Sinatra and I am not able to install the reloader.
I tried with
gem install sinatra-contrib
and I have in my source file a line like this:
require "sinatra/reloader" if development?
and in my Gemfile
gem "sinatra-contrib", "~> "1.3.1"
gem 'sinatra-reloader'
and I get an error while trying to start the gem install sinatra-config
>gem install sinatra-contrib
ERROR: Error installing sinatra-contrib:
ERROR: Failed to build gem native extension.
C:/Ruby192/bin/ruby.exe extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.`
I can’t figure it out. And if I have the require "sinatra/reloader" if development? line, it just won’t work. There are not many things on the web about this. I know shotgun is not an option in Windows.
Have you tried shotgun(A Sinatra code reloader)? I used that to reload sinatra code when I was using Windows as my primary machine