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: dee9cf8a99d925f5095b3bfba3a685cd98922f4b
4
- data.tar.gz: 507e6cf70af163c12e869ae39af568f17576fdec
3
+ metadata.gz: d43a90480323b82ba75949bc337b49ceabc9e088
4
+ data.tar.gz: 54122daefbabd865de5181cf2464d43839688bd8
5
5
  SHA512:
6
- metadata.gz: 8f3d3a2361bddd8fa8ac160b6000f5f0c56e010dd0f448890f626f5a64d74be5d93eafff4819d314a4ddad5092d6e5f3ce19163e37f3e0c99bab77dec7cb5443
7
- data.tar.gz: 5a42687bcdf898d4492ce258d68f8b0dca30478f33bb3edafb04a8d3058fe20b9f71b70804acfcd5534daaf39cd8f09600a6f81d36b4c24eacc3c78b72225d5f
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?)
@@ -1,4 +1,5 @@
1
1
  require 'cocoapods-tdfire-binary/command/lib/create'
2
+ require 'cocoapods-tdfire-binary/command/lib/import'
2
3
 
3
4
  module Pod
4
5
  class Command
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTdfireBinary
2
- VERSION = "1.3.12"
2
+ VERSION = "1.3.13"
3
3
  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.12
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-19 00:00:00.000000000 Z
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