lib/middleman-robots/extension.rb in middleman-robots-1.0.1 vs lib/middleman-robots/extension.rb in middleman-robots-1.1.0

- old
+ new

@@ -7,10 +7,10 @@ option :rules, [], 'List of rules about sitemap.xml' option :sitemap, false, 'URI of sitemap.xml' def initialize(app, options_hash = {}, &block) super - build_dir = app.build_dir + build_dir = app.config.build_dir data = rules(options.rules) + sitemap(options.sitemap) data.gsub!(/\n+$/, "\n") app.after_build do