cocoapods-bb-bin 0.2.7.13 → 0.2.8

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: 3a5579a95a680e9df16bde7f2602a630984a3140ae78db756cc018518bcb93f6
4
- data.tar.gz: 9e1711ec6d8dbbcc0e105ca7ac8babb32fc46993cb4659617abfdd585fe1f30b
3
+ metadata.gz: 68c9ab3b92200480c3a8673b9c7e8cd30df45257466d9b090ed6f42c299fa97b
4
+ data.tar.gz: 580c01fe9805b8bbbc71cd5c4d870a05afb415fbcec8c8e1651ace031da5aaa7
5
5
  SHA512:
6
- metadata.gz: 8cf54cd4704524ac4221288883e1af90e57b17265d00bd39e16027627b9b99d6021512765bfacf4f398f0f9f9fe1f6f5976c2fa3c15302a585ef1552db60a148
7
- data.tar.gz: 2626c509a16fdc95d04585b4babce6b325fc67854aa01e7df84c4998a6df6c10a495b8f4406e0046fce9d90230a8f2e26512507f87ee35566115fa9186981c42
6
+ metadata.gz: e46e6f1d6274b34751a8248f418d5ea3d33f3dc79ff274fc4107bb7e203a6266647308c13fabb0b5b9515f362c12c14aebfb0949fa26aa0317a9e58065b87990
7
+ data.tar.gz: ce09948f975e2537dcab729d3039c2d80ba509148f885ab8f490dfa8ac89c27aa67eb5985415b7a3385b6c4dcd5666028caa0cc58db285655e1d1084a3598c47
@@ -21,6 +21,7 @@ module Pod
21
21
  ['--path', '(必传)需要上传文件路径'],
22
22
  ['--vendored_framework_name', '(可选)组件库依赖framework名称,默认组件名称'],
23
23
  ['--dylib', '(可选)是否动态库,默认静态库'],
24
+ ['--developer_mode', '(可选)是否开发者模式,默认发布模式'],
24
25
  ].concat(Pod::Command::Gen.options).concat(super).uniq
25
26
  end
26
27
 
@@ -36,6 +37,7 @@ module Pod
36
37
  @localPath = argv.option('path') || nil
37
38
  @vendored_framework_name = argv.option('vendored_framework_name') || nil
38
39
  @is_dylib = argv.flag?('dylib', false )
40
+ @is_dev_model = argv.flag?('developer_mode', false )
39
41
  end
40
42
  super
41
43
  end
@@ -53,6 +55,8 @@ module Pod
53
55
  # 清除之前的缓存
54
56
  CBin::Config::Builder.instance.clean
55
57
  @spec = Specification.from_file(@podspec)
58
+ # dev环境修改version规则 by hm 24/8/20
59
+ @spec.version = binary_version(@is_dev_model)
56
60
  # 上传文件
57
61
  localPath = update_uploadpath unless !@localPath
58
62
  if File.file?(localPath)
@@ -123,6 +127,19 @@ module Pod
123
127
  end
124
128
  return nil
125
129
  end
130
+ private
131
+ # 获取上传组件版本
132
+ def binary_version(isDevMode)
133
+ #标签规则,区分dev/release环境,dev环境经常性推送数据不希望一直修改tag version,故dev环境标签版本=tag+时间戳区分,正式环境不变
134
+ origin_version = @spec.version
135
+ new_version = origin_version
136
+ if isDevMode == true
137
+ time = Time.new
138
+ tm = time.strftime("%Y%m%d%H%M") # tm = time.strftime("%Y%m%d%H%M%S")
139
+ new_version = "#{new_version}.dev#{tm.to_s}"
140
+ end
141
+ return new_version
142
+ end
126
143
 
127
144
  end
128
145
  end
@@ -1,7 +1,7 @@
1
1
  require 'cocoapods'
2
2
 
3
3
  module CBin
4
- VERSION = '0.2.7.13'
4
+ VERSION = '0.2.8'
5
5
  end
6
6
 
7
7
  module Pod
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.13
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-07 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  - !ruby/object:Gem::Version
221
221
  version: '0'
222
222
  requirements: []
223
- rubygems_version: 3.5.6
223
+ rubygems_version: 3.5.14
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: cocoapods-bb-bin is a plugin which helps develpers switching pods between