cocoapods-query 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cf435960d7f5044287ffe40bc613093c945705422f45fce97d7cb6446ce383b
4
- data.tar.gz: 3cc5a61cfddc810a37b3012f7d6819593e470e748cf065969e064ea632302c02
3
+ metadata.gz: 80a682aff701715d18f2a70a888c0e04fb7448c36c58579d582efeb418905581
4
+ data.tar.gz: 2e579bb094cace74c158c73004e391b096c4ddf1c4c585a0fe391868cc908f12
5
5
  SHA512:
6
- metadata.gz: fc8ea8af042c3d10a528f6b131a9a2e3b97d0ecc9c5451ca97a2201367fed67cec9d81aaea8553b3111c8620d8606ea0089761b88dd95b9c29172cc6e66879cb
7
- data.tar.gz: 8e2c7399ef648826034856cdeb660228d2a9fb0231147d0e55f3aac17d472683a4b81d97b1d5dbfdc149cc2bda5751eb9b7a3060c22107dec03c4fafc40e55ce
6
+ metadata.gz: 65310ccec2f51884067158dd1ff74377d5243f1590a5208bd31fce43dfcc49fe25dea49b2592a12751fd588096c48b0bec6270a006aefd0e7847163451457370
7
+ data.tar.gz: 6f3bf7cf856c31caa52e3c3124dbae9f8b534e614add3b2ebcf1f3bfd7fe92cbf73b1b692ff476225ef41d78149f48e86976929644331126dcb0b3d7109b0fbb
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CocoaPodsQuery
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -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
- (@source_file.nil? || target[:source_files].nil? || target[:source_files].any? { |s| str_match(@source_file, s) }) &&
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.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-06-24 00:00:00.000000000 Z
11
+ date: 2020-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler