Fix resource compilation when empty
fix foodcritic & rubocop
Merge pull request #2 from Youscribe/fix

Fix resource compilation when empty