ruhoh / ruhoh.rb

http://ruhoh.com
616 stars 69 forks source link

Fix issues when a `config.rb` file is present somewhere in the directories #281

Closed sztupy closed 10 years ago

sztupy commented 10 years ago

In this case the config.yml or config.json files might not get parsed, resulting in missing configuration values, and/or errors

sztupy commented 10 years ago

It seems it also fixes the issue with the config.yml file not being picked up in the default generated blog (where there is a config.ru file in the root)

indolent-gnathostome commented 10 years ago

Much appreciated, @sztupy; especially the new test. It looks like changes to lib/ruhoh/config.rb in this commit are relevant to #257, #256, #254, and #251.

sztupy commented 10 years ago

Ah, found a bug with loading the config files from the subdirectories. Fixed and added tests for it

plusjade commented 10 years ago

@sztupy much appreciated! Sorry I haven't been around lately and it has taken me a while to merge this in.