cocoapods-disable-podfile-validations 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +22 -0
- data/README.md +16 -0
- data/VERSION +1 -0
- data/lib/cocoapods-disable-podfile-validations.rb +32 -0
- data/lib/cocoapods_plugin.rb +3 -0
- metadata +77 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4a5179205b8bb625748c8353f6a6b6314f06604066aaecaa1d19235c1dc4fb01
|
4
|
+
data.tar.gz: 4697d952380e5e9fb18df9f2374425f21c1d2b6f8d7b84df54a51fc9be61ea5b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 52e1fec0630ee30d3be2ca7454ec037503530f4010058b923d1747919d64da65e462701b9cfdbd0960d39da472f163f9f2496c9e6b4962ae51e16efb7a3df1be
|
7
|
+
data.tar.gz: 87e31d136a78cba4f8f77e798447f04fb3a40fb9ae216de06174acd3eb7ab7968b79f149ecba2aa9d77bbdaa4b57e4a65dfa0fd24accf5d8065debbc3483af90
|
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2019 Samuel Giddins <segiddins@segiddins.me>
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# cocoapods-disable-podfile-validations
|
2
|
+
|
3
|
+
A small CocoaPods plugin that allows disabling individual Podfile validations.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
$ gem install cocoapods-disable-podfile-validations
|
8
|
+
|
9
|
+
## Usage
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
# Podfile
|
13
|
+
|
14
|
+
plugin 'cocoapods-disable-podfile-validations',
|
15
|
+
'validate_no_abstract_only_pods' => true
|
16
|
+
```
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CocoaPodsDisablePodfileValidations
|
4
|
+
module PodfileValidatorMixin
|
5
|
+
def cocoapods_disable_podfile_validations_options
|
6
|
+
podfile.plugins.fetch('cocoapods-disable-podfile-validations', {})
|
7
|
+
end
|
8
|
+
|
9
|
+
validator_class = ::Pod::Installer::PodfileValidator
|
10
|
+
methods_to_override = validator_class.instance_methods +
|
11
|
+
validator_class.private_instance_methods
|
12
|
+
methods_to_override.each do |method_name|
|
13
|
+
next unless method_name.to_s =~ /^validate_(.+?)[!?]?$/
|
14
|
+
|
15
|
+
name = Regexp.last_match(1)
|
16
|
+
|
17
|
+
define_method(method_name) do |*args, &blk|
|
18
|
+
unless cocoapods_disable_podfile_validations_options[name]
|
19
|
+
super(*args, &blk)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module Pod
|
27
|
+
class Installer
|
28
|
+
class PodfileValidator
|
29
|
+
prepend ::CocoaPodsDisablePodfileValidations::PodfileValidatorMixin
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
metadata
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-disable-podfile-validations
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Samuel Giddins
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '12.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '12.3'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
- segiddins@segiddins.me
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- CHANGELOG.md
|
49
|
+
- LICENSE.txt
|
50
|
+
- README.md
|
51
|
+
- VERSION
|
52
|
+
- lib/cocoapods-disable-podfile-validations.rb
|
53
|
+
- lib/cocoapods_plugin.rb
|
54
|
+
homepage: https://github.com/segiddins/cocoapods-disable-podfile-validations
|
55
|
+
licenses:
|
56
|
+
- MIT
|
57
|
+
metadata: {}
|
58
|
+
post_install_message:
|
59
|
+
rdoc_options: []
|
60
|
+
require_paths:
|
61
|
+
- lib
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '2.6'
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
requirements: []
|
73
|
+
rubygems_version: 3.0.1
|
74
|
+
signing_key:
|
75
|
+
specification_version: 4
|
76
|
+
summary: A CocoaPods plugin that allows disabling Podfile validations.
|
77
|
+
test_files: []
|