cocoapods-tdfire-binary 1.4.25 → 1.4.26
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6ae224e495efaf8befa05df7b1d1bb35732aabd
|
4
|
+
data.tar.gz: 9ee2bc33d03bda2fec79851498290c49c8f6fdc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 912154ecc44ed0f98f9c88de76015ef51cb450cdfc43d5488f7e92d9c012e403083d03292b59173ca0a92a82ab82ec6214cd54961f0c905af145ac6f94d6cf39
|
7
|
+
data.tar.gz: 731b09037bcc4820f98e4e3f590eb51cdd8354b6b0bcf9f554ccff47446a3a47fbc606162f7450169c016cc93fb372989d0915239a0cc87d7601565aeb9ee0aa
|
data/Gemfile.lock
CHANGED
@@ -1,72 +1,16 @@
|
|
1
1
|
require 'cocoapods-tdfire-binary/binary_state_store'
|
2
|
-
|
2
|
+
require 'cocoapods-tdfire-binary/command/lint/lib'
|
3
|
+
require 'cocoapods-tdfire-binary/command/lint/spec'
|
3
4
|
module Pod
|
4
5
|
class Command
|
5
6
|
class Binary < Command
|
6
7
|
class Lint < Binary
|
7
|
-
self.abstract_command =
|
8
|
-
self.
|
8
|
+
self.abstract_command = true
|
9
|
+
self.default_subcommand = 'lib'
|
10
|
+
self.summary = '二进制lint操作'
|
9
11
|
self.description = <<-DESC
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
def self.options
|
14
|
-
[
|
15
|
-
['--sources', '私有源地址'],
|
16
|
-
# ['--clean', '执行成功后,删除 zip 文件外的所有生成文件'],
|
17
|
-
['--binary-first', '二进制优先'],
|
18
|
-
['--subspec', 'lint 特定 subspec']
|
19
|
-
].concat(super)
|
20
|
-
end
|
21
|
-
|
22
|
-
def initialize(argv)
|
23
|
-
@clean = argv.flag?('clean')
|
24
|
-
@sources = argv.option('sources')
|
25
|
-
@subspec = argv.option('subspec')
|
26
|
-
@binary_first = argv.flag?('binary-first')
|
27
|
-
|
28
|
-
@spec_file = first_podspec
|
29
|
-
@spec_name = @spec_file.split('/').last.split('.').first unless @spec_file.nil?
|
30
|
-
# unzip_framework
|
31
|
-
super
|
32
|
-
end
|
33
|
-
|
34
|
-
def validate!
|
35
|
-
super
|
36
|
-
help! '当前目录下没有podspec文件.' if @spec_file.nil?
|
37
|
-
# framework = "#{@spec_name}.framework"
|
38
|
-
# help! "当前目录下没有#{framework}文件" unless File.exist?(framework)
|
39
|
-
end
|
40
|
-
|
41
|
-
# def unzip_framework
|
42
|
-
# framework = "#{@spec_name}.framework"
|
43
|
-
# zip_name = "#{framework}.zip"
|
44
|
-
# if File.exist?(zip_name) && !File.exist?("#{@spec_name}.framework")
|
45
|
-
# system "unzip #{zip_name}"
|
46
|
-
# end
|
47
|
-
# end
|
48
|
-
|
49
|
-
def run
|
50
|
-
if @binary_first
|
51
|
-
Pod::Tdfire::BinaryStateStore.unpublished_pods = Pod::Tdfire::BinaryStateStore.unpublished_pods + Array(@spec_name)
|
52
|
-
Pod::Tdfire::BinaryStateStore.set_use_binary
|
53
|
-
end
|
54
|
-
|
55
|
-
argvs = [
|
56
|
-
"--sources=#{@sources || Pod::Tdfire::BinaryUrlManager.private_cocoapods_url}",
|
57
|
-
'--allow-warnings',
|
58
|
-
'--use-libraries',
|
59
|
-
'--verbose'
|
60
|
-
]
|
61
|
-
|
62
|
-
argvs << "--subspec=#{@subspec}" unless @subspec.nil?
|
63
|
-
|
64
|
-
lint= Pod::Command::Lib::Lint.new(CLAide::ARGV.new(argvs))
|
65
|
-
lint.validate!
|
66
|
-
lint.run
|
67
|
-
|
68
|
-
# system "rm -fr #{@spec_name}.framework " if @clean
|
69
|
-
end
|
12
|
+
二进制lint操作
|
13
|
+
DESC
|
70
14
|
end
|
71
15
|
end
|
72
16
|
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require 'cocoapods-tdfire-binary/binary_state_store'
|
2
|
+
|
3
|
+
module Pod
|
4
|
+
class Command
|
5
|
+
class Binary < Command
|
6
|
+
class Lint < Binary
|
7
|
+
class Lib < Lint
|
8
|
+
self.abstract_command = false
|
9
|
+
self.summary = '对本地组件进行 lib lint'
|
10
|
+
self.description = <<-DESC
|
11
|
+
对本地组件进行 lib lint
|
12
|
+
DESC
|
13
|
+
|
14
|
+
def self.options
|
15
|
+
[
|
16
|
+
['--sources', '私有源地址'],
|
17
|
+
# ['--clean', '执行成功后,删除 zip 文件外的所有生成文件'],
|
18
|
+
['--binary-first', '二进制优先'],
|
19
|
+
['--subspec', 'lint 特定 subspec']
|
20
|
+
].concat(super)
|
21
|
+
end
|
22
|
+
|
23
|
+
def initialize(argv)
|
24
|
+
@clean = argv.flag?('clean')
|
25
|
+
@sources = argv.option('sources')
|
26
|
+
@subspec = argv.option('subspec')
|
27
|
+
@binary_first = argv.flag?('binary-first')
|
28
|
+
|
29
|
+
@spec_file = first_podspec
|
30
|
+
@spec_name = @spec_file.split('/').last.split('.').first unless @spec_file.nil?
|
31
|
+
# unzip_framework
|
32
|
+
super
|
33
|
+
end
|
34
|
+
|
35
|
+
def validate!
|
36
|
+
super
|
37
|
+
help! '当前目录下没有podspec文件.' if @spec_file.nil?
|
38
|
+
# framework = "#{@spec_name}.framework"
|
39
|
+
# help! "当前目录下没有#{framework}文件" unless File.exist?(framework)
|
40
|
+
end
|
41
|
+
|
42
|
+
# def unzip_framework
|
43
|
+
# framework = "#{@spec_name}.framework"
|
44
|
+
# zip_name = "#{framework}.zip"
|
45
|
+
# if File.exist?(zip_name) && !File.exist?("#{@spec_name}.framework")
|
46
|
+
# system "unzip #{zip_name}"
|
47
|
+
# end
|
48
|
+
# end
|
49
|
+
|
50
|
+
def run
|
51
|
+
if @binary_first
|
52
|
+
Pod::Tdfire::BinaryStateStore.unpublished_pods = Pod::Tdfire::BinaryStateStore.unpublished_pods + Array(@spec_name)
|
53
|
+
Pod::Tdfire::BinaryStateStore.set_use_binary
|
54
|
+
end
|
55
|
+
|
56
|
+
argvs = [
|
57
|
+
"--sources=#{@sources || Pod::Tdfire::BinaryUrlManager.private_cocoapods_url}",
|
58
|
+
'--allow-warnings',
|
59
|
+
'--use-libraries',
|
60
|
+
'--verbose'
|
61
|
+
]
|
62
|
+
|
63
|
+
argvs << "--subspec=#{@subspec}" unless @subspec.nil?
|
64
|
+
|
65
|
+
lint= Pod::Command::Lib::Lint.new(CLAide::ARGV.new(argvs))
|
66
|
+
lint.validate!
|
67
|
+
lint.run
|
68
|
+
|
69
|
+
# system "rm -fr #{@spec_name}.framework " if @clean
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
require 'cocoapods-tdfire-binary/binary_state_store'
|
2
|
+
|
3
|
+
module Pod
|
4
|
+
class Command
|
5
|
+
class Binary < Command
|
6
|
+
class Lint < Binary
|
7
|
+
class Spec < Lint
|
8
|
+
self.abstract_command = false
|
9
|
+
self.summary = '对本地组件进行 spec lint'
|
10
|
+
self.description = <<-DESC
|
11
|
+
对本地组件进行 spec lint
|
12
|
+
DESC
|
13
|
+
|
14
|
+
def self.options
|
15
|
+
[
|
16
|
+
['--sources', '私有源地址'],
|
17
|
+
# ['--clean', '执行成功后,删除 zip 文件外的所有生成文件'],
|
18
|
+
['--binary-first', '二进制优先'],
|
19
|
+
['--subspec', 'lint 特定 subspec']
|
20
|
+
].concat(super)
|
21
|
+
end
|
22
|
+
|
23
|
+
def initialize(argv)
|
24
|
+
@clean = argv.flag?('clean')
|
25
|
+
@sources = argv.option('sources')
|
26
|
+
@subspec = argv.option('subspec')
|
27
|
+
@binary_first = argv.flag?('binary-first')
|
28
|
+
|
29
|
+
@spec_file = first_podspec
|
30
|
+
@spec_name = @spec_file.split('/').last.split('.').first unless @spec_file.nil?
|
31
|
+
# unzip_framework
|
32
|
+
super
|
33
|
+
end
|
34
|
+
|
35
|
+
def validate!
|
36
|
+
super
|
37
|
+
help! '当前目录下没有podspec文件.' if @spec_file.nil?
|
38
|
+
# framework = "#{@spec_name}.framework"
|
39
|
+
# help! "当前目录下没有#{framework}文件" unless File.exist?(framework)
|
40
|
+
end
|
41
|
+
|
42
|
+
# def unzip_framework
|
43
|
+
# framework = "#{@spec_name}.framework"
|
44
|
+
# zip_name = "#{framework}.zip"
|
45
|
+
# if File.exist?(zip_name) && !File.exist?("#{@spec_name}.framework")
|
46
|
+
# system "unzip #{zip_name}"
|
47
|
+
# end
|
48
|
+
# end
|
49
|
+
|
50
|
+
def run
|
51
|
+
if @binary_first
|
52
|
+
Pod::Tdfire::BinaryStateStore.unpublished_pods = Pod::Tdfire::BinaryStateStore.unpublished_pods + Array(@spec_name)
|
53
|
+
Pod::Tdfire::BinaryStateStore.set_use_binary
|
54
|
+
end
|
55
|
+
|
56
|
+
argvs = [
|
57
|
+
"--sources=#{@sources || Pod::Tdfire::BinaryUrlManager.private_cocoapods_url}",
|
58
|
+
'--allow-warnings',
|
59
|
+
'--use-libraries',
|
60
|
+
'--verbose'
|
61
|
+
]
|
62
|
+
|
63
|
+
argvs << "--subspec=#{@subspec}" unless @subspec.nil?
|
64
|
+
|
65
|
+
lint= Pod::Command::Spec::Lint.new(CLAide::ARGV.new(argvs))
|
66
|
+
lint.validate!
|
67
|
+
lint.run
|
68
|
+
|
69
|
+
# system "rm -fr #{@spec_name}.framework " if @clean
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
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.4.
|
4
|
+
version: 1.4.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tripleCC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -131,6 +131,8 @@ files:
|
|
131
131
|
- lib/cocoapods-tdfire-binary/command/lib/import.rb
|
132
132
|
- lib/cocoapods-tdfire-binary/command/lib/upgrade.rb
|
133
133
|
- lib/cocoapods-tdfire-binary/command/lint.rb
|
134
|
+
- lib/cocoapods-tdfire-binary/command/lint/lib.rb
|
135
|
+
- lib/cocoapods-tdfire-binary/command/lint/spec.rb
|
134
136
|
- lib/cocoapods-tdfire-binary/command/list.rb
|
135
137
|
- lib/cocoapods-tdfire-binary/command/package.rb
|
136
138
|
- lib/cocoapods-tdfire-binary/command/publish.rb
|