Sha256: 1fbf628d4739425025d1b40fe62108b36cf63daca6aa201b9753037816809968
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require 'bundler/setup' require 'pathname' require 'dump_rake/env' readme = Pathname('README.markdown') lines = readme.readlines.map(&:rstrip) readme.open('w') do |f| lines.each do |line| line.sub!(/^`(.+?)`.*—.*$/) do key, names = DumpRake::Env::DICTIONARY.find{ |_key, values| values.include?(Regexp.last_match[1]) } if key names = names.map{ |name| "`#{name}`" }.join(', ') explanation = DumpRake::Env::EXPLANATIONS[key] "#{names} — #{explanation}" end end f.puts line end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dump-1.0.5 | script/update_readme |