lib/app_info/ipa/framework.rb in app-info-2.5.4 vs lib/app_info/ipa/framework.rb in app-info-2.6.0

- old
+ new

@@ -1,19 +1,19 @@ # frozen_string_literal: true require 'forwardable' module AppInfo - # iOS Plugin parser + # iOS Framework parser class Framework extend Forwardable def self.parse(path, name = 'Frameworks') files = Dir.glob(File.join(path, name.to_s, '*')) return [] if files.empty? - files.each_with_object([]) do |file, obj| + files.sort.each_with_object([]) do |file, obj| obj << new(file) end end attr_reader :file @@ -39,10 +39,10 @@ def lib? File.file?(file) end def info - @info ||= InfoPlist.new(file) + @info ||= InfoPlist.new(File.join(file, 'Info.plist')) end def to_s "<#{self.class}:#{object_id} @name=#{name}>" end