bin/gitdoc in gitdoc-4.3.0 vs bin/gitdoc in gitdoc-4.4.0
- old
+ new
@@ -11,29 +11,35 @@
if File.exists? 'config.ru'
abort "config.ru exists, is GitDoc already set up for this folder?"
end
config = <<-END
+require 'bundler/setup' if $LOAD_PATH.grep(/gitdoc$/).empty?
require 'gitdoc'
GitDoc!
END
rakefile = <<-END
-require 'bundler/setup' unless $LOAD_PATH.last =~ /gitdoc$/
+require 'bundler/setup' if $LOAD_PATH.grep(/gitdoc$/).empty?
require 'gitdoc/tasks'
END
gemfile = <<-END
source :rubygems
gem 'gitdoc', '#{version}'
END
+powrc = <<-END
+export RUBYOPT="rubygems"
+END
+
index = <<-END
Welcome to GitDoc
END
File.open('config.ru','w') { |f| f.write config }
File.open('Rakefile','w') { |f| f.write rakefile }
File.open('Gemfile','w') { |f| f.write gemfile }
+File.open('.powrc','w') { |f| f.write powrc }
-system 'bundle install'
\ No newline at end of file
+system 'bundle install'