podfileDep 2.2.0 → 2.2.1

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: 406874c289ed4d9d0ec411d2fd51ce4c96245e5a77681b3279fea018f59f9352
4
- data.tar.gz: e9d7611c9061082d53ceba3b4fd779242b2be327b12e4f4439301e48d0713ada
3
+ metadata.gz: 6712b4f92a70723f0a12794d85d489f03f099e479cf5ececa3949417beed2715
4
+ data.tar.gz: cd778fd979f86fc2170047e59a2a0440bed06b7a49888afbf997c137311bed93
5
5
  SHA512:
6
- metadata.gz: 49208d1aa83769ab3c512d32707d9c2897879f27a7bcc9558e03c0ad3cf4ebe81786bd6d2fcd0346173050171d5bece63826d1afb90ed9857ec98f949686ea38
7
- data.tar.gz: '03164879f5bdd16ab7be623a83add20bba17d4f069c1d46e8bdd668b85b172896c3734fab33251478bc92a66d952a1ce8894689647339f8fb4f1fc27738f9282'
6
+ metadata.gz: e4d973974de3096d12004996c3d54ac57880a7504c40a2f077d8652fff41bf3cd31953b975db629939a83efab8baeecd394728b0f5c313aa7c44f2c1b12d2e1d
7
+ data.tar.gz: 46eec6ad28864523a50c323cb4f1bc06ea3ca6615676e117d10e4a53d77b23d7d7c96ab4044b420389ebb21d8810772c1a7005be400fb3a9c73c4fe440e0e847
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  ## [Released]
2
+ ### [2.2.1] - 2023-7-5
3
+ - 彩色日志输出
2
4
 
3
5
  ### [2.2.0] - 2023-7-5
4
6
  - 增加编译优化功能
@@ -1,4 +1,4 @@
1
-
1
+ require 'colored2'
2
2
  require_relative '../constants'
3
3
  require_relative '../yaml/yaml_dep'
4
4
 
@@ -11,11 +11,13 @@ module Unused
11
11
  yaml_dep = Pod::YamlDep.new
12
12
 
13
13
  if yaml_dep.quick_build
14
- puts "🔰 已开启编译优化选项,请关注上方日志 '下载依赖...'部分"
15
- puts "#{Constants::PODFILE_LOCAL_YAML}文件内的依赖库,将不会被优化忽略掉"
14
+ msg = "🔰已开启编译优化选项,请关注上方日志 '下载依赖...'部分内容"
15
+ msg += "\n #{Constants::PODFILE_LOCAL_YAML}文件内的依赖库,将不会被优化忽略掉"
16
+ puts msg.green
16
17
  else
17
- warn "\n ⚠️ 检测到你未开启编译优化选项,如你处于开发模式,可打开此开关,移除不被引用的依赖库来加速编译"
18
- warn "位置:#{Constants::PODFILE_LOCAL_YAML} 顶层 QUICK_BUILD字段设置为true, 然后重新pod install"
18
+ msg = "检测到你未开启编译优化选项,如你处于开发模式,可打开此开关,移除不被引用的依赖库来加速编译"
19
+ msg += "\n开关位置:#{Constants::PODFILE_LOCAL_YAML} 最外层 QUICK_BUILD字段设置为true,然后重新pod install"
20
+ puts msg.yellow
19
21
  end
20
22
 
21
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodfileDep
4
- VERSION = "2.2.0"
4
+ VERSION = "2.2.1"
5
5
  end
@@ -460,7 +460,7 @@ module Pod
460
460
  #是否开启了编译优化开关
461
461
  def quick_build
462
462
  yaml_content = read_yaml_content(podfile_local_yaml)
463
- !!(yaml_content["QUICK_BUILD"])
463
+ yaml_content ? !!(yaml_content["QUICK_BUILD"]) : false
464
464
  end
465
465
 
466
466
  end
data/podfileDep.gemspec CHANGED
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
33
33
  # Uncomment to register a new dependency of your gem
34
34
  spec.add_dependency "cocoapods"
35
35
  spec.add_dependency "xcodeproj"
36
+ spec.add_dependency "colored2"
36
37
 
37
38
  # For more information and examples about making a new gem, check out our
38
39
  # guide at: https://bundler.io/guides/creating_gem.html
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podfileDep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 王帅朋
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: colored2
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  description: iOS端 依赖库使用yaml文件管理,并提供其他扩展功能
42
56
  email:
43
57
  - wsp810@163.com