cocoapods-search 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6f6ad87a42c3f039184cc4622575bed62f610307
4
- data.tar.gz: 4c0e9e9d27baa07ca32f6a9998b43623bcd8cfdf
2
+ SHA256:
3
+ metadata.gz: dd7aabedb6114ccba38aff2f3fb1920f87d4943a6aae1ac8b205d2b8b968a3bd
4
+ data.tar.gz: ecec3aaed3a013224862e47a15413631f953b664c459b90f18520d0a2858ad55
5
5
  SHA512:
6
- metadata.gz: ef28cbca6fc0c2517367474f69a8fc47fb5bf42d5e8afe8c867cec8a28a67b35cf10c2d0f40aa9128680b7fa1f864fc09199538e038fe44d61363e1a3d8d52c7
7
- data.tar.gz: 1ecb79c0413a8db82055eab056fb37ebadfe30731e589a0225ae892de681df10bbcafeb11535c98754b8ad9247201c66f6acecc79ab2c5d0381dd7a56e85f256
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,18 @@
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
+
3
16
  ## 1.0.0 (2016-05-10)
4
17
 
5
18
  ##### Enhancements
data/Gemfile.lock CHANGED
@@ -1,86 +1,113 @@
1
1
  GIT
2
2
  remote: https://github.com/CocoaPods/CocoaPods.git
3
- revision: 6d77bb4884bf7a5a24909a26f9434ae17dfa558a
3
+ revision: 2e285ae6be8aadf0e6319a51626d5176c47e0ede
4
4
  branch: master
5
5
  specs:
6
- cocoapods (1.0.0.beta.6)
7
- activesupport (>= 4.0.2)
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)
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)
17
- 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)
18
17
  escape (~> 0.0.4)
19
- fourflusher (~> 0.3.0)
20
- molinillo (~> 0.4.4)
18
+ fourflusher (>= 2.3.0, < 3.0)
19
+ gh_inspector (~> 1.0)
20
+ molinillo (~> 0.8.0)
21
21
  nap (~> 1.0)
22
- xcodeproj (>= 1.0.0.beta.3, < 2.0)
22
+ ruby-macho (>= 1.0, < 3.0)
23
+ xcodeproj (>= 1.21.0, < 2.0)
23
24
 
24
25
  GIT
25
26
  remote: https://github.com/CocoaPods/Core.git
26
- revision: fff02c11422963e4bce9c2796c00bd9b471d79b7
27
+ revision: 0a0394afabd9c5f0838fc044e1c817024499dace
27
28
  branch: master
28
29
  specs:
29
- cocoapods-core (1.0.0.beta.6)
30
- 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)
31
35
  fuzzy_match (~> 2.0.4)
32
36
  nap (~> 1.0)
37
+ netrc (~> 0.11)
38
+ public_suffix (~> 4.0)
39
+ typhoeus (~> 1.0)
33
40
 
34
41
  PATH
35
42
  remote: .
36
43
  specs:
37
- cocoapods-search (1.0.0)
44
+ cocoapods-search (1.0.1)
38
45
 
39
46
  GEM
40
47
  remote: https://rubygems.org/
41
48
  specs:
42
- activesupport (4.2.6)
43
- i18n (~> 0.7)
44
- json (~> 1.7, >= 1.7.7)
45
- minitest (~> 5.1)
46
- thread_safe (~> 0.3, >= 0.3.4)
47
- 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)
48
62
  bacon (1.2.0)
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)
63
+ claide (1.0.3)
64
+ cocoapods-deintegrate (1.0.4)
65
+ cocoapods-downloader (1.4.0)
66
+ cocoapods-plugins (1.0.0)
53
67
  nap
54
- cocoapods-stats (1.0.0.beta.3)
55
- cocoapods-trunk (1.0.0.beta.2)
68
+ cocoapods-trunk (1.5.0)
56
69
  nap (>= 0.8, < 2.0)
57
- netrc (= 0.7.8)
58
- cocoapods-try (1.0.0.beta.3)
59
- colored (1.2)
70
+ netrc (~> 0.11)
71
+ cocoapods-try (1.2.0)
72
+ colored2 (3.1.2)
73
+ concurrent-ruby (1.1.9)
60
74
  escape (0.0.4)
61
- fourflusher (0.3.0)
75
+ ethon (0.14.0)
76
+ ffi (>= 1.15.0)
77
+ ffi (1.15.3)
78
+ fourflusher (2.3.1)
62
79
  fuzzy_match (2.0.4)
63
- i18n (0.7.0)
64
- json (1.8.3)
65
- metaclass (0.0.4)
66
- minitest (5.8.4)
67
- mocha (1.1.0)
68
- metaclass (~> 0.0.1)
69
- 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)
70
88
  mocha (>= 0.13.0)
71
- molinillo (0.4.4)
89
+ molinillo (0.8.0)
90
+ nanaimo (0.3.0)
72
91
  nap (1.1.0)
73
- netrc (0.7.8)
92
+ netrc (0.11.0)
74
93
  prettybacon (0.0.2)
75
94
  bacon (~> 1.2)
76
- rake (10.4.2)
77
- thread_safe (0.3.5)
78
- tzinfo (1.2.2)
79
- thread_safe (~> 0.1)
80
- xcodeproj (1.0.0.beta.3)
81
- activesupport (>= 3)
82
- claide (>= 1.0.0.beta.1, < 2.0)
83
- 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)
84
111
 
85
112
  PLATFORMS
86
113
  ruby
@@ -96,4 +123,4 @@ DEPENDENCIES
96
123
  rake
97
124
 
98
125
  BUNDLED WITH
99
- 1.11.2
126
+ 1.17.3
@@ -76,7 +76,7 @@ module Pod
76
76
  query_parameter = queries.compact.flatten.join(' ')
77
77
  url = "https://cocoapods.org/?q=#{CGI.escape(query_parameter).gsub('+', '%20')}"
78
78
  UI.puts("Opening #{url}")
79
- open!(url)
79
+ Executable.execute_command(:open, [url])
80
80
  end
81
81
 
82
82
  def local_search
@@ -1,3 +1,3 @@
1
1
  module CocoapodsSearch
2
- VERSION = '1.0.0'.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
- Config.instance.sources_manager.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
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
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: 2016-05-10 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
97
  version: '0'
99
98
  requirements: []
100
- rubyforge_project:
101
- rubygems_version: 2.6.3
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
-