cocoapods-tuya-oss-publish 0.0.1 → 0.1.0
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: acd5500c4292f5d8b4384e3001289516a2329a63bde6921f2e264e2bc0b782e6
|
4
|
+
data.tar.gz: e20c9e85de5f903c14f0f4d86593d5ca1e77aa9b290a4de44a25092deea33bf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33158388e87be5c19eb995c24a5e72a841710893dad7aaa2fd0c64ca71547a71974fa5274d8ad67e2c1f5fcd055d6e80ef5c4bbc810d15570258de027e46f509
|
7
|
+
data.tar.gz: 6cfe689a620e719cd06d565b5abc08b06507ed3ad77a5e3356bbcff93818c2d180a9021f6fcc5f2189244aa9a92010be619ee6917309a1255654672994a7176e
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cocoapods-tuya-oss-publish (0.0
|
4
|
+
cocoapods-tuya-oss-publish (0.1.0)
|
5
5
|
aliyun-sdk
|
6
6
|
ty-cocoapods-packager (>= 1.5.5)
|
7
7
|
|
@@ -20,10 +20,10 @@ GEM
|
|
20
20
|
atomos (0.1.3)
|
21
21
|
bacon (1.2.0)
|
22
22
|
claide (1.0.2)
|
23
|
-
cocoapods (1.7.
|
23
|
+
cocoapods (1.7.4)
|
24
24
|
activesupport (>= 4.0.2, < 5)
|
25
25
|
claide (>= 1.0.2, < 2.0)
|
26
|
-
cocoapods-core (= 1.7.
|
26
|
+
cocoapods-core (= 1.7.4)
|
27
27
|
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
28
28
|
cocoapods-downloader (>= 1.2.2, < 2.0)
|
29
29
|
cocoapods-plugins (>= 1.0.0, < 2.0)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
nap (~> 1.0)
|
40
40
|
ruby-macho (~> 1.4)
|
41
41
|
xcodeproj (>= 1.10.0, < 2.0)
|
42
|
-
cocoapods-core (1.7.
|
42
|
+
cocoapods-core (1.7.4)
|
43
43
|
activesupport (>= 4.0.2, < 6)
|
44
44
|
fuzzy_match (~> 2.0.4)
|
45
45
|
nap (~> 1.0)
|
@@ -55,7 +55,7 @@ GEM
|
|
55
55
|
cocoapods-try (1.1.0)
|
56
56
|
colored2 (3.1.2)
|
57
57
|
concurrent-ruby (1.1.5)
|
58
|
-
domain_name (0.5.
|
58
|
+
domain_name (0.5.20190701)
|
59
59
|
unf (>= 0.0.5, < 1.0.0)
|
60
60
|
escape (0.0.4)
|
61
61
|
fourflusher (2.3.1)
|
@@ -97,7 +97,7 @@ GEM
|
|
97
97
|
unf (0.1.4)
|
98
98
|
unf_ext
|
99
99
|
unf_ext (0.0.7.6)
|
100
|
-
xcodeproj (1.
|
100
|
+
xcodeproj (1.11.0)
|
101
101
|
CFPropertyList (>= 2.3.3, < 4.0)
|
102
102
|
atomos (~> 0.1.3)
|
103
103
|
claide (>= 1.0.2, < 2.0)
|
@@ -201,30 +201,32 @@ module Pod
|
|
201
201
|
def repo_push_without_build(spec)
|
202
202
|
|
203
203
|
local_repo_path = "#{ENV["HOME"]}/.cocoapods/repos/#{@repo}"
|
204
|
-
|
204
|
+
repo_spec_dir = "#{local_repo_path}/Specs/#{spec.name}/#{spec.version}"
|
205
|
+
repo_spec_path = "#{repo_spec_dir}/#{spec.name}.podspec.json"
|
205
206
|
|
206
207
|
# repo update
|
207
|
-
exit_code = system("""cd #{
|
208
|
+
exit_code = system("""cd #{repo_spec_dir} \
|
208
209
|
&& git fetch \
|
209
210
|
&& REPO_COMMIT_HASH=`git rev-parse origin/master` \
|
210
211
|
&& git reset --hard $REPO_COMMIT_HASH
|
211
212
|
""")
|
212
213
|
if exit_code != 0
|
213
|
-
|
214
|
+
help! 'pod repo update failed.'
|
214
215
|
end
|
215
216
|
|
216
217
|
# write
|
218
|
+
File.delete(repo_spec_path) if File.exist?(repo_spec_path)
|
217
219
|
FileUtils.mkdir_p(repo_spec_path)
|
218
|
-
File.write(
|
220
|
+
File.write(repo_spec_path, spec.to_pretty_json)
|
219
221
|
|
220
222
|
# commit
|
221
|
-
exit_code = system("""cd #{
|
223
|
+
exit_code = system("""cd #{repo_spec_dir} \
|
222
224
|
&& git add . \
|
223
225
|
&& git commit -m \"⚠️ [Add] #{spec.name} (#{spec.version})\" \
|
224
226
|
&& git push
|
225
227
|
""")
|
226
228
|
if exit_code != 0
|
227
|
-
|
229
|
+
help! 'pod repo push failed.'
|
228
230
|
end
|
229
231
|
|
230
232
|
end
|