bundler_bash_completion 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19746a42ea6966c27611f2a958c1fa66fb44b7eb
4
- data.tar.gz: bc08913741f7128c5d7833434fc124804d4cc80d
3
+ metadata.gz: ab7fb40ab822609d52fa65eca4973bdbb2e6aff6
4
+ data.tar.gz: fbf1ab18ab0e2ff356c3df71df50d6240de5ada1
5
5
  SHA512:
6
- metadata.gz: 3c40190b46d9ba12e9ccc044a3565f1262b4c0b79238a1212879cfffeb0c5ae4fb723af1122371519700a9c218c016c3c974ee8c844cf33fff8a23bffbcd19af
7
- data.tar.gz: 988c0af1e4ed0b2ee8d2401873f345d0a723273d67e1e7c6d01e1c05ccacbd4a833bb49e3ff6c8c6a96efae9c5aab970279f00309c1d5ac0f75057ffbad6090f
6
+ metadata.gz: 7138ff42c7fed892e390548edfc69564fcfc4598c1a0aa7597e329fd04bcae51991cc991ae4ddad7caa07517b94bb64bb8d75f3b88bc15c431489ebb827ba2e2
7
+ data.tar.gz: 6b31200e819bab9a9fdd9ad1416d931c10adb5e9ff679fa3dd9650dc0fa7ff97e2870a5d8684012aa504be768beae7b48f5e668e7756345fbb94e4de90398e70
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -9,14 +9,13 @@ Gem::Specification.new do |s|
9
9
  s.description = 'Provides bash completion for bundle command'
10
10
  s.license = 'MIT'
11
11
 
12
- s.rubyforge_project = 'bundler_bash_completion'
13
-
14
- s.files = `git ls-files`.split("\n")
15
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
12
+ s.files = `git ls-files | grep -vE '^(spec/|test/|\\.|Gemfile|Rakefile)'`.split("\n")
16
13
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
14
  s.require_paths = ['lib']
18
15
 
16
+ s.required_ruby_version = '>= 2.0.0'
17
+
19
18
  s.add_development_dependency 'byebug', '>= 9.0.0', '< 10.0.0'
20
- s.add_development_dependency 'rake', '>= 11.0.0', '< 12.0.0'
19
+ s.add_development_dependency 'rake', '>= 12.0.0', '< 13.0.0'
21
20
  s.add_development_dependency 'rspec', '>= 3.5.0', '< 4.0.0'
22
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler_bash_completion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Toulotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-01 00:00:00.000000000 Z
11
+ date: 2017-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug
@@ -36,20 +36,20 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 11.0.0
39
+ version: 12.0.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 12.0.0
42
+ version: 13.0.0
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 11.0.0
49
+ version: 12.0.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 12.0.0
52
+ version: 13.0.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -77,18 +77,12 @@ executables:
77
77
  extensions: []
78
78
  extra_rdoc_files: []
79
79
  files:
80
- - ".gitignore"
81
- - ".rspec"
82
- - Gemfile
83
80
  - MIT-LICENSE
84
81
  - README.mdown
85
- - Rakefile
86
82
  - VERSION
87
83
  - bin/complete_bundle_bash_command
88
84
  - bundler_bash_completion.gemspec
89
85
  - lib/bundler_bash_completion.rb
90
- - spec/bundler_bash_completion_spec.rb
91
- - spec/spec_helper.rb
92
86
  homepage: https://github.com/alexistoulotte/bundler_bash_completion
93
87
  licenses:
94
88
  - MIT
@@ -101,15 +95,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
95
  requirements:
102
96
  - - ">="
103
97
  - !ruby/object:Gem::Version
104
- version: '0'
98
+ version: 2.0.0
105
99
  required_rubygems_version: !ruby/object:Gem::Requirement
106
100
  requirements:
107
101
  - - ">="
108
102
  - !ruby/object:Gem::Version
109
103
  version: '0'
110
104
  requirements: []
111
- rubyforge_project: bundler_bash_completion
112
- rubygems_version: 2.5.1
105
+ rubyforge_project:
106
+ rubygems_version: 2.6.8
113
107
  signing_key:
114
108
  specification_version: 4
115
109
  summary: Bundler bash completion
