cocoapods-acknowledgements-filter 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/.gitignore +9 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +36 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cocoapods-acknowledgements-filter.gemspec +22 -0
- data/lib/cocoapods-acknowledgements-filter.rb +1 -0
- data/lib/cocoapods-acknowledgements-filter/version.rb +3 -0
- data/lib/cocoapods_plugin.rb +41 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 09cf5ce0b08d0357ddfd0ad524b91a93ed797952
|
4
|
+
data.tar.gz: cf0684877af9a4aaf388d65832fdd283a7a04066
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2cdb7c01d2c0c652e76b0662f57bd8d167ff5052d09abc49a59f53c6a90dc19889ad591161700d9a691b08af9dad3f626d1ecba562fdc6912609d744e6dc01ba
|
7
|
+
data.tar.gz: 3510e869f98b40fdc866dafc6bd6211f9135344bfe403ed939fb80cdd7550de0a4831305f83660e5a51078938a8e37541e03318d077118e749016fb7d1a98d01
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.3
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2016 Ashton Williams
|
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,36 @@
|
|
1
|
+
# Cocoapods Acknowledgements Filter
|
2
|
+
|
3
|
+
A CocoaPods plugin that filters the pods listed in Acknowledgements
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'cocoapods-acknowledgements-filter'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install cocoapods-acknowledgements-filter
|
20
|
+
|
21
|
+
## Example Usage
|
22
|
+
|
23
|
+
Add to your `Podfile` and configure, the options are:
|
24
|
+
|
25
|
+
- `:exclude` a list of excluded spec names
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
plugin 'cocoapods-acknowledgements-filter', :exclude => ['PrivateKit']
|
29
|
+
```
|
30
|
+
|
31
|
+
- `:filter` a block to filter them yourself
|
32
|
+
```ruby
|
33
|
+
plugin 'cocoapods-acknowledgements-filter', :filter => Proc.new { |spec|
|
34
|
+
not spec =~ /Private/
|
35
|
+
}
|
36
|
+
```
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "cocoapods-acknowledgements-filter"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cocoapods-acknowledgements-filter/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cocoapods-acknowledgements-filter"
|
8
|
+
spec.version = CocoapodsAcknowledgementsFilter::VERSION
|
9
|
+
spec.authors = ["Ashton Williams"]
|
10
|
+
spec.summary = %q{CocoaPods plugin that filters the pods listed in Acknowledgements.}
|
11
|
+
spec.homepage = "https://github.com/Ashton-W/cocoapods-acknowledgements-filter"
|
12
|
+
spec.license = "MIT"
|
13
|
+
|
14
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
15
|
+
spec.bindir = "exe"
|
16
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
|
+
spec.require_paths = ["lib"]
|
18
|
+
|
19
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
20
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
21
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
22
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "cocoapods-acknowledgements-filter/version"
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'colored'
|
2
|
+
require 'cocoapods'
|
3
|
+
|
4
|
+
module CocoapodsAcknowledgementsFilter
|
5
|
+
@@filter = Proc.new { |name|
|
6
|
+
true
|
7
|
+
}
|
8
|
+
|
9
|
+
def self.exclude
|
10
|
+
@@exclude
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.filter
|
14
|
+
@@filter
|
15
|
+
end
|
16
|
+
|
17
|
+
Pod::HooksManager.register('cocoapods-acknowledgements-filter', :pre_install) do |context, user_options|
|
18
|
+
@@exclude = user_options["exclude"]
|
19
|
+
filter = user_options["filter"]
|
20
|
+
@@filter = filter unless filter.nil?
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
module Pod
|
25
|
+
module Generator
|
26
|
+
class Acknowledgements
|
27
|
+
|
28
|
+
alias_method :specs_before, :specs
|
29
|
+
|
30
|
+
# @return [Array<Specification>] The root specifications for which the
|
31
|
+
# acknowledgements should be generated.
|
32
|
+
#
|
33
|
+
def specs
|
34
|
+
file_accessors.map { |accessor| accessor.spec.root }.uniq
|
35
|
+
.select { |spec| not CocoapodsAcknowledgementsFilter::exclude.include? spec.name }
|
36
|
+
.select { |spec| CocoapodsAcknowledgementsFilter::filter.call(spec.name) }
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cocoapods-acknowledgements-filter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ashton Williams
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-11-08 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.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- ".gitignore"
|
62
|
+
- ".rspec"
|
63
|
+
- ".ruby-version"
|
64
|
+
- ".travis.yml"
|
65
|
+
- Gemfile
|
66
|
+
- LICENSE
|
67
|
+
- README.md
|
68
|
+
- Rakefile
|
69
|
+
- bin/console
|
70
|
+
- bin/setup
|
71
|
+
- cocoapods-acknowledgements-filter.gemspec
|
72
|
+
- lib/cocoapods-acknowledgements-filter.rb
|
73
|
+
- lib/cocoapods-acknowledgements-filter/version.rb
|
74
|
+
- lib/cocoapods_plugin.rb
|
75
|
+
homepage: https://github.com/Ashton-W/cocoapods-acknowledgements-filter
|
76
|
+
licenses:
|
77
|
+
- MIT
|
78
|
+
metadata: {}
|
79
|
+
post_install_message:
|
80
|
+
rdoc_options: []
|
81
|
+
require_paths:
|
82
|
+
- lib
|
83
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 2.6.6
|
96
|
+
signing_key:
|
97
|
+
specification_version: 4
|
98
|
+
summary: CocoaPods plugin that filters the pods listed in Acknowledgements.
|
99
|
+
test_files: []
|