cocoapods-alibaba-cainiao-environment 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c2ef3311b3b2c4391b8a80ea5bd2b83ec0c9deb16c5338c64f6d79316c0dc25
|
4
|
+
data.tar.gz: 209177bfb3eee0759a612cd480303b04ed9b751cf3ff3b187769836b4176372b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1325fd4a98ffe3e2f3241e76dc40de4eeae8116f8e3e60a65fff733f940c50a47698ef8c422e92950dffbff09ff081586e1483c6e93efc37cf2072963a0fd16
|
7
|
+
data.tar.gz: 9b94eb6efc641e23bdd91ec762b73940d31ddf5bdeee568d97b33d31710a467ba509a9a2e0ba8bb400505ee95a2671b713ed0332b5d1ea0624976c468d30a0a6
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-alibaba-cainiao-environment (0.0.
|
4
|
+
cocoapods-alibaba-cainiao-environment (0.0.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://gems.alibaba-inc.com/
|
@@ -12,6 +12,9 @@ GEM
|
|
12
12
|
minitest (~> 5.1)
|
13
13
|
thread_safe (~> 0.3, >= 0.3.4)
|
14
14
|
tzinfo (~> 1.1)
|
15
|
+
aliyun-sdk (0.7.0)
|
16
|
+
nokogiri (~> 1.6)
|
17
|
+
rest-client (~> 2.0)
|
15
18
|
atomos (0.1.3)
|
16
19
|
bacon (1.2.0)
|
17
20
|
claide (1.0.2)
|
@@ -50,13 +53,22 @@ GEM
|
|
50
53
|
cocoapods-try (1.1.0)
|
51
54
|
colored2 (3.1.2)
|
52
55
|
concurrent-ruby (1.1.5)
|
56
|
+
domain_name (0.5.20190701)
|
57
|
+
unf (>= 0.0.5, < 1.0.0)
|
53
58
|
escape (0.0.4)
|
54
59
|
fourflusher (2.0.1)
|
55
60
|
fuzzy_match (2.0.4)
|
56
61
|
gh_inspector (1.1.3)
|
62
|
+
http-accept (1.7.0)
|
63
|
+
http-cookie (1.0.3)
|
64
|
+
domain_name (~> 0.5)
|
57
65
|
i18n (0.9.5)
|
58
66
|
concurrent-ruby (~> 1.0)
|
59
67
|
metaclass (0.0.4)
|
68
|
+
mime-types (3.3)
|
69
|
+
mime-types-data (~> 3.2015)
|
70
|
+
mime-types-data (3.2019.1009)
|
71
|
+
mini_portile2 (2.4.0)
|
60
72
|
minitest (5.8.3)
|
61
73
|
mocha (1.9.0)
|
62
74
|
metaclass (~> 0.0.1)
|
@@ -66,13 +78,23 @@ GEM
|
|
66
78
|
nanaimo (0.2.6)
|
67
79
|
nap (1.1.0)
|
68
80
|
netrc (0.11.0)
|
81
|
+
nokogiri (1.10.4)
|
82
|
+
mini_portile2 (~> 2.4.0)
|
69
83
|
prettybacon (0.0.2)
|
70
84
|
bacon (~> 1.2)
|
71
85
|
rake (10.4.2)
|
86
|
+
rest-client (2.1.0)
|
87
|
+
http-accept (>= 1.7.0, < 2.0)
|
88
|
+
http-cookie (>= 1.0.2, < 2.0)
|
89
|
+
mime-types (>= 1.16, < 4.0)
|
90
|
+
netrc (~> 0.8)
|
72
91
|
ruby-macho (1.4.0)
|
73
92
|
thread_safe (0.3.6)
|
74
93
|
tzinfo (1.2.5)
|
75
94
|
thread_safe (~> 0.1)
|
95
|
+
unf (0.1.4)
|
96
|
+
unf_ext
|
97
|
+
unf_ext (0.0.7.6)
|
76
98
|
xcodeproj (1.11.0)
|
77
99
|
CFPropertyList (>= 2.3.3, < 4.0)
|
78
100
|
atomos (~> 0.1.3)
|
@@ -84,6 +106,7 @@ PLATFORMS
|
|
84
106
|
ruby
|
85
107
|
|
86
108
|
DEPENDENCIES
|
109
|
+
aliyun-sdk
|
87
110
|
bacon
|
88
111
|
bundler
|
89
112
|
cocoapods
|
@@ -15,7 +15,6 @@ module Pod
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
-
# puts 'gggggggggg ' + path.to_s
|
19
18
|
path = Pathname.new(path)
|
20
19
|
unless path.exist?
|
21
20
|
raise Informative, "No podspec exists at path `#{path}`."
|
@@ -27,29 +26,31 @@ module Pod
|
|
27
26
|
string.encode!('UTF-8')
|
28
27
|
end
|
29
28
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
process_source_http_url(podObject['source']['http'])
|
29
|
+
pod_object = JSON.parse(string)
|
30
|
+
if (pod_object['source'] && pod_object['source']['http'])
|
31
|
+
pod_object['source']['http'] = process_source_http_url(pod_object['source']['http'], pod_object['version'])
|
32
|
+
string = pod_object.to_json
|
35
33
|
end
|
36
34
|
|
37
35
|
from_string(string, path, subspec_name)
|
38
36
|
end
|
39
37
|
|
40
|
-
def process_source_http_url(url)
|
38
|
+
def process_source_http_url(url, version)
|
39
|
+
|
41
40
|
if url != nil then
|
42
|
-
if url.include? '
|
41
|
+
if url.include? 'ios-lib.oss-cn-beijing.aliyuncs.com' then
|
43
42
|
uri = URI.parse(url)
|
44
43
|
oss_file_object_key = uri.path
|
44
|
+
if $endpoint.nil? || $access_key_id.nil? || $access_key_secret.nil?
|
45
|
+
raise("未设置全局变量:$endpoint $access_key_id $access_key_secret")
|
46
|
+
end
|
47
|
+
|
45
48
|
client = Aliyun::OSS::Client.new(endpoint: $endpoint,
|
46
49
|
access_key_id: $access_key_id,
|
47
50
|
access_key_secret: $access_key_secret);
|
48
51
|
|
49
|
-
bucket = client.get_bucket('
|
50
|
-
|
51
|
-
oss_url = bucket.object_url(uri.path[1...uri.path.length])
|
52
|
-
puts 'oss_url = ' + oss_url
|
52
|
+
bucket = client.get_bucket('ios-lib')
|
53
|
+
oss_url = bucket.object_url(oss_file_object_key[1...oss_file_object_key.length] + "-#{version}.zip")
|
53
54
|
|
54
55
|
return oss_url
|
55
56
|
end
|
@@ -57,7 +58,6 @@ module Pod
|
|
57
58
|
|
58
59
|
return url
|
59
60
|
end
|
60
|
-
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-alibaba-cainiao-environment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 亿刀
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|