data/.gitignore DELETED
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- /.bundle/
3
- /.ruby-version
4
- /Gemfile.lock
5
- /pkg/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --colour
2
- --order random
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require 'bundler'
2
- require 'rspec/core/rake_task'
3
-
4
- Bundler::GemHelper.install_tasks
5
-
6
- desc 'Default: runs specs.'
7
- task :default => :spec
8
-
9
- desc 'Run all specs in spec directory.'
10
- RSpec::Core::RakeTask.new(:spec)
@@ -1,304 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe BundlerBashCompletion do
4
-
5
- def completion(line = nil)
6
- BundlerBashCompletion.new(line)
7
- end
8
-
9
- describe '#arguments' do
10
-
11
- subject { completion('bundle exec rails s').arguments }
12
-
13
- it { should eq(['bundle', 'exec', 'rails', 's']) }
14
-
15
- end
16
-
17
- describe '#bins' do
18
-
19
- subject { completion.bins }
20
-
21
- it { should include('gem', 'ldiff', 'rake', 'rspec') }
22
- it { should_not include('rails') }
23
- it { should include('ruby') }
24
-
25
- end
26
-
27
- describe '#command' do
28
-
29
- it 'is first argument' do
30
- expect(completion('bundle exec').command).to eq('bundle')
31
- expect(completion('rake').command).to eq('rake')
32
- end
33
-
34
- it 'is empty string if line is blank' do
35
- expect(completion(nil).command).to eq('')
36
- end
37
-
38
- end
39
-
40
- describe '#complete' do
41
-
42
- context 'with "foo"' do
43
-
44
- subject { completion('foo').complete }
45
-
46
- it { should eq([]) }
47
-
48
- end
49
-
50
- context 'with "bundle"' do
51
-
52
- subject { completion('bundle').complete }
53
-
54
- it { should eq([]) }
55
-
56
- end
57
-
58
- context 'with "bundle "' do
59
-
60
- subject { completion('bundle ').complete }
61
-
62
- it { should include('check', 'outdated', 'list', 'show') }
63
-
64
- end
65
-
66
- context 'with "bundle "' do
67
-
68
- subject { completion('bundle ').complete }
69
-
70
- it { should include('check', 'outdated', 'list', 'show') }
71
-
72
- end
73
-
74
- context 'with "bundle in"' do
75
-
76
- subject { completion('bundle in').complete }
77
-
78
- it { should eq(['init', 'install']) }
79
-
80
- end
81
-
82
- context 'with "bundle in "' do
83
-
84
- subject { completion('bundle in ').complete }
85
-
86
- it { should eq([]) }
87
-
88
- end
89
-
90
- context 'with "bundle foo"' do
91
-
92
- subject { completion('bundle foo').complete }
93
-
94
- it { should eq([]) }
95
-
96
- end
97
-
98
- context 'with "bundle foo "' do
99
-
100
- subject { completion('bundle foo ').complete }
101
-
102
- it { should eq([]) }
103
-
104
- end
105
-
106
- context 'with "bundle install "' do
107
-
108
- subject { completion('bundle install ').complete }
109
-
110
- it { should include('--local', '--path', '--verbose', '--without') }
111
-
112
- end
113
-
114
- context 'with "bundle install --p"' do
115
-
116
- subject { completion('bundle install --p').complete }
117
-
118
- it { should eq(['--path']) }
119
-
120
- end
121
-
122
- context 'with "bundle install --path "' do
123
-
124
- subject { completion('bundle install --path ').complete }
125
-
126
- it { should eq([]) }
127
-
128
- end
129
-
130
- context 'with "bundle install --local "' do
131
-
132
- subject { completion('bundle install ').complete }
133
-
134
- it { should include('--local', '--path', '--without') }
135
-
136
- end
137
-
138
- context 'with "bundle help in"' do
139
-
140
- subject { completion('bundle help in').complete }
141
-
142
- it { should eq(['init', 'install']) }
143
-
144
- end
145
-
146
- context 'with "bundle help install "' do
147
-
148
- subject { completion('bundle help install ').complete }
149
-
150
- it { should eq([]) }
151
-
152
- end
153
-
154
- context 'with "bundle lock "' do
155
-
156
- subject { completion('bundle lock ').complete }
157
-
158
- it { should include('--update', '--verbose') }
159
-
160
- end
161
-
162
- context 'with "bundle show "' do
163
-
164
- subject { completion('bundle show ').complete }
165
-
166
- it { should include('diff-lcs', 'rake', 'rspec', '--verbose') }
167
-
168
- end
169
-
170
- context 'with "bundle show rspec "' do
171
-
172
- subject { completion('bundle show rspec ').complete }
173
-
174
- it { should eq(['--no-color', '--no-no-color', '--no-outdated', '--no-paths', '--no-verbose', '--outdated', '--paths', '--retry', '--verbose']) }
175
-
176
- end
177
-
178
- context 'with "bundle show foo "' do
179
-
180
- subject { completion('bundle show foo ').complete }
181
-
182
- it { should eq(['--no-color', '--no-no-color', '--no-outdated', '--no-paths', '--no-verbose', '--outdated', '--paths', '--retry', '--verbose']) }
183
-
184
- end
185
-
186
- context 'with "bundle update "' do
187
-
188
- subject { completion('bundle update ').complete }
189
-
190
- it { should include('diff-lcs', 'rake', 'rspec', '--verbose') }
191
-
192
- end
193
-
194
- context 'with "bundle update rake rspec "' do
195
-
196
- subject { completion('bundle update rake rspec ').complete }
197
-
198
- it { should include('bundler', 'diff-lcs', 'rspec-core', '--verbose') }
199
- it { should_not include('rake', 'rspec') }
200
-
201
- end
202
-
203
- context 'with "bundle exec "' do
204
-
205
- subject { completion('bundle exec ').complete }
206
-
207
- it { should include('ldiff', 'rake', 'rspec') }
208
- it { should_not include('--verbose') }
209
- it { should include('gem', 'ruby') }
210
-
211
- end
212
-
213
- context 'with "bundle exec foo "' do
214
-
215
- subject { completion('bundle exec foo ').complete }
216
-
217
- it { should eq([]) }
218
-
219
- end
220
-
221
- context 'with "bundle exec rake "' do
222
-
223
- subject { completion('bundle exec rake ').complete }
224
-
225
- it { should eq([]) }
226
-
227
- end
228
-
229
- end
230
-
231
- describe '#completion_word' do
232
-
233
- it 'is last word on line' do
234
- expect(completion('bundle instal').completion_word).to eq('instal')
235
- end
236
-
237
- it 'is an empty string if line ends with a white space' do
238
- expect(completion('bundle install ').completion_word).to eq('')
239
- expect(completion('bundle install ').completion_word).to eq('')
240
- end
241
-
242
- end
243
-
244
- describe '#gems' do
245
-
246
- subject { completion.gems }
247
-
248
- it { should include('bundler', 'rake', 'rspec', 'rspec-core', 'rspec-expectations') }
249
- it { should_not include('rails') }
250
-
251
- end
252
-
253
- describe '#line' do
254
-
255
- it 'is line given at initializion' do
256
- expect(completion('hello').line).to eq('hello')
257
- end
258
-
259
- it 'is frozen' do
260
- expect {
261
- completion('hello').line.gsub!('l', 'w')
262
- }.to raise_error(/can't modify frozen String/)
263
- end
264
-
265
- it 'is converted to string' do
266
- expect(completion(:hello).line).to eq('hello')
267
- end
268
-
269
- it 'first whitespaces are removed' do
270
- expect(completion(' hello').line).to eq('hello')
271
- end
272
-
273
- it 'last whitespaces are preserved' do
274
- expect(completion('hello ').line).to eq('hello ')
275
- end
276
-
277
- end
278
-
279
- describe '#task' do
280
-
281
- it 'is an empty string when not ending with a whitespace' do
282
- expect(completion('bundle install').task).to eq('')
283
- end
284
-
285
- it 'is task given by second argument if ending with a whitespace' do
286
- expect(completion('bundle install ').task).to eq('install')
287
- expect(completion('bundle foo ').task).to eq('foo')
288
- expect(completion('bundle help install ').task).to eq('help')
289
- end
290
-
291
- end
292
-
293
- describe '#task_options' do
294
-
295
- it 'is correct' do
296
- expect(completion('bundle install --path').task_options).to eq([])
297
- expect(completion('bundle install ').task_options).to eq([])
298
- expect(completion('bundle install --path fo').task_options).to eq(['--path'])
299
- expect(completion('bundle install --path fo ').task_options).to eq(['--path', 'fo'])
300
- end
301
-
302
- end
303
-
304
- end
data/spec/spec_helper.rb DELETED
@@ -1,6 +0,0 @@
1
- require File.expand_path("#{__dir__}/../lib/bundler_bash_completion")
2
- require 'byebug'
3
-
4
- RSpec.configure do |config|
5
- config.raise_errors_for_deprecations!
6
- end