fastlane-plugin-ipa_info 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d02632c59b5d057a6227def1bc12cc69deb3f0c5a05b9448cd034675d12ce9a
4
- data.tar.gz: aa464bb64612797248568cfc0ba704150dc59d9fc9872781c92e1ac6147545c6
3
+ metadata.gz: d4760b3932e7e1b06973ec7bba3af813b0e73d126fc07735b7a5f851c31d8c5e
4
+ data.tar.gz: 933a353918805cb565d01652b76675923780f982de0587919569869d137c0a2d
5
5
  SHA512:
6
- metadata.gz: 9c23edd1aef4d7ee8364747f40ae35f12ce7ba6002e0b35855991a55535af4d69f8c5a6d9925ab7843e8895ec0c8b331de5198505865ac5ba17e54a5621b29a4
7
- data.tar.gz: bb96ff38f13fe7b0767292e8d944a9191909667a4636634b6cafa58c21a2b711980a9ee74633e5b07f30b0db6c5fad6ac343701b2758733f08b0375546544ce2
6
+ metadata.gz: 684a77ae2d2876dc5c00a07718684d899d8ee71dd09903afe675b7e7e19e69b15c8f78afd3372ef378489637e8db6428c658d0116bf41dcce804cfcf6599cea3
7
+ data.tar.gz: 9e2b92e2f584f35e14fad54117ac2bb39e81f9abbe72015e5744fde542924f77bebc3834f22c38cf920d5d84ed055f379c4566a5664467ee7c700399e3c10db9
@@ -22,13 +22,11 @@ module Fastlane
22
22
 
23
23
  # Info plist
24
24
  def self.analyze_info_plist(data)
25
- tempfile = Tempfile.new(::File.basename("info_plist"))
25
+ tempfile = Tempfile.new(::File.basename("infoplist"))
26
26
  result = {}
27
27
 
28
28
  begin
29
- File.open(tempfile.path, 'w') do |output|
30
- output.puts(data)
31
- end
29
+ File.binwrite(tempfile.path, data)
32
30
  UI.user_error!("Failed to convert binary Plist to XML") unless system("plutil -convert xml1 '#{tempfile.path}'")
33
31
 
34
32
  plist = Plist.parse_xml(tempfile.path)
@@ -48,13 +46,11 @@ module Fastlane
48
46
 
49
47
  # mobileprovisioning
50
48
  def self.analyze_mobileprovisioning(data)
51
- tempfile = Tempfile.new(::File.basename("mobile_provisioning"))
49
+ tempfile = Tempfile.new(::File.basename("mobileprovisioning"))
52
50
  result = {}
53
51
 
54
52
  begin
55
- File.open(tempfile.path, 'w') do |output|
56
- output.puts(data)
57
- end
53
+ File.binwrite(tempfile.path, data)
58
54
  mobileprovisioning = Plist.parse_xml(`security cms -D -i #{tempfile.path}`)
59
55
  mobileprovisioning.each do |key, value|
60
56
  next if key == 'DeveloperCertificates'
@@ -113,7 +109,7 @@ module Fastlane
113
109
 
114
110
  # return app folder path
115
111
  def self.find_app_folder_path_in_ipa(ipa_path)
116
- return "Payload/#{File.basename(ipa_path, File.extname(ipa_path))}.app"
112
+ return "Payload/*.app"
117
113
  end
118
114
 
119
115
  private_class_method :find_app_folder_path_in_ipa
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module IpaInfo
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-ipa_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tarappo