cocoapods-azure-universal-packages 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 207b72a97e6c7b283572863af8c19956f93b9e88bf12946661f90e7c55832a3c
4
- data.tar.gz: 0c6f5ef6a710f9881ef7d62621e61b7b606266da852df8a4e124045d04fbb380
3
+ metadata.gz: e051ebb86ce103f034a0f2f2fbe5f8594933c7561c0c8c39abda6b4c27172e28
4
+ data.tar.gz: ca0ec59da4f7844774c6e4c962d8887619455e1889a3c6f1e6412705d8d59ed0
5
5
  SHA512:
6
- metadata.gz: b52f628384ebaddb4f8b1f88460bdd31c03267f9ce93ab746917e9bb26ec490a8c71a60b9fd3de68345184bf461c8a56e80c060f60cdf3f5face9d1929af6321
7
- data.tar.gz: ab61da34afb943407abd8da58b3ad93ebb4cfabcf7c5d20813a46b41b86bf88b8db840d9473f2eee0c1236c2265754b7e16d4dddeb79d94821b1e7385fdcc906
6
+ metadata.gz: e36296b576a1f5cdc4a5af2daf7ed5c33666ee338b44b04547eabff1e15131af7b6833605352a962fa584e38c7edcba070cbf7ac0a68e1a6c4823ea80d774e10
7
+ data.tar.gz: b147236832cfbd6a9f7038f472c25abecd5089c1ef16abe370bc16693f42384fbeb40667c9b804bf933f1ac7de3ec9c1cef72629af8dae7debde16bcd673a4e0
@@ -28,6 +28,29 @@ module Pod
28
28
 
29
29
  if !aup_uri_components.nil? && Downloader.azure_base_urls.include?("#{aup_uri_components['scheme']}://#{aup_uri_components['host']}")
30
30
  download_azure_universal_package!(aup_uri_components)
31
+
32
+ # Extract the file if it's the only one in the package
33
+ package_files = target_path.glob('*')
34
+ if package_files.count == 1 && package_files.first.file?
35
+ file = package_files.first
36
+ file_type = begin
37
+ case file.to_s
38
+ when /\.zip$/
39
+ :zip
40
+ when /\.(tgz|tar\.gz)$/
41
+ :tgz
42
+ when /\.tar$/
43
+ :tar
44
+ when /\.(tbz|tar\.bz2)$/
45
+ :tbz
46
+ when /\.(txz|tar\.xz)$/
47
+ :txz
48
+ when /\.dmg$/
49
+ :dmg
50
+ end
51
+ end
52
+ extract_with_type(file, file_type) unless file_type.nil?
53
+ end
31
54
  else
32
55
  aliased_download!
33
56
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsAzureUniversalPackages
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-azure-universal-packages
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-14 00:00:00.000000000 Z
11
+ date: 2021-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods