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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0198d41884a61de7016672ff216b88f0d33fe4db
4
- data.tar.gz: f94a2140642899f157698f24e55eb87e1fdcd152
2
+ SHA256:
3
+ metadata.gz: dd7aabedb6114ccba38aff2f3fb1920f87d4943a6aae1ac8b205d2b8b968a3bd
4
+ data.tar.gz: ecec3aaed3a013224862e47a15413631f953b664c459b90f18520d0a2858ad55
5
5
  SHA512:
6
- metadata.gz: 7b58ee34881df2bf3b021035e03afebdfedf7087e4dd046f4141f0f0ea95e18217b603f0051e15d190efea41798b9f2a0080825f47af18aa8e336e966160e974
7
- data.tar.gz: 180202787917d8ee404a2578034f93ad1462778f20775037e6a48cd8fe7913f19674b5236a74fe1c8bdef07b04ae177d101cc490c1f70236e123bc90563a554d
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: 6c64eeb69443d9ab18081ad330a134cfb0e46169
3
+ revision: 2e285ae6be8aadf0e6319a51626d5176c47e0ede
4
4
  branch: master
5
5
  specs:
6
- cocoapods (0.39.0)
7
- activesupport (>= 4.0.2)
8
- claide (~> 0.9.1)
9
- cocoapods-core (= 0.39.0)
10
- cocoapods-downloader (~> 0.9.3)
11
- cocoapods-plugins (~> 0.4.2)
12
- cocoapods-search (~> 1.0.0.beta.1)
13
- cocoapods-stats (~> 0.6.2)
14
- cocoapods-trunk (~> 0.6.4)
15
- cocoapods-try (~> 0.5.1)
16
- colored (~> 1.2)
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
- molinillo (~> 0.4.0)
18
+ fourflusher (>= 2.3.0, < 3.0)
19
+ gh_inspector (~> 1.0)
20
+ molinillo (~> 0.8.0)
19
21
  nap (~> 1.0)
20
- xcodeproj (~> 0.28.2)
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: 6c2544496ed201104e712dd95793ec7bc6a171e8
27
+ revision: 0a0394afabd9c5f0838fc044e1c817024499dace
25
28
  branch: master
26
29
  specs:
27
- cocoapods-core (0.39.0)
28
- activesupport (>= 4.0.2)
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.0.beta.1)
44
+ cocoapods-search (1.0.1)
36
45
 
37
46
  GEM
38
47
  remote: https://rubygems.org/
39
48
  specs:
40
- activesupport (4.2.4)
41
- i18n (~> 0.7)
42
- json (~> 1.7, >= 1.7.7)
43
- minitest (~> 5.1)
44
- thread_safe (~> 0.3, >= 0.3.4)
45
- tzinfo (~> 1.1)
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.9.1)
48
- cocoapods-downloader (0.9.3)
49
- cocoapods-plugins (0.4.2)
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-stats (0.6.2)
52
- cocoapods-trunk (0.6.4)
68
+ cocoapods-trunk (1.5.0)
53
69
  nap (>= 0.8, < 2.0)
54
- netrc (= 0.7.8)
55
- cocoapods-try (0.5.1)
56
- colored (1.2)
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
- i18n (0.7.0)
60
- json (1.8.3)
61
- metaclass (0.0.4)
62
- minitest (5.7.0)
63
- mocha (1.1.0)
64
- metaclass (~> 0.0.1)
65
- mocha-on-bacon (0.2.2)
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.4.0)
68
- nap (1.0.0)
69
- netrc (0.7.8)
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
- rake (10.4.2)
73
- thread_safe (0.3.5)
74
- tzinfo (1.2.2)
75
- thread_safe (~> 0.1)
76
- xcodeproj (0.28.2)
77
- activesupport (>= 3)
78
- claide (~> 0.9.1)
79
- colored (~> 1.2)
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.11.2
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!(url)
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 = SourcesManager.search_by_name(query_regex, !@simple_search)
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) }
@@ -1,3 +1,3 @@
1
1
  module CocoapodsSearch
2
- VERSION = '1.0.0.beta.1'.freeze
2
+ VERSION = '1.0.1'.freeze
3
3
  end
@@ -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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=NSAttributedString%2BCCLFormat')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=NSAttributedString%2BCCLFormat')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=bananalib')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=on%3Aosx%20bananalib')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=on%3Aios%20bananalib')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=on%3Awatchos%20bananalib')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=on%3Atvos%20bananalib')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=on%3Awhateveros%20bananalib')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=on%3Aios%20on%3Aosx%20bananalib')
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
- Command::Search.any_instance.expects(:open!).with('https://cocoapods.org/?q=on%3Aios%20on%3Aosx%20bananalib')
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
@@ -12,7 +12,6 @@ module Bacon
12
12
  c.silent = true
13
13
  c.repos_dir = fixture('spec-repos')
14
14
  c.installation_root = SpecHelper.temporary_directory
15
- c.skip_repo_update = true
16
15
  c.cache_root = SpecHelper.temporary_directory + 'Cache'
17
16
  end
18
17
 
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.0.beta.1
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: 2015-12-30 00:00:00.000000000 Z
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
- - .gitignore
53
- - .gitmodules
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: 1.3.1
97
+ version: '0'
99
98
  requirements: []
100
- rubyforge_project:
101
- rubygems_version: 2.5.1
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
@@ -1,3 +0,0 @@
1
- [submodule "spec/fixtures/spec-repos/master"]
2
- path = spec/fixtures/spec-repos/master
3
- url = https://github.com/CocoaPods/Specs.git
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.0.0-p451
5
-
6
- branches:
7
- only:
8
- - master
9
- - /.+-stable$/
10
-