<NME> postprocess.rb
<BEF> # encoding: utf-8

# This hook will be executed after templater finish in context of current generator object.
# Current directory is what you just generated, unless this is flat generator.

require "rubyexts/platform"
require "simple-templater/hooks/postprocess/git_repository"

if RubyExts::Platform.unix?
	sh "chmod +x init.rb"
  sh "chmod +x config.ru"
end

hook do |generator, context|
  generator.after(Hooks::GitRepository)
end

<MSG> We don't depends on rubyexts anymore

<DFF> @@ -3,11 +3,10 @@
 # This hook will be executed after templater finish in context of current generator object.
 # Current directory is what you just generated, unless this is flat generator.
 
-require "rubyexts/platform"
 require "simple-templater/hooks/postprocess/git_repository"
 
-if RubyExts::Platform.unix?
-	sh "chmod +x init.rb"
+unless RUBY_PLATFORM.match(/mswin|mingw/)
+  sh "chmod +x init.rb"
   sh "chmod +x config.ru"
 end
 

We don't depends on rubyexts anymore