lib/app_info/ipa/framework.rb in app-info-2.8.5 vs lib/app_info/ipa/framework.rb in app-info-3.0.0.beta1

- old
+ new

@@ -6,11 +6,11 @@ # iOS Framework parser class Framework extend Forwardable def self.parse(path, name = 'Frameworks') - files = Dir.glob(File.join(path, name.to_s, '*')) + files = Dir.glob(::File.join(path, name.to_s, '*')) return [] if files.empty? files.sort.each_with_object([]) do |file, obj| obj << new(file) end @@ -24,25 +24,25 @@ def initialize(file) @file = file end def name - File.basename(file) + ::File.basename(file) end def macho return unless lib? require 'macho' MachO.open(file) end def lib? - File.file?(file) + ::File.file?(file) end def info - @info ||= InfoPlist.new(File.join(file, 'Info.plist')) + @info ||= InfoPlist.new(::File.join(file, 'Info.plist')) end def to_s "<#{self.class}:#{object_id} @name=#{name}>" end