Sha256: 32400cb139b0ee71928522fc9c92082490f96a57dbeb4d3195a4814aa38a1048

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

require 'yaml'
@history = YAML.load_file(File.join(File.dirname(__FILE__), 'history.yml'))

# note: @history is an array of hashes


def format_history_entry aEntry
  output = "h1(##{aEntry['Version']}). Version #{aEntry['Version']} (#{aEntry['Date']})\n\n"

  %w[Summary Acknowledgment Notice Detail].each do |key|
    if content = aEntry[key]
      output << "h2. #{key}\n\n#{content}\n\n"
    end
  end

  output
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-vpi-12.0.1 doc/history.rb
ruby-vpi-12.1.0 doc/history.rb
ruby-vpi-12.0.2 doc/history.rb