cocoapods-monitor 0.0.2 → 0.0.3

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: b12d30cde854a57cfb6d15d9e6052052a04ced0d0de7b2fd79711e68ab426d4c
4
- data.tar.gz: 189b07ab75da82db86057bf4adf6e5dd8c523dff30b85a7d49b5d3c3848e0a9b
3
+ metadata.gz: ce3300f2a2268002c3653d9a3ede1f4085f328481e78245d70fbbdda13d2dc8d
4
+ data.tar.gz: e1a1f1ee0f2fcb82a6575f216679005fadf23657d8c1cd7711c5a133aa580be4
5
5
  SHA512:
6
- metadata.gz: 94f0933cff1eb69e618b2d93e44b78bfc071051957d2d96377938f2be9c800537911e38abd2b480369049e019c8865893a7ba8797f207353bdc04022690aea40
7
- data.tar.gz: d58a0a5d96ffac337a4d97a757f49746989a9aa8fc1ada52282dba672e9a6d9fe04b7bfb008d072367af821dc190393acf1873bfe0ef28062afe155d1c562087
6
+ metadata.gz: 469699a0ff212789846baf60986046ce9f2a00f4567ff32b5e2d3d9d2cfa4728426a0d99974345184776f3bc53db53c74dad51d28c12663beaf8dde06fb662a6
7
+ data.tar.gz: abf84f4e67643f413d62a46d78c930c8c4957db8de2962f83fcf28ed0fce1c4928bb8df3dc8124a3fc59d2d0811343aa98f418d98b08f8312d7b0f83ce00847c
@@ -9,6 +9,9 @@ require 'cocoapods-monitor/gem_version'
9
9
 
10
10
  BEGIN {
11
11
  $Recorde = Hash.new
12
+
13
+ # 用于记录那些用二进制进行集成的pod的源码映射,比如视频库
14
+ $BD_BinaryPods_Record_Maps = Hash.new()
12
15
  }
13
16
 
14
17
  Pod::HooksManager.register('cocoapods-monitor', :post_install) do |installer_context|
@@ -29,6 +32,28 @@ end
29
32
 
30
33
  module Pod
31
34
  class Specification
35
+
36
+
37
+ # Slardar 相关逻辑
38
+ module DSL
39
+
40
+ module RootAttributesAccessors
41
+
42
+ alias_method :bd_license,:license
43
+
44
+ def license
45
+ slardar_fileMap = attributes_hash['slardar_fileMap']
46
+ if slardar_fileMap && !$BD_BinaryPods_Record_Maps[base_name]
47
+ $BD_BinaryPods_Record_Maps[base_name] = slardar_fileMap
48
+ end
49
+
50
+ bd_license
51
+ end
52
+
53
+ end
54
+ end
55
+ # Slardar 相关逻辑结束
56
+
32
57
  alias_method :bd_root , :root
33
58
  def root
34
59
  record_source
@@ -194,7 +219,7 @@ def cocoapods_bytedance_SlardarRecord(installer_context)
194
219
  pods_git_source[pod_name] = hash
195
220
  end
196
221
 
197
-
222
+ pods_git_source['slardar_fileMap'] = $BD_BinaryPods_Record_Maps
198
223
  json = pods_git_source.to_json
199
224
  aFile = File.new("pod.json", "w+")
200
225
  if aFile
@@ -1,3 +1,3 @@
1
1
  module CocoapodsMonitor
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - wusizhen.arch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-30 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler