cocoapods-search 1.0.0.beta.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/Specs.yml +42 -0
- data/CHANGELOG.md +43 -0
- data/Gemfile.lock +82 -51
- data/lib/cocoapods-search/command/search.rb +11 -5
- data/lib/cocoapods-search/gem_version.rb +1 -1
- data/spec/command/search_spec.rb +10 -16
- data/spec/spec_helper/pre_flight.rb +0 -1
- metadata +15 -17
- data/.gitmodules +0 -3
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dd7aabedb6114ccba38aff2f3fb1920f87d4943a6aae1ac8b205d2b8b968a3bd
|
4
|
+
data.tar.gz: ecec3aaed3a013224862e47a15413631f953b664c459b90f18520d0a2858ad55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ed2d5396330c3a1cf0707137fbae3a4e9b0bfee4a0821cc04ea9d9dd0999878d0030d9f447654e6761ee202fe3823f6e80940877f2fc7cf044ea0e1a82bf737
|
7
|
+
data.tar.gz: a5eba7f5443bb04c9a3146bb021f87c32517c244c03837fa4cef9589a3fec2d706c5ff049d4aaf1625d677e7ec1d926867514cc0a72f7052c34a1d01da524150
|
@@ -0,0 +1,42 @@
|
|
1
|
+
name: Specs
|
2
|
+
|
3
|
+
jobs:
|
4
|
+
specs:
|
5
|
+
strategy:
|
6
|
+
matrix:
|
7
|
+
os: [ubuntu-16.04]
|
8
|
+
ruby: [2.6, 2.7, 3.0]
|
9
|
+
|
10
|
+
name: ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
|
11
|
+
runs-on: ${{ matrix.os }}
|
12
|
+
steps:
|
13
|
+
- name: Checkout git
|
14
|
+
uses: actions/checkout@v1
|
15
|
+
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
if: ${{ matrix.ruby != 'system' }}
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
|
22
|
+
- name: Update git submodules
|
23
|
+
run: git submodule update --init --recursive
|
24
|
+
|
25
|
+
- name: Run bundle install
|
26
|
+
run: |
|
27
|
+
gem install bundler -v "~> 1.17"
|
28
|
+
bundle install --jobs 4 --retry 3 --without debugging documentation
|
29
|
+
|
30
|
+
- name: Run Specs
|
31
|
+
run: bundle exec rake specs
|
32
|
+
|
33
|
+
on:
|
34
|
+
push:
|
35
|
+
branches:
|
36
|
+
- "master"
|
37
|
+
- "*-stable"
|
38
|
+
pull_request:
|
39
|
+
branches:
|
40
|
+
- master
|
41
|
+
- "*-stable"
|
42
|
+
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,48 @@
|
|
1
1
|
# Cocoapods::Search Changelog
|
2
2
|
|
3
|
+
## 1.0.1 (2021-08-13)
|
4
|
+
|
5
|
+
##### Enhancements
|
6
|
+
|
7
|
+
* None.
|
8
|
+
|
9
|
+
##### Bug Fixes
|
10
|
+
|
11
|
+
* Fix running with `--web`.
|
12
|
+
[Samuel Giddins](https://github.com/segiddins)
|
13
|
+
[#25](https://github.com/CocoaPods/cocoapods-search/issues/25)
|
14
|
+
|
15
|
+
|
16
|
+
## 1.0.0 (2016-05-10)
|
17
|
+
|
18
|
+
##### Enhancements
|
19
|
+
|
20
|
+
* None.
|
21
|
+
|
22
|
+
##### Bug Fixes
|
23
|
+
|
24
|
+
* None.
|
25
|
+
|
26
|
+
|
27
|
+
## 1.0.0.rc.1 (2016-04-30)
|
28
|
+
|
29
|
+
##### Enhancements
|
30
|
+
|
31
|
+
* None.
|
32
|
+
|
33
|
+
##### Bug Fixes
|
34
|
+
|
35
|
+
* None.
|
36
|
+
|
37
|
+
|
38
|
+
## 1.0.0.beta.2 (2016-04-14)
|
39
|
+
|
40
|
+
##### Bug Fixes
|
41
|
+
|
42
|
+
* Compatibility with CocoaPods 1.0.0.beta.7.
|
43
|
+
[Samuel Giddins](https://github.com/segiddins)
|
44
|
+
|
45
|
+
|
3
46
|
## 1.0.0.beta.1 (2015-12-30)
|
4
47
|
|
5
48
|
##### Enhancements
|
data/Gemfile.lock
CHANGED
@@ -1,82 +1,113 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/CocoaPods/CocoaPods.git
|
3
|
-
revision:
|
3
|
+
revision: 2e285ae6be8aadf0e6319a51626d5176c47e0ede
|
4
4
|
branch: master
|
5
5
|
specs:
|
6
|
-
cocoapods (0.
|
7
|
-
|
8
|
-
claide (
|
9
|
-
cocoapods-core (= 0.
|
10
|
-
cocoapods-
|
11
|
-
cocoapods-
|
12
|
-
cocoapods-
|
13
|
-
cocoapods-
|
14
|
-
cocoapods-trunk (
|
15
|
-
cocoapods-try (
|
16
|
-
|
6
|
+
cocoapods (1.11.0.beta.2)
|
7
|
+
addressable (~> 2.8)
|
8
|
+
claide (>= 1.0.2, < 2.0)
|
9
|
+
cocoapods-core (= 1.11.0.beta.2)
|
10
|
+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
11
|
+
cocoapods-downloader (>= 1.4.0, < 2.0)
|
12
|
+
cocoapods-plugins (>= 1.0.0, < 2.0)
|
13
|
+
cocoapods-search (= 1.0.1)
|
14
|
+
cocoapods-trunk (>= 1.4.0, < 2.0)
|
15
|
+
cocoapods-try (>= 1.1.0, < 2.0)
|
16
|
+
colored2 (~> 3.1)
|
17
17
|
escape (~> 0.0.4)
|
18
|
-
|
18
|
+
fourflusher (>= 2.3.0, < 3.0)
|
19
|
+
gh_inspector (~> 1.0)
|
20
|
+
molinillo (~> 0.8.0)
|
19
21
|
nap (~> 1.0)
|
20
|
-
|
22
|
+
ruby-macho (>= 1.0, < 3.0)
|
23
|
+
xcodeproj (>= 1.21.0, < 2.0)
|
21
24
|
|
22
25
|
GIT
|
23
26
|
remote: https://github.com/CocoaPods/Core.git
|
24
|
-
revision:
|
27
|
+
revision: 0a0394afabd9c5f0838fc044e1c817024499dace
|
25
28
|
branch: master
|
26
29
|
specs:
|
27
|
-
cocoapods-core (0.
|
28
|
-
activesupport (>=
|
30
|
+
cocoapods-core (1.11.0.beta.2)
|
31
|
+
activesupport (>= 5.0, < 7)
|
32
|
+
addressable (~> 2.8)
|
33
|
+
algoliasearch (~> 1.0)
|
34
|
+
concurrent-ruby (~> 1.1)
|
29
35
|
fuzzy_match (~> 2.0.4)
|
30
36
|
nap (~> 1.0)
|
37
|
+
netrc (~> 0.11)
|
38
|
+
public_suffix (~> 4.0)
|
39
|
+
typhoeus (~> 1.0)
|
31
40
|
|
32
41
|
PATH
|
33
42
|
remote: .
|
34
43
|
specs:
|
35
|
-
cocoapods-search (1.0.
|
44
|
+
cocoapods-search (1.0.1)
|
36
45
|
|
37
46
|
GEM
|
38
47
|
remote: https://rubygems.org/
|
39
48
|
specs:
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
tzinfo (~>
|
49
|
+
CFPropertyList (3.0.3)
|
50
|
+
activesupport (6.1.4)
|
51
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
52
|
+
i18n (>= 1.6, < 2)
|
53
|
+
minitest (>= 5.1)
|
54
|
+
tzinfo (~> 2.0)
|
55
|
+
zeitwerk (~> 2.3)
|
56
|
+
addressable (2.8.0)
|
57
|
+
public_suffix (>= 2.0.2, < 5.0)
|
58
|
+
algoliasearch (1.27.5)
|
59
|
+
httpclient (~> 2.8, >= 2.8.3)
|
60
|
+
json (>= 1.5.1)
|
61
|
+
atomos (0.1.3)
|
46
62
|
bacon (1.2.0)
|
47
|
-
claide (0.
|
48
|
-
cocoapods-
|
49
|
-
cocoapods-
|
63
|
+
claide (1.0.3)
|
64
|
+
cocoapods-deintegrate (1.0.4)
|
65
|
+
cocoapods-downloader (1.4.0)
|
66
|
+
cocoapods-plugins (1.0.0)
|
50
67
|
nap
|
51
|
-
cocoapods-
|
52
|
-
cocoapods-trunk (0.6.4)
|
68
|
+
cocoapods-trunk (1.5.0)
|
53
69
|
nap (>= 0.8, < 2.0)
|
54
|
-
netrc (
|
55
|
-
cocoapods-try (
|
56
|
-
|
70
|
+
netrc (~> 0.11)
|
71
|
+
cocoapods-try (1.2.0)
|
72
|
+
colored2 (3.1.2)
|
73
|
+
concurrent-ruby (1.1.9)
|
57
74
|
escape (0.0.4)
|
75
|
+
ethon (0.14.0)
|
76
|
+
ffi (>= 1.15.0)
|
77
|
+
ffi (1.15.3)
|
78
|
+
fourflusher (2.3.1)
|
58
79
|
fuzzy_match (2.0.4)
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
mocha
|
80
|
+
gh_inspector (1.1.3)
|
81
|
+
httpclient (2.8.3)
|
82
|
+
i18n (1.8.10)
|
83
|
+
concurrent-ruby (~> 1.0)
|
84
|
+
json (2.5.1)
|
85
|
+
minitest (5.14.4)
|
86
|
+
mocha (1.13.0)
|
87
|
+
mocha-on-bacon (0.2.3)
|
66
88
|
mocha (>= 0.13.0)
|
67
|
-
molinillo (0.
|
68
|
-
|
69
|
-
|
89
|
+
molinillo (0.8.0)
|
90
|
+
nanaimo (0.3.0)
|
91
|
+
nap (1.1.0)
|
92
|
+
netrc (0.11.0)
|
70
93
|
prettybacon (0.0.2)
|
71
94
|
bacon (~> 1.2)
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
95
|
+
public_suffix (4.0.6)
|
96
|
+
rake (13.0.6)
|
97
|
+
rexml (3.2.5)
|
98
|
+
ruby-macho (2.5.1)
|
99
|
+
typhoeus (1.4.0)
|
100
|
+
ethon (>= 0.9.0)
|
101
|
+
tzinfo (2.0.4)
|
102
|
+
concurrent-ruby (~> 1.0)
|
103
|
+
xcodeproj (1.21.0)
|
104
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
105
|
+
atomos (~> 0.1.3)
|
106
|
+
claide (>= 1.0.2, < 2.0)
|
107
|
+
colored2 (~> 3.1)
|
108
|
+
nanaimo (~> 0.3.0)
|
109
|
+
rexml (~> 3.2.4)
|
110
|
+
zeitwerk (2.4.2)
|
80
111
|
|
81
112
|
PLATFORMS
|
82
113
|
ruby
|
@@ -92,4 +123,4 @@ DEPENDENCIES
|
|
92
123
|
rake
|
93
124
|
|
94
125
|
BUNDLED WITH
|
95
|
-
1.
|
126
|
+
1.17.3
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module Pod
|
2
2
|
class Command
|
3
|
+
# @CocoaPods 0.0.2
|
4
|
+
#
|
3
5
|
class Search < Command
|
4
|
-
self.summary = 'Search for pods
|
6
|
+
self.summary = 'Search for pods'
|
5
7
|
|
6
8
|
self.description = <<-DESC
|
7
9
|
Searches for pods, ignoring case, whose name, summary, description, or authors match `QUERY`. If the
|
@@ -24,7 +26,7 @@ module Pod
|
|
24
26
|
end
|
25
27
|
options << ['--no-pager', 'Do not pipe search results into a pager']
|
26
28
|
options.concat(super.reject { |option, _| option == '--silent' })
|
27
|
-
end
|
29
|
+
end
|
28
30
|
|
29
31
|
def initialize(argv)
|
30
32
|
@use_regex = argv.flag?('regex')
|
@@ -50,7 +52,7 @@ module Pod
|
|
50
52
|
rescue RegexpError
|
51
53
|
help! 'A valid regular expression is required.'
|
52
54
|
end
|
53
|
-
end
|
55
|
+
end
|
54
56
|
end
|
55
57
|
|
56
58
|
def run
|
@@ -62,6 +64,10 @@ module Pod
|
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
67
|
+
def sources_manager
|
68
|
+
defined?(Pod::SourcesManager) ? Pod::SourcesManager : config.sources_manager
|
69
|
+
end
|
70
|
+
|
65
71
|
def web_search
|
66
72
|
queries = @platform_filters.map do |platform|
|
67
73
|
"on:#{platform}"
|
@@ -70,7 +76,7 @@ module Pod
|
|
70
76
|
query_parameter = queries.compact.flatten.join(' ')
|
71
77
|
url = "https://cocoapods.org/?q=#{CGI.escape(query_parameter).gsub('+', '%20')}"
|
72
78
|
UI.puts("Opening #{url}")
|
73
|
-
open
|
79
|
+
Executable.execute_command(:open, [url])
|
74
80
|
end
|
75
81
|
|
76
82
|
def local_search
|
@@ -78,7 +84,7 @@ module Pod
|
|
78
84
|
result << (@use_regex ? q : Regexp.escape(q))
|
79
85
|
}.join(' ').strip
|
80
86
|
|
81
|
-
sets =
|
87
|
+
sets = sources_manager.search_by_name(query_regex, !@simple_search)
|
82
88
|
|
83
89
|
@platform_filters.each do |platform|
|
84
90
|
sets.reject! { |set| !set.specification.available_platforms.map(&:name).include?(platform) }
|
data/spec/command/search_spec.rb
CHANGED
@@ -4,12 +4,6 @@ module Pod
|
|
4
4
|
describe Command::Search do
|
5
5
|
extend SpecHelper::TemporaryRepos
|
6
6
|
|
7
|
-
before do
|
8
|
-
@test_source = Source.new(fixture('spec-repos/test_repo'))
|
9
|
-
Source::Aggregate.any_instance.stubs(:sources).returns([@test_source])
|
10
|
-
SourcesManager.updated_search_index = nil
|
11
|
-
end
|
12
|
-
|
13
7
|
describe 'Search' do
|
14
8
|
it 'registers it self' do
|
15
9
|
Command.parse(%w{ search }).should.be.instance_of Command::Search
|
@@ -102,51 +96,51 @@ module Pod
|
|
102
96
|
extend SpecHelper::TemporaryRepos
|
103
97
|
|
104
98
|
it 'searches with invalid regex' do
|
105
|
-
|
99
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=NSAttributedString%2BCCLFormat'])
|
106
100
|
run_command('search', '--web', 'NSAttributedString+CCLFormat')
|
107
101
|
end
|
108
102
|
|
109
103
|
it 'should url encode search queries' do
|
110
|
-
|
104
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=NSAttributedString%2BCCLFormat'])
|
111
105
|
run_command('search', '--web', 'NSAttributedString+CCLFormat')
|
112
106
|
end
|
113
107
|
|
114
108
|
it 'searches the web via the open! command' do
|
115
|
-
|
109
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=bananalib'])
|
116
110
|
run_command('search', '--web', 'bananalib')
|
117
111
|
end
|
118
112
|
|
119
113
|
it 'includes option --osx correctly' do
|
120
|
-
|
114
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=on%3Aosx%20bananalib'])
|
121
115
|
run_command('search', '--web', '--osx', 'bananalib')
|
122
116
|
end
|
123
117
|
|
124
118
|
it 'includes option --ios correctly' do
|
125
|
-
|
119
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=on%3Aios%20bananalib'])
|
126
120
|
run_command('search', '--web', '--ios', 'bananalib')
|
127
121
|
end
|
128
122
|
|
129
123
|
it 'includes option --watchos correctly' do
|
130
|
-
|
124
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=on%3Awatchos%20bananalib'])
|
131
125
|
run_command('search', '--web', '--watchos', 'bananalib')
|
132
126
|
end
|
133
127
|
|
134
128
|
it 'includes option --tvos correctly' do
|
135
|
-
|
129
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=on%3Atvos%20bananalib'])
|
136
130
|
run_command('search', '--web', '--tvos', 'bananalib')
|
137
131
|
end
|
138
132
|
|
139
133
|
it 'includes any new platform option correctly' do
|
140
134
|
Platform.stubs(:all).returns([Platform.ios, Platform.tvos, Platform.new('whateveros')])
|
141
|
-
|
135
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=on%3Awhateveros%20bananalib'])
|
142
136
|
run_command('search', '--web', '--whateveros', 'bananalib')
|
143
137
|
end
|
144
138
|
|
145
139
|
it 'does not matter in which order the ios/osx options are set' do
|
146
|
-
|
140
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=on%3Aios%20on%3Aosx%20bananalib'])
|
147
141
|
run_command('search', '--web', '--ios', '--osx', 'bananalib')
|
148
142
|
|
149
|
-
|
143
|
+
Executable.expects(:execute_command).with(:open, ['https://cocoapods.org/?q=on%3Aios%20on%3Aosx%20bananalib'])
|
150
144
|
run_command('search', '--web', '--osx', '--ios', 'bananalib')
|
151
145
|
end
|
152
146
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-search
|
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
|
- Eloy Durán
|
8
8
|
- Fabio Pelosin
|
9
9
|
- Emma Koszinowski
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-08-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '1.3'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - ~>
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '1.3'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '0'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
description: Search for pods.
|
@@ -49,9 +49,8 @@ executables: []
|
|
49
49
|
extensions: []
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
|
-
- .
|
53
|
-
- .
|
54
|
-
- .travis.yml
|
52
|
+
- ".github/workflows/Specs.yml"
|
53
|
+
- ".gitignore"
|
55
54
|
- CHANGELOG.md
|
56
55
|
- Gemfile
|
57
56
|
- Gemfile.lock
|
@@ -82,24 +81,23 @@ homepage: https://github.com/CocoaPods/cocoapods-search
|
|
82
81
|
licenses:
|
83
82
|
- MIT
|
84
83
|
metadata: {}
|
85
|
-
post_install_message:
|
84
|
+
post_install_message:
|
86
85
|
rdoc_options: []
|
87
86
|
require_paths:
|
88
87
|
- lib
|
89
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
90
89
|
requirements:
|
91
|
-
- -
|
90
|
+
- - ">="
|
92
91
|
- !ruby/object:Gem::Version
|
93
92
|
version: '0'
|
94
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
94
|
requirements:
|
96
|
-
- -
|
95
|
+
- - ">="
|
97
96
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
97
|
+
version: '0'
|
99
98
|
requirements: []
|
100
|
-
|
101
|
-
|
102
|
-
signing_key:
|
99
|
+
rubygems_version: 3.1.3
|
100
|
+
signing_key:
|
103
101
|
specification_version: 4
|
104
102
|
summary: Searches for pods, ignoring case, whose name matches `QUERY`. If the `--full`
|
105
103
|
option is specified, this will also search in the summary and description of the
|
data/.gitmodules
DELETED