lib/run_loop/ipa.rb in run_loop-2.1.0.pre1 vs lib/run_loop/ipa.rb in run_loop-2.1.0

- old
+ new

@@ -23,11 +23,24 @@ @path = path_to_ipa end # @!visibility private def to_s - "#<IPA: #{bundle_identifier}: '#{path}'>" + cf_bundle_version = bundle_version + cf_bundle_short_version = short_bundle_version + + if cf_bundle_version && cf_bundle_short_version + version = "#{cf_bundle_version.to_s}/#{cf_bundle_short_version}" + elsif cf_bundle_version + version = cf_bundle_version.to_s + elsif cf_bundle_short_version + version = cf_bundle_short_version + else + version = "" + end + + "#<IPA #{bundle_identifier} #{version} #{path}>" end # @!visibility private def inspect to_s @@ -68,9 +81,25 @@ # @!visibility private def distribution_signed? app.distribution_signed? end + + # @!visibility private + def marketing_version + app.marketing_version + end + + # See #marketing_version + alias_method :short_bundle_version, :marketing_version + + # @!visibility private + def build_version + app.build_version + end + + # See #build_version + alias_method :bundle_version, :build_version private # @!visibility private def tmpdir