cocoapods-tuya-oss-publish 0.1.0 → 0.1.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: ff002900ea106cb739afc3a47fbda460a3d98da35ffa2ff7c4f3947e331fbdfc
|
4
|
+
data.tar.gz: 649d040eaee198e9414046c2bdd7d093cee4e0f7ed7f9d6aabb287d3150814d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e58b58ba0bdaf5877fe72c2c365bde7e40ab203edd2dea3303cca73ca5119a1254d4397bacef7c18f6c09a50ad17855bdce2dea78463ad5b323a5dc0c0d0e2
|
7
|
+
data.tar.gz: 520359c1753c402f057061b5ccbfc2882101a4fbf07b40db393f9791ec584a5b3344a248a8fe7e2f4d06694a355bf423c74efead89f4737c0274e06e1e94f3f7
|
@@ -130,7 +130,7 @@ module Pod
|
|
130
130
|
package.run
|
131
131
|
rescue => exception
|
132
132
|
UI.puts(exception)
|
133
|
-
|
133
|
+
raise "#{@podspec.name} (#{@podspec.version}) build failed."
|
134
134
|
ensure
|
135
135
|
File.delete(podspec_path)
|
136
136
|
end
|
@@ -148,6 +148,7 @@ module Pod
|
|
148
148
|
"vendored_frameworks",
|
149
149
|
"vendored_libraries",
|
150
150
|
"subspecs",
|
151
|
+
"default_subspecs",
|
151
152
|
# TODO copy resources
|
152
153
|
# "resource_bundles",
|
153
154
|
# "resources",
|
@@ -211,12 +212,12 @@ module Pod
|
|
211
212
|
&& git reset --hard $REPO_COMMIT_HASH
|
212
213
|
""")
|
213
214
|
if exit_code != 0
|
214
|
-
|
215
|
+
raise 'pod repo update failed.'
|
215
216
|
end
|
216
217
|
|
217
218
|
# write
|
218
219
|
File.delete(repo_spec_path) if File.exist?(repo_spec_path)
|
219
|
-
FileUtils.mkdir_p(
|
220
|
+
FileUtils.mkdir_p(repo_spec_dir)
|
220
221
|
File.write(repo_spec_path, spec.to_pretty_json)
|
221
222
|
|
222
223
|
# commit
|
@@ -226,7 +227,7 @@ module Pod
|
|
226
227
|
&& git push
|
227
228
|
""")
|
228
229
|
if exit_code != 0
|
229
|
-
|
230
|
+
raise 'pod repo push failed.'
|
230
231
|
end
|
231
232
|
|
232
233
|
end
|
@@ -19,7 +19,7 @@ module Pod
|
|
19
19
|
|
20
20
|
def upload_to_oss(file_path, force)
|
21
21
|
if not File.exist?(file_path)
|
22
|
-
|
22
|
+
raise "#{file_path} not exists"
|
23
23
|
end
|
24
24
|
|
25
25
|
file_name = File.basename(file_path)
|
@@ -35,7 +35,7 @@ module Pod
|
|
35
35
|
|
36
36
|
if bucket.object_exists?(object_key) && force == false
|
37
37
|
# 正式版上传不覆盖
|
38
|
-
|
38
|
+
raise "#{url} already exists" unless file_name.index(/\balpha|\bbeta|\brc|\bSNAPSHOT/)
|
39
39
|
end
|
40
40
|
|
41
41
|
UI.puts("Uploading #{file_path}")
|
@@ -43,7 +43,7 @@ module Pod
|
|
43
43
|
bucket.put_object(object_key, :file => file_path)
|
44
44
|
rescue => exception
|
45
45
|
UI.puts(exception)
|
46
|
-
|
46
|
+
raise "#{file_name} upload failed."
|
47
47
|
end
|
48
48
|
|
49
49
|
puts(url)
|