lib/app_info/dsym.rb in app-info-3.0.0.beta1 vs lib/app_info/dsym.rb in app-info-3.0.0.beta2
- old
+ new
@@ -5,20 +5,22 @@
module AppInfo
# DSYM parser
class DSYM < File
include Helper::Archive
- def file_type
- Format::DSYM
+ # @return [Symbol] {Platform}
+ def platform
+ Platform::APPLE
end
def each_file(&block)
files.each { |file| block.call(file) }
end
+ # @return [Array<DebugInfo>] dsym_files files by alphabetical order
def files
- @files ||= Dir.children(contents).each_with_object([]) do |file, obj|
+ @files ||= Dir.children(contents).sort.each_with_object([]) do |file, obj|
obj << DebugInfo.new(::File.join(contents, file))
end
end
def clear!
@@ -28,9 +30,10 @@
@contents = nil
@files = nil
end
+ # @return [String] contents path of dsym
def contents
@contents ||= lambda {
return @file if ::File.directory?(@file)
dsym_filenames = []