mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-29 00:48:07 +08:00
11 lines
268 B
Ruby
Executable File
11 lines
268 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
data = STDIN.read
|
|
data.each_line do |line|
|
|
puts "\"#{line.strip}\",\"\"" if line =~ /^Ruby.+[\d\.]+$/
|
|
puts "\"#{line.strip}\",\"\"" if line =~ /^\*{3} .+ \*{3}$/
|
|
if line =~ /^(.+)\s+\(([\d\.]+)\)$/
|
|
puts "\"#{$1.strip}\",#{$2}"
|
|
end
|
|
end
|