# File lib/gist/standalone.rb, line 34
    def build
      root = File.dirname(__FILE__)

      standalone = ''
      standalone << PREAMBLE

      Dir["#{root}/../**/*.rb"].each do |file|
        # skip standalone.rb
        next if File.expand_path(file) == File.expand_path(__FILE__)

        File.readlines(file).each do |line|
          next if line =~ /^\s*#/
          standalone << line
        end
      end

      standalone << POSTAMBLE
      standalone << MANPAGE
      standalone << CACERT
      standalone
    end