cocoapods-dev-env 0.9.2 → 0.9.3

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: a6ef1f311749dfda8fe62e3edef726bb735d556ad02653554fd54ff66770602c
4
- data.tar.gz: 8c845b54a33e312faef38db386f712b578758f35c2bbaed17211f887243da539
3
+ metadata.gz: 79849534fe222e0870f9b6ee0251c66a7f1a2735c1b53f9ece362b84d75de0bb
4
+ data.tar.gz: cefa85fd2097475b0a0af4714cea561dc2374854add5cc9c996c030666806366
5
5
  SHA512:
6
- metadata.gz: 32462311303b31c4d70aa6642219a3c53d9178c6a9ff7804bc23e2fd029ab34b178bef0d8edb795c5686d403baf335518d10d52b1446fb7e6b783e7eed171fde
7
- data.tar.gz: d5cd32f589aa2c9f9cfb21106d71476ab39eb15ee4320f63372effd519b89382dea03b32b659ce2699ed7e85010e3b9c17e13368eeb82daca30bab1b3b68b3c4
6
+ metadata.gz: d29362439894d87b5baf8331cbe4859ac8f8f98081fe1266fbe4c4aa66f3bbd8db4a9d63e3095f521477524186084f30bff5cedb082c3cd902a1a474177a2607
7
+ data.tar.gz: ab6b0004169679ae583ea2efd4d69ef35ea8523d9d376d5df20add84143f790968c07b6d7e9570d527e9c8e87db40858a620c18064e7eed5e2b1b69bb86da089
@@ -1,7 +1,7 @@
1
1
  module Cocoapods
2
2
  module Dev
3
3
  module Env
4
- VERSION = "0.9.2"
4
+ VERSION = "0.9.3"
5
5
  end
6
6
  end
7
7
  end
@@ -21,7 +21,7 @@ module Pod
21
21
  def self.keyword
22
22
  :dev_env # 'dev'/'beta'/'release'
23
23
  end
24
- puts "🎉 plugin cocoapods-dev-env loaded 🎉".green
24
+ UI.message "🎉 plugin cocoapods-dev-env loaded 🎉".green
25
25
  end
26
26
  class Podfile
27
27
  class TargetDefinition
@@ -121,6 +121,19 @@ class Podfile
121
121
  end
122
122
  end
123
123
 
124
+ def getReposStrForLint()
125
+ if podfile.sources.size == 0
126
+ return ""
127
+ end
128
+ str = " --sources="
129
+ podfile.sources.each do |source|
130
+ str += source
131
+ str += ","
132
+ end
133
+ UI.puts str
134
+ return str
135
+ end
136
+
124
137
  def getUserRepoAddress()
125
138
  if podfile.sources.size == 0
126
139
  raise "💔 发布release必须配置仓库的地址, e.g.: source 'https://github.com/CocoaPods/Specs.git'"
@@ -141,9 +154,19 @@ class Podfile
141
154
 
142
155
  ## --- option for setting using prebuild framework ---
143
156
  def parse_pod_dev_env(name, requirements)
157
+
158
+
144
159
  options = requirements.last
145
160
  pod_name = Specification.root_name(name)
146
161
  last_options = $processedPodsOptions[pod_name]
162
+
163
+ if name == "YDOfflineDictQuerier"
164
+ UI.puts name
165
+ UI.puts requirements
166
+ UI.puts "last"
167
+ UI.puts last_options
168
+ end
169
+
147
170
  if (last_options != nil)
148
171
  UI.message "#{name.green} use last_options: #{last_options.to_s.green}"
149
172
  if options != nil && options.is_a?(Hash)
@@ -176,7 +199,7 @@ class Podfile
176
199
  if tag == nil || tag.length == 0
177
200
  raise "💔 #{pod_name.yellow} 未定义:tag => 'xxx', tag 将会作为 dev模式下载最新代码检查的依据,beta模式引用的tag 以及 release模式引用的版本号"
178
201
  end
179
- if dev_env == 'dev'
202
+ if dev_env == 'dev'
180
203
  # 开发模式,使用path方式引用本地的submodule git库
181
204
  if !File.directory?(path)
182
205
  UI.puts "add submodule for #{pod_name.green}".yellow
@@ -233,7 +256,11 @@ class Podfile
233
256
  UI.puts "release release-version for #{pod_name.green}".yellow
234
257
  currentDir = Dir.pwd
235
258
  Dir.chdir(path)
236
- ret = system("pod lib lint --allow-warnings")
259
+ verboseParamStr = ""
260
+ if Config.instance.verbose
261
+ verboseParamStr = " --verbose"
262
+ end
263
+ ret = system("pod lib lint --skip-import-validation --allow-warnings#{getReposStrForLint()}#{verboseParamStr}")
237
264
  if ret != true
238
265
  raise "💔 #{pod_name.yellow} lint 失败"
239
266
  end
@@ -249,7 +276,8 @@ class Podfile
249
276
  end
250
277
  ## TODO:: 发布到的目标库名称需要用变量设置
251
278
  repoAddrs = getUserRepoAddress()
252
- cmd = "pod repo push #{repoAddrs} #{pod_name}.podspec --allow-warnings"
279
+ cmd = "pod repo push #{repoAddrs} #{pod_name}.podspec --skip-import-validation --allow-warnings#{getReposStrForLint()}"
280
+ UI.puts cmd.green
253
281
  ret = system(cmd)
254
282
  if ret != true
255
283
  raise "💔 #{pod_name.yellow} 发布失败"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-dev-env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - 吴锡苗
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-22 00:00:00.000000000 Z
11
+ date: 2020-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler