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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e35cf8f00617aca2b411d4764a0c0ca1f7f8014cd59f01ecd2adadf4d94ada5
4
- data.tar.gz: 367d4483c8fce6c369ac9b8da57c636f7ea7582d188076315d1e85c2026a2263
3
+ metadata.gz: 953fc696688460549cda2a2968d9535236d282becd93b31c9165cc80b8773cbb
4
+ data.tar.gz: 39db825a8cae8e601397097592f05a51d2c7ae619b2fb705b717615e19e65c78
5
5
  SHA512:
6
- metadata.gz: fa9de2583b1f147b864a8a659809aeee774cca9a5276d4f099c4295022cbcedb2e854a884d26d9d7c89d542c0b330de07233fbbcecaddc0361c4e92d82c8a337
7
- data.tar.gz: f776db784f41922181951e2a91e70e2cabac9103c3e76e229ad713e8e93c89ce1aee1cb199596b2087fa4d31aa6d941259d9feec932054c98dc55ca4443fa3f8
6
+ metadata.gz: 56c189692a273692ef5432fd0f0e2fa11c9f04ed851a382fcf9a0a7a3167e5148b5be53cc09d5cf972c1bdf7d2237be04773d3c66069bd182f6027998c9ea2fd
7
+ data.tar.gz: ec01de39805bd546f5ca9dd6290b6b576b38a35c4dc67929afd58aed92bc0e15f7fc48ef61429d952c48c280f7aa632810ab03f96ba0e637c82fcb71ae1a9f45
data/.bundle/config ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_PATH: "vendor"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-lint-onlyx64 (0.1.0)
4
+ cocoapods-lint-onlyx64 (0.1.1)
5
5
  cocoapods (= 1.9.3)
6
6
 
7
7
  GEM
@@ -107,4 +107,4 @@ DEPENDENCIES
107
107
  rake
108
108
 
109
109
  BUNDLED WITH
110
- 2.1.4
110
+ 2.2.31
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020 徐仲平 <zhongping.xu@ushow.media>
1
+ Copyright (c) 2020 徐仲平 <1021057927@qq.com>
2
2
 
3
3
  MIT License
4
4
 
@@ -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
- super
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
- super
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
- super
192
+ original_initialize(argv)
286
193
  end
287
194
 
288
195
  def validate_podspec_files
@@ -1,3 +1,3 @@
1
1
  module CocoapodsLintOnlyx64
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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-01-21 00:00:00.000000000 Z
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