cocoapods-bb-bin 0.2.7.9 → 0.2.7.10

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: 64f16d05e05f3b13fa2546b1c5cc2ecd065bb6f1b9bfc06b41dfb033d0668b80
4
- data.tar.gz: 5057b90eef36df11e2163e0669b6f5d3456e602bf890e07fdc10c719e8b404a3
3
+ metadata.gz: 65a5c44ba5cd1efb48d0d727c99a338d5ec13079196f8994c3657ee4788f8c7d
4
+ data.tar.gz: 32ecb7bd7747ef6f75131b0ba230fdcb67177caa9861f1fb324c28bfa7805cac
5
5
  SHA512:
6
- metadata.gz: 12c4dd03418b86dad8a8e80f19322b4960c7e3c15cafea1f510d40390185d7d413801990a38e4ee68b137d701242952fd344bb0985d696020bc1feeb42aec240
7
- data.tar.gz: '056097447b647990379c0c1d9381a326446f5d952468691553a7365323017b3fb1c6ad33697e7b3f08e108e4a1e6da8b56f6f2f3f6d3b18f07d526361379520b'
6
+ metadata.gz: f3f52306d0944f803e20400c3b9419da2868c77b88cdd43d42bac58b5444102bba01b07182d9c60abb72ffd021da0c08c6038e347795f435c25ce5a3545fc587
7
+ data.tar.gz: 956654a7502c9da604d10c571a2b24d4ee6190ee824c7737f60164675b2ec37fc33fac5d89594ae9326bc9e91c1cb79dc5baae338dda9c940673608fa02d21b1
@@ -1,7 +1,7 @@
1
1
  require 'cocoapods'
2
2
 
3
3
  module CBin
4
- VERSION = '0.2.7.9'
4
+ VERSION = '0.2.7.10'
5
5
  end
6
6
 
7
7
  module Pod
@@ -88,11 +88,24 @@ module CBin
88
88
  def binary_upload(zip_file)
89
89
  res = File.file?(zip_file)
90
90
  if res
91
+ url=CBin.config.binary_upload_url
91
92
  print <<EOF
92
93
  上传二进制文件: #{@spec.name} (#{@spec.version})
93
- curl #{CBin.config.binary_upload_url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"
94
+ curl #{url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"
94
95
  EOF
95
- `curl #{CBin.config.binary_upload_url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"` if res
96
+ result = `curl #{url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"`
97
+ if result.include?("#{@spec.name} (#{@spec.version})") # 保存成功 BBUnityFramework (1.0.4.0)
98
+ res=true
99
+ else
100
+ puts "curl上传出错,❌错误信息如下:".red
101
+ puts "#{result}"
102
+ puts "FAQ:帮助快速解决问题\
103
+ \n错误吗=308 Permanent Redirect,记得请求url带上https \
104
+ \n错误吗=413 Request Entity Too Large,运维限制域名访问大小 \
105
+ \n其它错误@hm排查原因
106
+ ".red
107
+ res=false
108
+ end
96
109
  end
97
110
  res
98
111
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7.9
4
+ version: 0.2.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-25 00:00:00.000000000 Z
11
+ date: 2023-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel