GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
I added the missing methods from sinatra-sugar and monkey-lib to make config_file work without them.
Fixing the files.empty? issue since files is not an Array
Fixing the already-exists test in config_file
Merge remote branch 'upstream/master'
Removing the Sugar registration since it's not required anymore
Rollbacking a wrong merge
Adding the missing methods from sugar/monkey-lib
Hey, thanks for your work on this. I don't think this is the right approach, though. sinatra-config-file shouldn't do monkey patching. eveel's fork had a working solution using Dir.glob with an interplated string and File.expand_path. Apparently he removed his fork but shouldn't be to complicated to recreate the patch.
I agree. That was just a quick fix so it works again. I'm using it fo a project and I needed it to work without losing to much time. I guess we could use eveel's work, but I do not have time for this now ;) maybe later.