gem-search 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +56 -63
- data/lib/gem_search/command_builder.rb +1 -1
- data/lib/gem_search/commands/run.rb +1 -1
- data/lib/gem_search/executor.rb +1 -1
- data/lib/gem_search/rendering.rb +5 -5
- data/lib/gem_search/version.rb +1 -1
- data/spec/bin/gem_search_spec.rb +1 -1
- data/spec/commands/run_spec.rb +1 -1
- data/spec/executor_spec.rb +98 -98
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f59b9866583c10a920326889b8a6b81e9f87d5a0
|
4
|
+
data.tar.gz: 8cf2b2a2de452c660297409afd505fef339b15f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e9b33d495af55046bc9473b49f7e91efc7faeda3f22b16c009cb05807e7b917fcfd6296e5c071f9dc4c2576433a300cb9e9a1b4c47a15296feacc616fb97eb9
|
7
|
+
data.tar.gz: 4dcdacf41d66b29f6f05f36e8dc737ce5fc1ab6af7d1e57ffc657505ff13ab5340bf982c74e72324736d68a48b4588299a429ff3de1f837964815bbe4d4ec457
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -34,18 +34,27 @@ e.g.:
|
|
34
34
|
|
35
35
|
```
|
36
36
|
$ gem-search webkit
|
37
|
-
NAME DL(ver) DL(all)
|
38
|
-
-------------------------------------------------- -------- ---------
|
39
|
-
capybara-webkit (
|
40
|
-
jasmine-headless-webkit (0.8.4)
|
41
|
-
guard-jasmine-headless-webkit (0.3.2)
|
42
|
-
rspec-formatter-webkit (2.
|
43
|
-
webkit-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
37
|
+
NAME DL(ver) DL(all) HOMEPAGE
|
38
|
+
-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
39
|
+
capybara-webkit (1.8.0) 15324 2568161 http://github.com/thoughtbot/capybara-webkit
|
40
|
+
jasmine-headless-webkit (0.8.4) 245135 323205
|
41
|
+
guard-jasmine-headless-webkit (0.3.2) 70738 89705
|
42
|
+
rspec-formatter-webkit (2.6.0) 355 23294 http://deveiate.org/webkit-rspec-formatter.html
|
43
|
+
webkit-gtk (3.0.7) 452 15734 http://ruby-gnome2.sourceforge.jp/
|
44
|
+
webkit-gtk2 (3.0.7) 487 12862 http://ruby-gnome2.sourceforge.jp/
|
45
|
+
webkit_remote (0.5.5) 866 12030 http://github.com/pwnall/webkit_remote
|
46
|
+
gtk-webkit-ruby (0.0.8) 1644 8063 http://github.com/geoffyoungs/gtk-webkit-ruby
|
47
|
+
capybara-webkit-remote (0.0.4) 1944 6968 http://github.com/pettyjamesm/capybara-webkit-remote
|
48
|
+
intentmedia-capybara-webkit (0.7.2.4) 1796 6245 http://github.com/thoughtbot/capybara-webkit
|
49
|
+
gtk_webkit_pdf (0.0.2.2) 1349 5934 https://github.com/mohanraj-ramanujam/gtk_webkit_pdf
|
50
|
+
webkit-rspec-formatter (2.0.2) 2032 5099 http://deveiate.org/webkit-rspec-formatter.html
|
51
|
+
otherinbox-capybara-webkit (0.12.0.1) 2924 4161 http://github.com/thoughtbot/capybara-webkit
|
52
|
+
jasmine-headless-webkit-firstbanco (0.9.0.rc.5) 2436 3995
|
53
|
+
webkit_remote_unstable (0.1.3) 823 3233 http://github.com/pwnall/webkit_remote_unstable
|
54
|
+
webkit2-gtk (3.0.7) 421 2178 http://ruby-gnome2.sourceforge.jp/
|
55
|
+
bitium-capybara-webkit (1.1.1) 1208 1208 http://github.com/thoughtbot/capybara-webkit
|
56
|
+
imseng-capybara-webkit (0.12.1) 1199 1199 http://github.com/imseng/capybara-webkit
|
57
|
+
node-webkit-bootstrap (1.0.0) 873 873 https://github.com/audiosocket/node-webkit-bootstrap```
|
49
58
|
|
50
59
|
### Sorted by gem name
|
51
60
|
|
@@ -56,17 +65,17 @@ e.g.:
|
|
56
65
|
|
57
66
|
```
|
58
67
|
$ gem-search webkit -s n
|
59
|
-
NAME DL(ver) DL(all)
|
60
|
-
-------------------------------------------------- -------- ---------
|
61
|
-
capybara-webkit (
|
62
|
-
capybara-webkit
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
jasmine-headless-webkit (0.
|
67
|
-
|
68
|
-
|
69
|
-
|
68
|
+
NAME DL(ver) DL(all) HOMEPAGE
|
69
|
+
-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
70
|
+
bitium-capybara-webkit (1.1.1) 1208 1208 http://github.com/thoughtbot/capybara-webkit
|
71
|
+
capybara-webkit (1.8.0) 15324 2568161 http://github.com/thoughtbot/capybara-webkit
|
72
|
+
capybara-webkit-remote (0.0.4) 1944 6968 http://github.com/pettyjamesm/capybara-webkit-remote
|
73
|
+
gtk-webkit-ruby (0.0.8) 1644 8063 http://github.com/geoffyoungs/gtk-webkit-ruby
|
74
|
+
gtk_webkit_pdf (0.0.2.2) 1349 5934 https://github.com/mohanraj-ramanujam/gtk_webkit_pdf
|
75
|
+
guard-jasmine-headless-webkit (0.3.2) 70738 89705
|
76
|
+
imseng-capybara-webkit (0.12.1) 1199 1199 http://github.com/imseng/capybara-webkit
|
77
|
+
intentmedia-capybara-webkit (0.7.2.4) 1796 6245 http://github.com/thoughtbot/capybara-webkit
|
78
|
+
...
|
70
79
|
```
|
71
80
|
|
72
81
|
### Sorted by DL(ver)
|
@@ -79,58 +88,42 @@ e.g.:
|
|
79
88
|
|
80
89
|
```
|
81
90
|
$ gem-search webkit -s v
|
82
|
-
NAME DL(ver) DL(all)
|
83
|
-
-------------------------------------------------- -------- ---------
|
84
|
-
|
85
|
-
jasmine-headless-webkit (0.
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
rspec-formatter
|
90
|
-
|
91
|
-
|
92
|
-
|
91
|
+
NAME DL(ver) DL(all) HOMEPAGE
|
92
|
+
-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
93
|
+
jasmine-headless-webkit (0.8.4) 245135 323205
|
94
|
+
guard-jasmine-headless-webkit (0.3.2) 70738 89705
|
95
|
+
capybara-webkit (1.8.0) 15324 2568162 http://github.com/thoughtbot/capybara-webkit
|
96
|
+
otherinbox-capybara-webkit (0.12.0.1) 2924 4161 http://github.com/thoughtbot/capybara-webkit
|
97
|
+
jasmine-headless-webkit-firstbanco (0.9.0.rc.5) 2436 3995
|
98
|
+
webkit-rspec-formatter (2.0.2) 2032 5099 http://deveiate.org/webkit-rspec-formatter.html
|
99
|
+
capybara-webkit-remote (0.0.4) 1944 6968 http://github.com/pettyjamesm/capybara-webkit-remote
|
100
|
+
intentmedia-capybara-webkit (0.7.2.4) 1796 6245 http://github.com/thoughtbot/capybara-webkit
|
101
|
+
...
|
93
102
|
```
|
94
103
|
|
95
|
-
###
|
96
|
-
gem-search `keyword' -
|
97
|
-
|
98
|
-
or
|
99
|
-
|
100
|
-
gem-search `keyword' --detail
|
104
|
+
### Do not show Homepage URL
|
105
|
+
gem-search `keyword' --no-homepage
|
101
106
|
|
102
107
|
e.g.:
|
103
108
|
```
|
104
109
|
$ gem-search webkit -d
|
105
|
-
NAME DL(ver) DL(all)
|
106
|
-
-------------------------------------------------- -------- ---------
|
107
|
-
capybara-webkit (1.
|
108
|
-
jasmine-headless-webkit (0.8.4)
|
109
|
-
guard-jasmine-headless-webkit (0.3.2)
|
110
|
-
rspec-formatter-webkit (2.
|
111
|
-
|
112
|
-
webkit-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
webkit-gtk2 (2.2.0) 282 3976 http://ruby-gnome2.sourceforge.jp/
|
117
|
-
webkit-rspec-formatter (2.0.2) 1417 3614 http://deveiate.org/webkit-rspec-formatter.html
|
118
|
-
gtk_webkit_pdf (0.0.2.2) 698 3314 https://github.com/mohanraj-ramanujam/gtk_webkit_pdf
|
119
|
-
otherinbox-capybara-webkit (0.12.0.1) 2343 3145 http://github.com/thoughtbot/capybara-webkit
|
120
|
-
jasmine-headless-webkit-firstbanco (0.9.0.rc.4) 179 1591
|
121
|
-
webkit_remote_unstable (0.1.3) 222 1295 http://github.com/pwnall/webkit_remote_unstable
|
122
|
-
imseng-capybara-webkit (0.12.1) 549 549 http://github.com/imseng/capybara-webkit
|
123
|
-
bitium-capybara-webkit (1.1.1) 388 388 http://github.com/thoughtbot/capybara-webkit
|
124
|
-
node-webkit-bootstrap (1.0.0) 226 226 https://github.com/audiosocket/node-webkit-bootstrap
|
110
|
+
NAME DL(ver) DL(all)
|
111
|
+
-------------------------------------------------- -------- ---------
|
112
|
+
capybara-webkit (1.8.0) 15325 2568165
|
113
|
+
jasmine-headless-webkit (0.8.4) 245135 323210
|
114
|
+
guard-jasmine-headless-webkit (0.3.2) 70738 89707
|
115
|
+
rspec-formatter-webkit (2.6.0) 355 23294
|
116
|
+
webkit-gtk (3.0.7) 452 15734
|
117
|
+
webkit-gtk2 (3.0.7) 487 12862
|
118
|
+
webkit_remote (0.5.5) 866 12030
|
119
|
+
gtk-webkit-ruby (0.0.8) 1644 8063
|
120
|
+
...
|
125
121
|
```
|
126
122
|
|
127
123
|
### Browse
|
128
124
|
It open rubygem's homepage in the system's default web browser.
|
129
125
|
|
130
126
|
gem-search -b `keyword'
|
131
|
-
|
132
|
-
or
|
133
|
-
|
134
127
|
gem-search --browse `keyword'
|
135
128
|
|
136
129
|
|
@@ -35,7 +35,7 @@ module GemSearch
|
|
35
35
|
])
|
36
36
|
opts.string('-s', '--sort', sort_msg)
|
37
37
|
opts.string('-b', '--browse', "Open rubygem's homepage in the system's default web browser.")
|
38
|
-
opts.on('-
|
38
|
+
opts.on('--no-homepage', "Do not show rubygems's homepage url.")
|
39
39
|
opts.on('-v', '--version', 'Display the version.')
|
40
40
|
opts.on('-h', '--help', 'Display this help message.')
|
41
41
|
end
|
data/lib/gem_search/executor.rb
CHANGED
data/lib/gem_search/rendering.rb
CHANGED
@@ -7,8 +7,8 @@ module GemSearch
|
|
7
7
|
base.extend(self)
|
8
8
|
end
|
9
9
|
|
10
|
-
def render(gems,
|
11
|
-
@
|
10
|
+
def render(gems, has_homepage)
|
11
|
+
@has_homepage = has_homepage
|
12
12
|
ruled_line_size(gems)
|
13
13
|
render_header
|
14
14
|
render_body(gems)
|
@@ -27,7 +27,7 @@ module GemSearch
|
|
27
27
|
fmt = "%-#{f[0]}s %#{f[1]}s %#{f[2]}s"
|
28
28
|
titles = ['NAME', 'DL(ver)', 'DL(all)']
|
29
29
|
hyphens = f[0, 3].map { |field| '-' * field }
|
30
|
-
if @
|
30
|
+
if @has_homepage
|
31
31
|
fmt << " %-#{f[3]}s"
|
32
32
|
titles << 'HOMEPAGE'
|
33
33
|
hyphens << '-' * f[3]
|
@@ -39,14 +39,14 @@ module GemSearch
|
|
39
39
|
def render_body(gems)
|
40
40
|
f = @ruled_line_size
|
41
41
|
fmt = "%-#{f[0]}s %#{f[1]}d %#{f[2]}d"
|
42
|
-
fmt << " %-#{f[3]}s" if @
|
42
|
+
fmt << " %-#{f[3]}s" if @has_homepage
|
43
43
|
gems.each do |gem|
|
44
44
|
columns = [
|
45
45
|
"#{gem['name']} (#{gem['version']})",
|
46
46
|
gem['version_downloads'],
|
47
47
|
gem['downloads']
|
48
48
|
]
|
49
|
-
columns << gem['homepage_uri'] if @
|
49
|
+
columns << gem['homepage_uri'] if @has_homepage
|
50
50
|
puts fmt % columns
|
51
51
|
end
|
52
52
|
end
|
data/lib/gem_search/version.rb
CHANGED
data/spec/bin/gem_search_spec.rb
CHANGED
@@ -9,7 +9,7 @@ Usage: gem-search gem_name [options]
|
|
9
9
|
[v]er :DL(ver) e.g.: gem-search webkit -s v
|
10
10
|
[n]ame : e.g.: gem-search webkit -s n
|
11
11
|
-b, --browse Open rubygem's homepage in the system's default web browser.
|
12
|
-
-
|
12
|
+
--no-homepage Do not show rubygems's homepage url.
|
13
13
|
-v, --version Display the version.
|
14
14
|
-h, --help Display this help message.
|
15
15
|
EOS
|
data/spec/commands/run_spec.rb
CHANGED
@@ -12,7 +12,7 @@ RSpec.describe Commands::Run do
|
|
12
12
|
describe '#call' do
|
13
13
|
before do
|
14
14
|
allow(options).to receive(:arguments).and_return([query])
|
15
|
-
allow(options).to receive(:
|
15
|
+
allow(options).to receive(:[]).with('no-homepage')
|
16
16
|
allow(options).to receive(:[]).with('sort')
|
17
17
|
stub_request_search(query, 1, dummy_search_result)
|
18
18
|
stub_request_search_no_result_with_page(query, 2)
|
data/spec/executor_spec.rb
CHANGED
@@ -19,7 +19,7 @@ RSpec.describe Executor do
|
|
19
19
|
it { expect { executor.search(query, default_opts) }.to raise_error(LibraryNotFound) }
|
20
20
|
end
|
21
21
|
|
22
|
-
describe 'with
|
22
|
+
describe 'with no-homepage' do
|
23
23
|
before do
|
24
24
|
stub_request_search(query, 1, dummy_search_result)
|
25
25
|
stub_request_search_no_result_with_page(query, 2)
|
@@ -30,13 +30,13 @@ RSpec.describe Executor do
|
|
30
30
|
it 'display rubygems ordering by DL(all)' do
|
31
31
|
res = <<-'EOS'.unindent
|
32
32
|
|Searching .
|
33
|
-
|NAME DL(ver) DL(all)
|
34
|
-
|-------------------------------------------------- -------- ---------
|
35
|
-
|factory_girl (3.6.0) 541 2042859
|
36
|
-
|factory_girl_rails (3.5.0) 39724 1238780
|
37
|
-
|factory_girl_generator (0.0.3) 8015 15547
|
33
|
+
|NAME DL(ver) DL(all)
|
34
|
+
|-------------------------------------------------- -------- ---------
|
35
|
+
|factory_girl (3.6.0) 541 2042859
|
36
|
+
|factory_girl_rails (3.5.0) 39724 1238780
|
37
|
+
|factory_girl_generator (0.0.3) 8015 15547
|
38
38
|
EOS
|
39
|
-
expect { executor.search(query, default_opts(
|
39
|
+
expect { executor.search(query, default_opts(has_homepage: false)) }.to output(res).to_stdout
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
@@ -52,11 +52,11 @@ RSpec.describe Executor do
|
|
52
52
|
it 'display rubygems ordering by DL(all)' do
|
53
53
|
res = <<-'EOS'.unindent
|
54
54
|
|Searching .
|
55
|
-
|NAME DL(ver) DL(all)
|
56
|
-
|-------------------------------------------------- -------- ---------
|
57
|
-
|factory_girl (3.6.0) 541 2042859
|
58
|
-
|factory_girl_rails (3.5.0) 39724 1238780
|
59
|
-
|factory_girl_generator (0.0.3) 8015 15547
|
55
|
+
|NAME DL(ver) DL(all) HOMEPAGE
|
56
|
+
|-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
57
|
+
|factory_girl (3.6.0) 541 2042859 https://github.com/thoughtbot/factory_girl
|
58
|
+
|factory_girl_rails (3.5.0) 39724 1238780 http://github.com/thoughtbot/factory_girl_rails
|
59
|
+
|factory_girl_generator (0.0.3) 8015 15547 http://github.com/leshill/factory_girl_generator
|
60
60
|
EOS
|
61
61
|
expect { executor.search(query, default_opts) }.to output(res).to_stdout
|
62
62
|
end
|
@@ -66,11 +66,11 @@ RSpec.describe Executor do
|
|
66
66
|
it 'display rubygems ordering by DL(all)' do
|
67
67
|
res = <<-'EOS'.unindent
|
68
68
|
|Searching .
|
69
|
-
|NAME DL(ver) DL(all)
|
70
|
-
|-------------------------------------------------- -------- ---------
|
71
|
-
|factory_girl (3.6.0) 541 2042859
|
72
|
-
|factory_girl_rails (3.5.0) 39724 1238780
|
73
|
-
|factory_girl_generator (0.0.3) 8015 15547
|
69
|
+
|NAME DL(ver) DL(all) HOMEPAGE
|
70
|
+
|-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
71
|
+
|factory_girl (3.6.0) 541 2042859 https://github.com/thoughtbot/factory_girl
|
72
|
+
|factory_girl_rails (3.5.0) 39724 1238780 http://github.com/thoughtbot/factory_girl_rails
|
73
|
+
|factory_girl_generator (0.0.3) 8015 15547 http://github.com/leshill/factory_girl_generator
|
74
74
|
EOS
|
75
75
|
expect { executor.search(query, default_opts) }.to output(res).to_stdout
|
76
76
|
end
|
@@ -80,11 +80,11 @@ RSpec.describe Executor do
|
|
80
80
|
it 'display rubygems ordering by DL(ver)' do
|
81
81
|
res = <<-'EOS'.unindent
|
82
82
|
|Searching .
|
83
|
-
|NAME DL(ver) DL(all)
|
84
|
-
|-------------------------------------------------- -------- ---------
|
85
|
-
|factory_girl_rails (3.5.0) 39724 1238780
|
86
|
-
|factory_girl_generator (0.0.3) 8015 15547
|
87
|
-
|factory_girl (3.6.0) 541 2042859
|
83
|
+
|NAME DL(ver) DL(all) HOMEPAGE
|
84
|
+
|-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
85
|
+
|factory_girl_rails (3.5.0) 39724 1238780 http://github.com/thoughtbot/factory_girl_rails
|
86
|
+
|factory_girl_generator (0.0.3) 8015 15547 http://github.com/leshill/factory_girl_generator
|
87
|
+
|factory_girl (3.6.0) 541 2042859 https://github.com/thoughtbot/factory_girl
|
88
88
|
EOS
|
89
89
|
expect { executor.search(query, default_opts(sort: 'version_downloads')) }.to output(res).to_stdout
|
90
90
|
end
|
@@ -94,11 +94,11 @@ RSpec.describe Executor do
|
|
94
94
|
it 'display rubygems ordering by name' do
|
95
95
|
res = <<-'EOS'.unindent
|
96
96
|
|Searching .
|
97
|
-
|NAME DL(ver) DL(all)
|
98
|
-
|-------------------------------------------------- -------- ---------
|
99
|
-
|factory_girl (3.6.0) 541 2042859
|
100
|
-
|factory_girl_generator (0.0.3) 8015 15547
|
101
|
-
|factory_girl_rails (3.5.0) 39724 1238780
|
97
|
+
|NAME DL(ver) DL(all) HOMEPAGE
|
98
|
+
|-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
99
|
+
|factory_girl (3.6.0) 541 2042859 https://github.com/thoughtbot/factory_girl
|
100
|
+
|factory_girl_generator (0.0.3) 8015 15547 http://github.com/leshill/factory_girl_generator
|
101
|
+
|factory_girl_rails (3.5.0) 39724 1238780 http://github.com/thoughtbot/factory_girl_rails
|
102
102
|
EOS
|
103
103
|
expect { executor.search(query, default_opts(sort: 'name')) }.to output(res).to_stdout
|
104
104
|
end
|
@@ -116,71 +116,71 @@ RSpec.describe Executor do
|
|
116
116
|
it 'display rubygems ordering by name' do
|
117
117
|
res = <<-'EOS'.unindent
|
118
118
|
|Searching ...
|
119
|
-
|NAME DL(ver) DL(all)
|
120
|
-
|-------------------------------------------------- -------- ---------
|
121
|
-
|autotest-cucumber-notification (0.0.6) 1027 3607
|
122
|
-
|calabash-cucumber-cn (0.0.6) 88 88
|
123
|
-
|cucumber-ajaxer (0.0.4) 1875 4966
|
124
|
-
|cucumber-api-steps (0.13) 1783 36587
|
125
|
-
|cucumber-blanket (0.3.0) 324 1674
|
126
|
-
|cucumber-cafe (0.0.1) 295 295
|
127
|
-
|cucumber-chef (3.0.8) 1545 28881
|
128
|
-
|cucumber-cinema (0.8.0) 1309 9294
|
129
|
-
|cucumber-core (0.2.0) 316 683
|
130
|
-
|cucumber-core (0.2.0) 316 683
|
131
|
-
|cucumber-debug (0.0.1) 1702 1702
|
132
|
-
|cucumber-en_snippet (0.0.2) 295 565
|
133
|
-
|cucumber-farmer (1.0.3) 1573 4398
|
134
|
-
|cucumber-formatter-oneline (0.1.0) 413 413
|
135
|
-
|cucumber-in-the-yard (1.7.8) 2107 33260
|
136
|
-
|cucumber-java (0.0.2) 2113 3656
|
137
|
-
|cucumber-jira (0.0.1.beta) 166 166
|
138
|
-
|cucumber-json (0.0.2) 2199 3697
|
139
|
-
|cucumber-jvm (1.1.6) 204 20913
|
140
|
-
|cucumber-loggly (0.3.1) 903 4869
|
141
|
-
|cucumber-mingle (1.0.0) 1539 1539
|
142
|
-
|cucumber-nagios (0.9.2) 27094 75277
|
143
|
-
|cucumber-nc (0.0.2) 162 1362
|
144
|
-
|cucumber-newrelic (0.0.2) 1694 3201
|
145
|
-
|cucumber-notify (0.0.5) 1168 3348
|
146
|
-
|cucumber-openerpscenario (0.1.9.1) 1110 11064
|
147
|
-
|cucumber-peel (0.0.1) 1000 1000
|
148
|
-
|cucumber-pride (0.0.2) 1272 2321
|
149
|
-
|cucumber-profiler (1.0.0) 1171 1171
|
150
|
-
|cucumber-puppet (0.3.7) 2974 24374
|
151
|
-
|cucumber-rails (1.4.0) 286328 2700475
|
152
|
-
|cucumber-rails-training-wheels (1.0.0) 109001 109001
|
153
|
-
|cucumber-rails2 (0.3.5) 10776 13172
|
154
|
-
|cucumber-rapid7 (0.0.1.beta.1) 101 430
|
155
|
-
|cucumber-rapid7 (0.0.1.beta.1) 101 430
|
156
|
-
|cucumber-relizy (0.0.2) 1433 2502
|
157
|
-
|cucumber-salad (0.4.0) 488 5326
|
158
|
-
|cucumber-salad (0.4.0) 488 5326
|
159
|
-
|cucumber-scout (0.0.2) 1634 3124
|
160
|
-
|cucumber-screenshot (0.3.4) 2241 15704
|
161
|
-
|cucumber-selenium-standalone (0.0.3) 1322 3593
|
162
|
-
|cucumber-sinatra (0.5.0) 8463 28042
|
163
|
-
|cucumber-slice (0.0.2) 629 1199
|
164
|
-
|cucumber-slices (0.0.4) 172 649
|
165
|
-
|cucumber-sshd (0.1.0) 152 152
|
166
|
-
|cucumber-standalone (0.0.1) 1665 1665
|
167
|
-
|cucumber-step_writer (0.1.2) 1251 3229
|
168
|
-
|cucumber-table (0.0.1) 527 527
|
169
|
-
|cucumber-the (1.0.0) 1209 1209
|
170
|
-
|cucumber-timecop (0.0.3) 445 820
|
171
|
-
|cucumber-timed_formatter (0.1.1) 1066 2165
|
172
|
-
|cucumber-to-rally (0.1.3) 1001 3894
|
173
|
-
|cucumber-usual_suspects (0.0.1) 1378 1378
|
174
|
-
|cucumber-value (0.0.1) 1233 1233
|
175
|
-
|cucumber-vimscript (0.0.3) 1097 3316
|
176
|
-
|cucumber-voip (0.1.0) 1244 1244
|
177
|
-
|cucumber-websteps (0.10.0) 18583 22129
|
178
|
-
|cucumber-wordpress (1.3.1) 1346 7458
|
179
|
-
|guard-cucumber-js (0.0.2) 1039 1935
|
180
|
-
|mattscilipoti-cucumber-rails (0.2.4.2) 1394 3989
|
181
|
-
|mattscilipoti_cucumber-rails (0.2.4) 1401 1401
|
182
|
-
|tasty-cucumber-client (0.1.10) 1504 11518
|
183
|
-
|vagrant-cucumber-host (0.1.14) 163 163
|
119
|
+
|NAME DL(ver) DL(all) HOMEPAGE
|
120
|
+
|-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
121
|
+
|autotest-cucumber-notification (0.0.6) 1027 3607 https://github.com/evrone/autotest-cucumber-notification
|
122
|
+
|calabash-cucumber-cn (0.0.6) 88 88 http://github.com/cpunion/calabash-cucumber-cn
|
123
|
+
|cucumber-ajaxer (0.0.4) 1875 4966 http://github.com/chalofa/cucumber-ajaxer
|
124
|
+
|cucumber-api-steps (0.13) 1783 36587 http://github.com/jayzes/cucumber-api-steps
|
125
|
+
|cucumber-blanket (0.3.0) 324 1674 https://github.com/keyvanfatehi/cucumber-blanket
|
126
|
+
|cucumber-cafe (0.0.1) 295 295
|
127
|
+
|cucumber-chef (3.0.8) 1545 28881 http://www.cucumber-chef.org
|
128
|
+
|cucumber-cinema (0.8.0) 1309 9294 http://github.com/ilyakatz/cucumber-cinema
|
129
|
+
|cucumber-core (0.2.0) 316 683 http://cukes.info
|
130
|
+
|cucumber-core (0.2.0) 316 683 http://cukes.info
|
131
|
+
|cucumber-debug (0.0.1) 1702 1702
|
132
|
+
|cucumber-en_snippet (0.0.2) 295 565 https://github.com/mtsmfm/cucumber-en_snippet
|
133
|
+
|cucumber-farmer (1.0.3) 1573 4398 http://github.com/mattscilipoti/cucumber-farmer
|
134
|
+
|cucumber-formatter-oneline (0.1.0) 413 413
|
135
|
+
|cucumber-in-the-yard (1.7.8) 2107 33260 http://github.com/burtlo/Cucumber-In-The-Yard
|
136
|
+
|cucumber-java (0.0.2) 2113 3656 http://cukes.info
|
137
|
+
|cucumber-jira (0.0.1.beta) 166 166 https://github.com/ipwnstuff/cucumber-jira
|
138
|
+
|cucumber-json (0.0.2) 2199 3697 http://github.com/jnewland/cucumber-json
|
139
|
+
|cucumber-jvm (1.1.6) 204 20913 http://github.com/cucumber/cucumber-jvm
|
140
|
+
|cucumber-loggly (0.3.1) 903 4869 https://github.com/brettweavnet/cucumber-loggly
|
141
|
+
|cucumber-mingle (1.0.0) 1539 1539
|
142
|
+
|cucumber-nagios (0.9.2) 27094 75277 http://cucumber-nagios.org/
|
143
|
+
|cucumber-nc (0.0.2) 162 1362 https://github.com/MrJoy/cucumber-nc
|
144
|
+
|cucumber-newrelic (0.0.2) 1694 3201 http://github.com/jnewland/cucumber-newrelic
|
145
|
+
|cucumber-notify (0.0.5) 1168 3348 https://github.com/argent-smith/autotest-cucumber-notification/tree/deprecated
|
146
|
+
|cucumber-openerpscenario (0.1.9.1) 1110 11064
|
147
|
+
|cucumber-peel (0.0.1) 1000 1000 https://github.com/testdouble/cucumber-peel
|
148
|
+
|cucumber-pride (0.0.2) 1272 2321 https://github.com/pvdb/cucumber-pride
|
149
|
+
|cucumber-profiler (1.0.0) 1171 1171 https://github.com/mblum14/cucumber-profiler
|
150
|
+
|cucumber-puppet (0.3.7) 2974 24374 http://projects.puppetlabs.com/projects/cucumber-puppet
|
151
|
+
|cucumber-rails (1.4.0) 286328 2700475 http://cukes.info
|
152
|
+
|cucumber-rails-training-wheels (1.0.0) 109001 109001 http://cukes.info
|
153
|
+
|cucumber-rails2 (0.3.5) 10776 13172 https://github.com/Vanuan/cucumber-rails
|
154
|
+
|cucumber-rapid7 (0.0.1.beta.1) 101 430 https://github.com/ecarey-r7/cucumber-rapid7
|
155
|
+
|cucumber-rapid7 (0.0.1.beta.1) 101 430 https://github.com/ecarey-r7/cucumber-rapid7
|
156
|
+
|cucumber-relizy (0.0.2) 1433 2502 https://github.com/wynst/cucumber-relizy
|
157
|
+
|cucumber-salad (0.4.0) 488 5326 https://github.com/mojotech/cucumber-salad
|
158
|
+
|cucumber-salad (0.4.0) 488 5326 https://github.com/mojotech/cucumber-salad
|
159
|
+
|cucumber-scout (0.0.2) 1634 3124 http://github.com/jnewland/cucumber-scout
|
160
|
+
|cucumber-screenshot (0.3.4) 2241 15704 http://github.com/mocoso/cucumber-screenshot
|
161
|
+
|cucumber-selenium-standalone (0.0.3) 1322 3593 http://github.com/techwhizbang/cucumber-selenium-standalone
|
162
|
+
|cucumber-sinatra (0.5.0) 8463 28042 http://github.com/bernd/cucumber-sinatra
|
163
|
+
|cucumber-slice (0.0.2) 629 1199 https://github.com/testdouble/cucumber-slice
|
164
|
+
|cucumber-slices (0.0.4) 172 649 http://github.com/psytau/cucumber-slices
|
165
|
+
|cucumber-sshd (0.1.0) 152 152 https://rubygems.org/gems/cucumber-sshd
|
166
|
+
|cucumber-standalone (0.0.1) 1665 1665 http://github.com/jnewland/cucumber-standalone
|
167
|
+
|cucumber-step_writer (0.1.2) 1251 3229
|
168
|
+
|cucumber-table (0.0.1) 527 527
|
169
|
+
|cucumber-the (1.0.0) 1209 1209
|
170
|
+
|cucumber-timecop (0.0.3) 445 820 https://github.com/zedtux/cucumber-timecop
|
171
|
+
|cucumber-timed_formatter (0.1.1) 1066 2165 http://github.com/kronn/cucumber-timed_formatter
|
172
|
+
|cucumber-to-rally (0.1.3) 1001 3894
|
173
|
+
|cucumber-usual_suspects (0.0.1) 1378 1378 http://github.com/mattwynne/cucumber-usual_suspects
|
174
|
+
|cucumber-value (0.0.1) 1233 1233 https://github.com/hatofmonkeys/cucumber-value
|
175
|
+
|cucumber-vimscript (0.0.3) 1097 3316 http://github.com/AndrewRadev/cucumber-vimscript
|
176
|
+
|cucumber-voip (0.1.0) 1244 1244 https://github.com/benlangfeld/cucumber-voip
|
177
|
+
|cucumber-websteps (0.10.0) 18583 22129 http://relishapp.com/kucaahbe/cucumber-websteps
|
178
|
+
|cucumber-wordpress (1.3.1) 1346 7458 http://github.com/dxw/cucumber-wordpress
|
179
|
+
|guard-cucumber-js (0.0.2) 1039 1935
|
180
|
+
|mattscilipoti-cucumber-rails (0.2.4.2) 1394 3989 http://github.com/aslakhellesoy/cucumber-rails
|
181
|
+
|mattscilipoti_cucumber-rails (0.2.4) 1401 1401 http://github.com/aslakhellesoy/cucumber-rails
|
182
|
+
|tasty-cucumber-client (0.1.10) 1504 11518 http://tasty-cucumber.com
|
183
|
+
|vagrant-cucumber-host (0.1.14) 163 163
|
184
184
|
EOS
|
185
185
|
expect { executor.search(query, default_opts(sort: 'name')) }.to output(res).to_stdout
|
186
186
|
end
|
@@ -196,9 +196,9 @@ RSpec.describe Executor do
|
|
196
196
|
it 'is 50 characters' do
|
197
197
|
res = <<-'EOS'.unindent
|
198
198
|
|Searching .
|
199
|
-
|NAME DL(ver) DL(all)
|
200
|
-
|-------------------------------------------------- -------- ---------
|
201
|
-
|size_is_42_2345678901234567890123456789012 (0.0.1) 100 1000
|
199
|
+
|NAME DL(ver) DL(all) HOMEPAGE
|
200
|
+
|-------------------------------------------------- -------- --------- ------------------------------------------------------------
|
201
|
+
|size_is_42_2345678901234567890123456789012 (0.0.1) 100 1000
|
202
202
|
EOS
|
203
203
|
expect { executor.search(query, default_opts) }.to output(res).to_stdout
|
204
204
|
end
|
@@ -213,9 +213,9 @@ RSpec.describe Executor do
|
|
213
213
|
it 'is 51 characters' do
|
214
214
|
res = <<-'EOS'.unindent
|
215
215
|
|Searching .
|
216
|
-
|NAME DL(ver) DL(all)
|
217
|
-
|--------------------------------------------------- -------- ---------
|
218
|
-
|size_is_43_23456789012345678901234567890123 (0.0.2) 200 2000
|
216
|
+
|NAME DL(ver) DL(all) HOMEPAGE
|
217
|
+
|--------------------------------------------------- -------- --------- ------------------------------------------------------------
|
218
|
+
|size_is_43_23456789012345678901234567890123 (0.0.2) 200 2000
|
219
219
|
EOS
|
220
220
|
expect { executor.search(query, default_opts) }.to output(res).to_stdout
|
221
221
|
end
|
data/spec/spec_helper.rb
CHANGED