Sha256: f1fcf963b26ebd9fef6233dc3081bfb71d0129379210d7c357d6fc60680b92fe
Contents?: true
Size: 340 Bytes
Versions: 19
Compression:
Stored size: 340 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'plist' require 'yaml' result = Plist::parse_xml( ARGV[0] ) standard_name = File.basename( ARGV[0] ).downcase.gsub(/\s+/, '_').gsub(/\.(plist|tm[Ll]anguage)/, '').gsub(/\(|\)|:/, '').gsub(/_+/, '_') puts standard_name File.open( "#{standard_name}.yaml", "w" ) {|f| YAML.dump( result, f ) }
Version data entries
19 entries across 19 versions & 4 rubygems