Sha256: 8db1f0e73dbe3bcb5f1d3661aefca5aeccfbd80e70fa5c8d399e1c937973201b

Contents?: true

Size: 474 Bytes

Versions: 7

Compression:

Stored size: 474 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift File.dirname(File.realpath(__FILE__)) + "/../lib"
require 'github/markup'

if ARGV.size < 1
  print "usage: #$0 FILE [ FILES ... ]\n"
  exit 1
end

sources = []

ARGV.each { |s|
  begin
    file = File.open( s, "r" )
    sources.push [ s, file ]
  rescue Exception => e
    $stderr.print "error: #{e.message}\n"
    exit 1
  ensure
  end
}

sources.each { |name, file|
  print GitHub::Markup.render( name, file.read )
  file.close
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
github-markup-1.6.1 bin/github-markup
github-markup-1.6.0 bin/github-markup
github-markup-1.5.0 bin/github-markup
github-markup-1.4.9 bin/github-markup
github-markup-1.4.8 bin/github-markup
github-markup-1.4.7 bin/github-markup
github-markup-1.4.6 bin/github-markup