cocoapods-query 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods_query.rb +1 -1
- data/lib/pod/command/query.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80a682aff701715d18f2a70a888c0e04fb7448c36c58579d582efeb418905581
|
4
|
+
data.tar.gz: 2e579bb094cace74c158c73004e391b096c4ddf1c4c585a0fe391868cc908f12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65310ccec2f51884067158dd1ff74377d5243f1590a5208bd31fce43dfcc49fe25dea49b2592a12751fd588096c48b0bec6270a006aefd0e7847163451457370
|
7
|
+
data.tar.gz: 6f3bf7cf856c31caa52e3c3124dbae9f8b534e614add3b2ebcf1f3bfd7fe92cbf73b1b692ff476225ef41d78149f48e86976929644331126dcb0b3d7109b0fbb
|
data/lib/cocoapods_query.rb
CHANGED
data/lib/pod/command/query.rb
CHANGED
@@ -30,6 +30,7 @@ module Pod
|
|
30
30
|
['--author-name=NAME', 'Include pods having at least one author of the given name'],
|
31
31
|
['--summary=SUMMARY', 'Include pods whose summary matches the given string'],
|
32
32
|
['--description=DESCRIPTION', 'Include pods whose description matches the given string'],
|
33
|
+
['--dependency=NAME', 'Include pods that have a direct dependency on the given pod'],
|
33
34
|
['--source-file=FILE', 'Include pods whose source list includes the given file name'],
|
34
35
|
['--swift', 'Only include pods that use Swift (--no-swift for only pods that do not)'],
|
35
36
|
['--local', 'Only include locally sourced pods (--no-local for only remote pods)'],
|
@@ -49,6 +50,7 @@ module Pod
|
|
49
50
|
@author_name = argv.option('author-name')
|
50
51
|
@summary = argv.option('summary')
|
51
52
|
@description = argv.option('description')
|
53
|
+
@dependency = argv.option('dependency')
|
52
54
|
@source_file = argv.option('source-file')
|
53
55
|
@swift = argv.flag?('swift')
|
54
56
|
@local = argv.flag?('local')
|
@@ -69,7 +71,8 @@ module Pod
|
|
69
71
|
(@author_email.nil? || target[:authors].any? { |author| !author[:email].nil? && str_match(@author_email, author[:email]) }) &&
|
70
72
|
(@summary.nil? || str_match(@summary, target[:summary])) &&
|
71
73
|
(@description.nil? || str_match(@description, target[:description])) &&
|
72
|
-
(@
|
74
|
+
(@dependency.nil? || (!target[:dependencies].nil? && target[:dependencies].any? { |s| str_match(@dependency, s) })) &&
|
75
|
+
(@source_file.nil? || (!target[:source_files].nil? && target[:source_files].any? { |s| str_match(@source_file, s) })) &&
|
73
76
|
(@swift.nil? || @swift == target[:uses_swift]) &&
|
74
77
|
(@local.nil? || @local == target[:local])
|
75
78
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trevor Harmon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|