lib/shinmun/blog.rb in shinmun-1.0 vs lib/shinmun/blog.rb in shinmun-1.0.1
- old
+ new
@@ -31,9 +31,12 @@
FileUtils.cp_r "#{ROOT}/templates", path
FileUtils.cp "#{ROOT}/config.ru", path
Dir.mkdir("#{path}/posts")
Dir.mkdir("#{path}/pages")
+ File.open("#{path}/Gemfile") do |io|
+ io.puts('gem "shinmun"')
+ end
end
def render(name, vars = {})
super(name, vars.merge(:blog => self))
end