cocoapods-lint-onlyx64 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bundle/config +2 -0
- data/Gemfile.lock +2 -2
- data/LICENSE.txt +1 -1
- data/lib/cocoapods-lint-onlyx64/command/onlyx64.rb +23 -116
- data/lib/cocoapods-lint-onlyx64/gem_version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 953fc696688460549cda2a2968d9535236d282becd93b31c9165cc80b8773cbb
|
4
|
+
data.tar.gz: 39db825a8cae8e601397097592f05a51d2c7ae619b2fb705b717615e19e65c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56c189692a273692ef5432fd0f0e2fa11c9f04ed851a382fcf9a0a7a3167e5148b5be53cc09d5cf972c1bdf7d2237be04773d3c66069bd182f6027998c9ea2fd
|
7
|
+
data.tar.gz: ec01de39805bd546f5ca9dd6290b6b576b38a35c4dc67929afd58aed92bc0e15f7fc48ef61429d952c48c280f7aa632810ab03f96ba0e637c82fcb71ae1a9f45
|
data/.bundle/config
ADDED
data/Gemfile.lock
CHANGED
data/LICENSE.txt
CHANGED
@@ -48,54 +48,18 @@ module Pod
|
|
48
48
|
class Command
|
49
49
|
class Lib < Command
|
50
50
|
class Lint < Lib
|
51
|
+
class << self
|
52
|
+
alias_method :original_options, :options
|
53
|
+
end
|
51
54
|
def self.options
|
52
|
-
[
|
53
|
-
['--quick', 'Lint skips checks that would require to download and build the spec'],
|
54
|
-
['--allow-warnings', 'Lint validates even if warnings are present'],
|
55
|
-
['--subspec=NAME', 'Lint validates only the given subspec'],
|
56
|
-
['--no-subspecs', 'Lint skips validation of subspecs'],
|
57
|
-
['--no-clean', 'Lint leaves the build directory intact for inspection'],
|
58
|
-
['--fail-fast', 'Lint stops on the first failing platform or subspec'],
|
59
|
-
['--use-libraries', 'Lint uses static libraries to install the spec'],
|
60
|
-
['--use-modular-headers', 'Lint uses modular headers during installation'],
|
61
|
-
["--sources=#{Pod::TrunkSource::TRUNK_REPO_URL}", 'The sources from which to pull dependent pods ' \
|
62
|
-
"(defaults to #{Pod::TrunkSource::TRUNK_REPO_URL}). Multiple sources must be comma-delimited"],
|
63
|
-
['--platforms=ios,macos', 'Lint against specific platforms (defaults to all platforms supported by the ' \
|
64
|
-
'podspec). Multiple platforms must be comma-delimited'],
|
65
|
-
['--private', 'Lint skips checks that apply only to public specs'],
|
66
|
-
['--swift-version=VERSION', 'The `SWIFT_VERSION` that should be used to lint the spec. ' \
|
67
|
-
'This takes precedence over the Swift versions specified by the spec or a `.swift-version` file'],
|
68
|
-
['--include-podspecs=**/*.podspec', 'Additional ancillary podspecs which are used for linting via :path'],
|
69
|
-
['--external-podspecs=**/*.podspec', 'Additional ancillary podspecs which are used for linting '\
|
70
|
-
'via :podspec. If there are --include-podspecs, then these are removed from them'],
|
71
|
-
['--skip-import-validation', 'Lint skips validating that the pod can be imported'],
|
72
|
-
['--skip-tests', 'Lint skips building and running tests during validation'],
|
73
|
-
['--analyze', 'Validate with the Xcode Static Analysis tool'],
|
74
|
-
['--onlyx64', 'Lint uses only x86-64 iphonesimulator'],
|
75
|
-
].concat(super)
|
55
|
+
original_options.concat([['--onlyx64', 'Lint uses only x86-64 iphonesimulator']])
|
76
56
|
end
|
77
57
|
|
58
|
+
alias_method :original_initialize, :initialize
|
59
|
+
|
78
60
|
def initialize(argv)
|
79
|
-
@quick = argv.flag?('quick')
|
80
|
-
@allow_warnings = argv.flag?('allow-warnings')
|
81
|
-
@clean = argv.flag?('clean', true)
|
82
|
-
@fail_fast = argv.flag?('fail-fast', false)
|
83
|
-
@subspecs = argv.flag?('subspecs', true)
|
84
|
-
@only_subspec = argv.option('subspec')
|
85
|
-
@use_frameworks = !argv.flag?('use-libraries')
|
86
|
-
@use_modular_headers = argv.flag?('use-modular-headers')
|
87
|
-
@source_urls = argv.option('sources', Pod::TrunkSource::TRUNK_REPO_URL).split(',')
|
88
|
-
@platforms = argv.option('platforms', '').split(',')
|
89
|
-
@private = argv.flag?('private', false)
|
90
|
-
@swift_version = argv.option('swift-version', nil)
|
91
|
-
@include_podspecs = argv.option('include-podspecs', nil)
|
92
|
-
@external_podspecs = argv.option('external-podspecs', nil)
|
93
|
-
@skip_import_validation = argv.flag?('skip-import-validation', false)
|
94
|
-
@skip_tests = argv.flag?('skip-tests', false)
|
95
|
-
@analyze = argv.flag?('analyze', false)
|
96
|
-
@podspecs_paths = argv.arguments!
|
97
61
|
@only_x64 = argv.flag?('onlyx64', false)
|
98
|
-
|
62
|
+
original_initialize(argv)
|
99
63
|
end
|
100
64
|
|
101
65
|
def run
|
@@ -147,49 +111,19 @@ module Pod
|
|
147
111
|
class Command
|
148
112
|
class Spec < Command
|
149
113
|
class Lint < Spec
|
114
|
+
|
115
|
+
class << self
|
116
|
+
alias_method :original_options, :options
|
117
|
+
end
|
150
118
|
def self.options
|
151
|
-
[
|
152
|
-
['--quick', 'Lint skips checks that would require to download and build the spec'],
|
153
|
-
['--allow-warnings', 'Lint validates even if warnings are present'],
|
154
|
-
['--subspec=NAME', 'Lint validates only the given subspec'],
|
155
|
-
['--no-subspecs', 'Lint skips validation of subspecs'],
|
156
|
-
['--no-clean', 'Lint leaves the build directory intact for inspection'],
|
157
|
-
['--fail-fast', 'Lint stops on the first failing platform or subspec'],
|
158
|
-
['--use-libraries', 'Lint uses static libraries to install the spec'],
|
159
|
-
['--use-modular-headers', 'Lint uses modular headers during installation'],
|
160
|
-
["--sources=#{Pod::TrunkSource::TRUNK_REPO_URL}", 'The sources from which to pull dependent pods ' \
|
161
|
-
"(defaults to #{Pod::TrunkSource::TRUNK_REPO_URL}). Multiple sources must be comma-delimited"],
|
162
|
-
['--platforms=ios,macos', 'Lint against specific platforms (defaults to all platforms supported by the ' \
|
163
|
-
'podspec). Multiple platforms must be comma-delimited'],
|
164
|
-
['--private', 'Lint skips checks that apply only to public specs'],
|
165
|
-
['--swift-version=VERSION', 'The `SWIFT_VERSION` that should be used to lint the spec. ' \
|
166
|
-
'This takes precedence over the Swift versions specified by the spec or a `.swift-version` file'],
|
167
|
-
['--skip-import-validation', 'Lint skips validating that the pod can be imported'],
|
168
|
-
['--skip-tests', 'Lint skips building and running tests during validation'],
|
169
|
-
['--analyze', 'Validate with the Xcode Static Analysis tool'],
|
170
|
-
['--onlyx64', 'Lint uses only x86-64 iphonesimulator'],
|
171
|
-
].concat(super)
|
119
|
+
original_options.concat([['--onlyx64', 'Lint uses only x86-64 iphonesimulator']])
|
172
120
|
end
|
173
121
|
|
122
|
+
alias_method :original_initialize, :initialize
|
123
|
+
|
174
124
|
def initialize(argv)
|
175
|
-
@quick = argv.flag?('quick')
|
176
|
-
@allow_warnings = argv.flag?('allow-warnings')
|
177
|
-
@clean = argv.flag?('clean', true)
|
178
|
-
@fail_fast = argv.flag?('fail-fast', false)
|
179
|
-
@subspecs = argv.flag?('subspecs', true)
|
180
|
-
@only_subspec = argv.option('subspec')
|
181
|
-
@use_frameworks = !argv.flag?('use-libraries')
|
182
|
-
@use_modular_headers = argv.flag?('use-modular-headers')
|
183
|
-
@source_urls = argv.option('sources', Pod::TrunkSource::TRUNK_REPO_URL).split(',')
|
184
|
-
@platforms = argv.option('platforms', '').split(',')
|
185
|
-
@private = argv.flag?('private', false)
|
186
|
-
@swift_version = argv.option('swift-version', nil)
|
187
|
-
@skip_import_validation = argv.flag?('skip-import-validation', false)
|
188
|
-
@skip_tests = argv.flag?('skip-tests', false)
|
189
|
-
@analyze = argv.flag?('analyze', false)
|
190
|
-
@podspecs_paths = argv.arguments!
|
191
125
|
@only_x64 = argv.flag?('onlyx64', false)
|
192
|
-
|
126
|
+
original_initialize(argv)
|
193
127
|
end
|
194
128
|
|
195
129
|
def run
|
@@ -243,46 +177,19 @@ module Pod
|
|
243
177
|
class Command
|
244
178
|
class Repo < Command
|
245
179
|
class Push < Repo
|
180
|
+
|
181
|
+
class << self
|
182
|
+
alias_method :original_options, :options
|
183
|
+
end
|
246
184
|
def self.options
|
247
|
-
[
|
248
|
-
['--allow-warnings', 'Allows pushing even if there are warnings'],
|
249
|
-
['--use-libraries', 'Linter uses static libraries to install the spec'],
|
250
|
-
['--use-modular-headers', 'Lint uses modular headers during installation'],
|
251
|
-
["--sources=#{Pod::TrunkSource::TRUNK_REPO_URL}", 'The sources from which to pull dependent pods ' \
|
252
|
-
'(defaults to all available repos). Multiple sources must be comma-delimited'],
|
253
|
-
['--local-only', 'Does not perform the step of pushing REPO to its remote'],
|
254
|
-
['--no-private', 'Lint includes checks that apply only to public repos'],
|
255
|
-
['--skip-import-validation', 'Lint skips validating that the pod can be imported'],
|
256
|
-
['--skip-tests', 'Lint skips building and running tests during validation'],
|
257
|
-
['--commit-message="Fix bug in pod"', 'Add custom commit message. Opens default editor if no commit ' \
|
258
|
-
'message is specified'],
|
259
|
-
['--use-json', 'Convert the podspec to JSON before pushing it to the repo'],
|
260
|
-
['--swift-version=VERSION', 'The `SWIFT_VERSION` that should be used when linting the spec. ' \
|
261
|
-
'This takes precedence over the Swift versions specified by the spec or a `.swift-version` file'],
|
262
|
-
['--no-overwrite', 'Disallow pushing that would overwrite an existing spec'],
|
263
|
-
['--onlyx64', 'Lint uses only x86-64 iphonesimulator'],
|
264
|
-
].concat(super)
|
185
|
+
original_options.concat([['--onlyx64', 'Lint uses only x86-64 iphonesimulator']])
|
265
186
|
end
|
266
187
|
|
188
|
+
alias_method :original_initialize, :initialize
|
189
|
+
|
267
190
|
def initialize(argv)
|
268
|
-
@allow_warnings = argv.flag?('allow-warnings')
|
269
|
-
@local_only = argv.flag?('local-only')
|
270
|
-
@repo = argv.shift_argument
|
271
|
-
@source = source_for_repo
|
272
|
-
@source_urls = argv.option('sources', config.sources_manager.all.map(&:url).join(',')).split(',')
|
273
|
-
@podspec = argv.shift_argument
|
274
|
-
@use_frameworks = !argv.flag?('use-libraries')
|
275
|
-
@use_modular_headers = argv.flag?('use-modular-headers', false)
|
276
|
-
@private = argv.flag?('private', true)
|
277
|
-
@message = argv.option('commit-message')
|
278
|
-
@commit_message = argv.flag?('commit-message', false)
|
279
|
-
@use_json = argv.flag?('use-json')
|
280
|
-
@swift_version = argv.option('swift-version', nil)
|
281
|
-
@skip_import_validation = argv.flag?('skip-import-validation', false)
|
282
|
-
@skip_tests = argv.flag?('skip-tests', false)
|
283
|
-
@allow_overwrite = argv.flag?('overwrite', true)
|
284
191
|
@only_x64 = argv.flag?('onlyx64', false)
|
285
|
-
|
192
|
+
original_initialize(argv)
|
286
193
|
end
|
287
194
|
|
288
195
|
def validate_podspec_files
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-lint-onlyx64
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nakahira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,6 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".bundle/config"
|
62
63
|
- ".gitignore"
|
63
64
|
- Gemfile
|
64
65
|
- Gemfile.lock
|