Sha256: 7d9442a0797d7d80051608461e61bf0815a2ac214d522d8f112cfd6274efacd0

Contents?: true

Size: 218 Bytes

Versions: 5

Compression:

Stored size: 218 Bytes

Contents

require 'plist'

class RewritePlistFile
  def self.with_prefix(prefix, original)
    v = Plist::parse_xml(original)
    files = v['files']
    v['files'] = files.map{|i|File.join(prefix, i)}
    v.to_plist()
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gcc-to-clang-analyzer-0.0.5 lib/gcc_to_clang_analyzer/rewrite_plist_file.rb
gcc-to-clang-analyzer-0.0.4 lib/gcc_to_clang_analyzer/rewrite_plist_file.rb
gcc-to-clang-analyzer-0.0.3 lib/gcc_to_clang_analyzer/rewrite_plist_file.rb
gcc-to-clang-analyzer-0.0.2 lib/gcc_to_clang_analyzer/rewrite_plist_file.rb
gcc-to-clang-analyzer-0.0.1 lib/gcc_to_clang_analyzer/rewrite_plist_file.rb