cocoapods-tdfire-binary 1.3.12 → 1.3.13
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d43a90480323b82ba75949bc337b49ceabc9e088
|
4
|
+
data.tar.gz: 54122daefbabd865de5181cf2464d43839688bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86f53a2ecaa9ceb09e91d5b1ded2212c6a332c8b7b147723126b3d607efcabdd5025bb3d476f694a58035ef405035c29be096843866fdb64f30dcc6d43c9d2a2
|
7
|
+
data.tar.gz: 8f106363dbec82e85ebfddd9446eb8a00c689ac341fd531c0a002dfa073398599764592478506fe0e7a89359d0f0c47e798a42471251e22a42cd07a054eb87b5
|
@@ -105,6 +105,7 @@ module Pod
|
|
105
105
|
# pod cache 文件名由文件内容的 sha1 组成,由于生成时使用的是 podspec,获取时使用的是 podspec.json
|
106
106
|
# 导致生成的文件名不一致
|
107
107
|
# Downloader::Request slug
|
108
|
+
# cache_descriptors_per_pod 表明,specs_dir 中都是以 .json 形式保存 spec
|
108
109
|
slug = d[:slug].dirname + "#{spec.version}-#{spec.checksum[0, 5]}"
|
109
110
|
framework_file = slug + "#{spec.root.name}.framework"
|
110
111
|
unless (framework_file.exist?)
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'cocoapods'
|
2
|
+
require 'cocoapods-tdfire-binary/binary_url_manager'
|
3
|
+
|
4
|
+
module Pod
|
5
|
+
class Command
|
6
|
+
class Binary < Command
|
7
|
+
class Lib < Binary
|
8
|
+
class Import < Lib
|
9
|
+
self.abstract_command = false
|
10
|
+
self.summary = '根据 podspec 生成伞头文件'
|
11
|
+
self.description = <<-DESC
|
12
|
+
根据 podspec 生成伞头文件, 没有将根据组件名创建, 已存在直接替换
|
13
|
+
DESC
|
14
|
+
|
15
|
+
self.arguments = [
|
16
|
+
CLAide::Argument.new('PATH', false),
|
17
|
+
]
|
18
|
+
|
19
|
+
def initialize(argv)
|
20
|
+
@path = argv.shift_argument || "#{pod_name}.h"
|
21
|
+
@path = Pathname.new(@path)
|
22
|
+
@spec_file = first_podspec
|
23
|
+
super
|
24
|
+
end
|
25
|
+
|
26
|
+
def validate!
|
27
|
+
super
|
28
|
+
help! '当前目录下没有podspec文件.' if @spec_file.nil?
|
29
|
+
end
|
30
|
+
|
31
|
+
def run
|
32
|
+
UI.section("Tdfire: import public header files to #{@path} ...") do
|
33
|
+
pod_name = @spec_file.split('.').first
|
34
|
+
header_generator = Pod::Generator::Header.new(Platform.ios)
|
35
|
+
spec = Pod::Specification.from_file(Pathname.new(@spec_file))
|
36
|
+
public_header_files = spec.consumer(:ios).public_header_files
|
37
|
+
public_header_files = spec.consumer(:ios).source_files if public_header_files.empty?
|
38
|
+
public_header_files = Pathname.glob(public_header_files).map(&:basename).select do |pathname|
|
39
|
+
pathname.extname.to_s == '.h' &&
|
40
|
+
pathname.basename('.h').to_s != pod_name
|
41
|
+
end
|
42
|
+
|
43
|
+
UI.message "Tdfire: import public header files #{public_header_files.map(&:to_s)}"
|
44
|
+
|
45
|
+
header_generator.imports = public_header_files
|
46
|
+
header_generator.save_as(@path)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-tdfire-binary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tripleCC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/cocoapods-tdfire-binary/command/init.rb
|
129
129
|
- lib/cocoapods-tdfire-binary/command/lib.rb
|
130
130
|
- lib/cocoapods-tdfire-binary/command/lib/create.rb
|
131
|
+
- lib/cocoapods-tdfire-binary/command/lib/import.rb
|
131
132
|
- lib/cocoapods-tdfire-binary/command/lint.rb
|
132
133
|
- lib/cocoapods-tdfire-binary/command/list.rb
|
133
134
|
- lib/cocoapods-tdfire-binary/command/package.rb
|