cocoapods-bb-bin 0.2.7.8 → 0.2.7.10

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: 84bf4571176537307e5bc8491dda9a6eb94279e6318e85c5742432293b407618
4
- data.tar.gz: 3b0906031d36c6b0424112211ce3b1c85bbcb0bba012163a1db0de6a3172a62f
3
+ metadata.gz: 65a5c44ba5cd1efb48d0d727c99a338d5ec13079196f8994c3657ee4788f8c7d
4
+ data.tar.gz: 32ecb7bd7747ef6f75131b0ba230fdcb67177caa9861f1fb324c28bfa7805cac
5
5
  SHA512:
6
- metadata.gz: 4b1a1aaf32b2b1def695e463b32f8196f7c24016169aeb82f2e3a9d307e9ac919cde253a65322e999bfb1830562a9f4796bfab1d9d9fe41c3619ebcde5929f68
7
- data.tar.gz: a96e9d85cdf91be6c4c9fdd123b99858391a050f55e91c2987f1c5866f2760c5cd82ed852b4f648021bf283bcd47727317debed47a63f5bc34359de99e781e9e
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.8'
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
@@ -1,6 +1,6 @@
1
1
  require 'cocoapods'
2
- require 'cocoapods-bb-bin/gem_version.rb'
3
- puts "=====native===:#{Pod::VERSION}".green
2
+ # require 'cocoapods-bb-bin/gem_version.rb'
3
+ # puts "=====native===:#{Pod::VERSION}".green
4
4
  # if Pod.match_version?('~> 1.4')
5
5
  require 'cocoapods-bb-bin/native/podfile'
6
6
  require 'cocoapods-bb-bin/native/installation_options'
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.8
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