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: acd5500c4292f5d8b4384e3001289516a2329a63bde6921f2e264e2bc0b782e6
4
- data.tar.gz: e20c9e85de5f903c14f0f4d86593d5ca1e77aa9b290a4de44a25092deea33bf2
3
+ metadata.gz: ff002900ea106cb739afc3a47fbda460a3d98da35ffa2ff7c4f3947e331fbdfc
4
+ data.tar.gz: 649d040eaee198e9414046c2bdd7d093cee4e0f7ed7f9d6aabb287d3150814d6
5
5
  SHA512:
6
- metadata.gz: 33158388e87be5c19eb995c24a5e72a841710893dad7aaa2fd0c64ca71547a71974fa5274d8ad67e2c1f5fcd055d6e80ef5c4bbc810d15570258de027e46f509
7
- data.tar.gz: 6cfe689a620e719cd06d565b5abc08b06507ed3ad77a5e3356bbcff93818c2d180a9021f6fcc5f2189244aa9a92010be619ee6917309a1255654672994a7176e
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
- help! "#{@podspec.name} (#{@podspec.version}) build failed."
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
- help! 'pod repo update failed.'
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(repo_spec_path)
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
- help! 'pod repo push failed.'
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
- help! "#{file_path} not exists"
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
- help! "#{url} already exists" unless file_name.index(/\balpha|\bbeta|\brc|\bSNAPSHOT/)
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
- help! "#{file_name} upload failed."
46
+ raise "#{file_name} upload failed."
47
47
  end
48
48
 
49
49
  puts(url)
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTuyaOssPublish
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-tuya-oss-publish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 高森