cocoapods-search 1.0.0.beta.1 → 1.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +31 -27
- data/lib/cocoapods-search/command/search.rb +8 -4
- data/lib/cocoapods-search/gem_version.rb +1 -1
- data/spec/command/search_spec.rb +1 -1
- data/spec/spec_helper/pre_flight.rb +0 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13b6b32ffb12f6d24b55d81240d27b2d73c6e32f
|
4
|
+
data.tar.gz: a8c2f746a8866f6fa2b821c482990fd85c9ab4da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 246e3cb1e7503a3dbd97860d92746e07f98ae4cd61ecbfe13526b1956dd9dd611eeb52c6319a4e1da1ed1502745e5b9903b883fd2528138e5de3e8da87a0a8d5
|
7
|
+
data.tar.gz: d57b06febd8e8e9e7fae7077ce2745e9e08f772b2e5268d5e83c6f612e631c808c4e3caa4bea96ce0b76d6e53ddb0bd7c862f67429bfe04fc2183e0afa71ba3f
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,30 +1,32 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/CocoaPods/CocoaPods.git
|
3
|
-
revision:
|
3
|
+
revision: 6d77bb4884bf7a5a24909a26f9434ae17dfa558a
|
4
4
|
branch: master
|
5
5
|
specs:
|
6
|
-
cocoapods (0.
|
6
|
+
cocoapods (1.0.0.beta.6)
|
7
7
|
activesupport (>= 4.0.2)
|
8
|
-
claide (
|
9
|
-
cocoapods-core (= 0.
|
10
|
-
cocoapods-
|
11
|
-
cocoapods-
|
12
|
-
cocoapods-
|
13
|
-
cocoapods-
|
14
|
-
cocoapods-
|
15
|
-
cocoapods-
|
8
|
+
claide (>= 1.0.0.beta.3, < 2.0)
|
9
|
+
cocoapods-core (= 1.0.0.beta.6)
|
10
|
+
cocoapods-deintegrate (>= 1.0.0.beta.1, < 2.0)
|
11
|
+
cocoapods-downloader (>= 1.0.0.beta.2, < 2.0)
|
12
|
+
cocoapods-plugins (>= 1.0.0.beta.1, < 2.0)
|
13
|
+
cocoapods-search (>= 1.0.0.beta.1, < 2.0)
|
14
|
+
cocoapods-stats (>= 1.0.0.beta.3, < 2.0)
|
15
|
+
cocoapods-trunk (>= 1.0.0.beta.2, < 2.0)
|
16
|
+
cocoapods-try (>= 1.0.0.beta.3, < 2.0)
|
16
17
|
colored (~> 1.2)
|
17
18
|
escape (~> 0.0.4)
|
18
|
-
|
19
|
+
fourflusher (~> 0.3.0)
|
20
|
+
molinillo (~> 0.4.4)
|
19
21
|
nap (~> 1.0)
|
20
|
-
xcodeproj (
|
22
|
+
xcodeproj (>= 1.0.0.beta.3, < 2.0)
|
21
23
|
|
22
24
|
GIT
|
23
25
|
remote: https://github.com/CocoaPods/Core.git
|
24
|
-
revision:
|
26
|
+
revision: fff02c11422963e4bce9c2796c00bd9b471d79b7
|
25
27
|
branch: master
|
26
28
|
specs:
|
27
|
-
cocoapods-core (0.
|
29
|
+
cocoapods-core (1.0.0.beta.6)
|
28
30
|
activesupport (>= 4.0.2)
|
29
31
|
fuzzy_match (~> 2.0.4)
|
30
32
|
nap (~> 1.0)
|
@@ -32,40 +34,42 @@ GIT
|
|
32
34
|
PATH
|
33
35
|
remote: .
|
34
36
|
specs:
|
35
|
-
cocoapods-search (1.0.0.beta.
|
37
|
+
cocoapods-search (1.0.0.beta.2)
|
36
38
|
|
37
39
|
GEM
|
38
40
|
remote: https://rubygems.org/
|
39
41
|
specs:
|
40
|
-
activesupport (4.2.
|
42
|
+
activesupport (4.2.6)
|
41
43
|
i18n (~> 0.7)
|
42
44
|
json (~> 1.7, >= 1.7.7)
|
43
45
|
minitest (~> 5.1)
|
44
46
|
thread_safe (~> 0.3, >= 0.3.4)
|
45
47
|
tzinfo (~> 1.1)
|
46
48
|
bacon (1.2.0)
|
47
|
-
claide (0.
|
48
|
-
cocoapods-
|
49
|
-
cocoapods-
|
49
|
+
claide (1.0.0.beta.3)
|
50
|
+
cocoapods-deintegrate (1.0.0.beta.1)
|
51
|
+
cocoapods-downloader (1.0.0.beta.2)
|
52
|
+
cocoapods-plugins (1.0.0.beta.1)
|
50
53
|
nap
|
51
|
-
cocoapods-stats (0.
|
52
|
-
cocoapods-trunk (0.
|
54
|
+
cocoapods-stats (1.0.0.beta.3)
|
55
|
+
cocoapods-trunk (1.0.0.beta.2)
|
53
56
|
nap (>= 0.8, < 2.0)
|
54
57
|
netrc (= 0.7.8)
|
55
|
-
cocoapods-try (0.
|
58
|
+
cocoapods-try (1.0.0.beta.3)
|
56
59
|
colored (1.2)
|
57
60
|
escape (0.0.4)
|
61
|
+
fourflusher (0.3.0)
|
58
62
|
fuzzy_match (2.0.4)
|
59
63
|
i18n (0.7.0)
|
60
64
|
json (1.8.3)
|
61
65
|
metaclass (0.0.4)
|
62
|
-
minitest (5.
|
66
|
+
minitest (5.8.4)
|
63
67
|
mocha (1.1.0)
|
64
68
|
metaclass (~> 0.0.1)
|
65
69
|
mocha-on-bacon (0.2.2)
|
66
70
|
mocha (>= 0.13.0)
|
67
|
-
molinillo (0.4.
|
68
|
-
nap (1.
|
71
|
+
molinillo (0.4.4)
|
72
|
+
nap (1.1.0)
|
69
73
|
netrc (0.7.8)
|
70
74
|
prettybacon (0.0.2)
|
71
75
|
bacon (~> 1.2)
|
@@ -73,9 +77,9 @@ GEM
|
|
73
77
|
thread_safe (0.3.5)
|
74
78
|
tzinfo (1.2.2)
|
75
79
|
thread_safe (~> 0.1)
|
76
|
-
xcodeproj (0.
|
80
|
+
xcodeproj (1.0.0.beta.3)
|
77
81
|
activesupport (>= 3)
|
78
|
-
claide (
|
82
|
+
claide (>= 1.0.0.beta.1, < 2.0)
|
79
83
|
colored (~> 1.2)
|
80
84
|
|
81
85
|
PLATFORMS
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Pod
|
2
2
|
class Command
|
3
3
|
class Search < Command
|
4
|
-
self.summary = 'Search for pods
|
4
|
+
self.summary = 'Search for pods'
|
5
5
|
|
6
6
|
self.description = <<-DESC
|
7
7
|
Searches for pods, ignoring case, whose name, summary, description, or authors match `QUERY`. If the
|
@@ -24,7 +24,7 @@ module Pod
|
|
24
24
|
end
|
25
25
|
options << ['--no-pager', 'Do not pipe search results into a pager']
|
26
26
|
options.concat(super.reject { |option, _| option == '--silent' })
|
27
|
-
end
|
27
|
+
end
|
28
28
|
|
29
29
|
def initialize(argv)
|
30
30
|
@use_regex = argv.flag?('regex')
|
@@ -50,7 +50,7 @@ module Pod
|
|
50
50
|
rescue RegexpError
|
51
51
|
help! 'A valid regular expression is required.'
|
52
52
|
end
|
53
|
-
end
|
53
|
+
end
|
54
54
|
end
|
55
55
|
|
56
56
|
def run
|
@@ -62,6 +62,10 @@ module Pod
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
def sources_manager
|
66
|
+
defined?(Pod::SourcesManager) ? Pod::SourcesManager : config.sources_manager
|
67
|
+
end
|
68
|
+
|
65
69
|
def web_search
|
66
70
|
queries = @platform_filters.map do |platform|
|
67
71
|
"on:#{platform}"
|
@@ -78,7 +82,7 @@ module Pod
|
|
78
82
|
result << (@use_regex ? q : Regexp.escape(q))
|
79
83
|
}.join(' ').strip
|
80
84
|
|
81
|
-
sets =
|
85
|
+
sets = sources_manager.search_by_name(query_regex, !@simple_search)
|
82
86
|
|
83
87
|
@platform_filters.each do |platform|
|
84
88
|
sets.reject! { |set| !set.specification.available_platforms.map(&:name).include?(platform) }
|
data/spec/command/search_spec.rb
CHANGED
@@ -7,7 +7,7 @@ module Pod
|
|
7
7
|
before do
|
8
8
|
@test_source = Source.new(fixture('spec-repos/test_repo'))
|
9
9
|
Source::Aggregate.any_instance.stubs(:sources).returns([@test_source])
|
10
|
-
|
10
|
+
Config.instance.sources_manager.updated_search_index = nil
|
11
11
|
end
|
12
12
|
|
13
13
|
describe 'Search' do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Durán
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-04-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: 1.3.1
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.6.3
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Searches for pods, ignoring case, whose name matches `QUERY`. If the `--full`
|