vim-flavor 2.2.2 → 4.0.2
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 +5 -5
- data/.github/dependabot.yml +12 -0
- data/.github/workflows/ci.yml +35 -0
- data/.gitmodules +2 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.md +178 -0
- data/README.md +133 -45
- data/Rakefile +11 -0
- data/config/cucumber.yml +1 -0
- data/features/.nav +2 -1
- data/features/backward_compatibilities/flavorfile.feature +166 -0
- data/features/backward_compatibilities/lockfile.feature +22 -0
- data/features/branches/changing_tracking_branches.feature +0 -3
- data/features/branches/detect_incompatible_declarations.feature +0 -2
- data/features/branches/install.feature +0 -2
- data/features/branches/update.feature +0 -1
- data/features/caching/deployment.feature +1 -0
- data/features/flavorfile/README.md +1 -1
- data/features/flavorfile/comments.feature +0 -1
- data/features/flavorfile/groups.feature +0 -3
- data/features/flavorfile/repository_name.feature +2 -5
- data/features/flavorfile/version_constraint.feature +3 -7
- data/features/install_vim_flavor.md +6 -12
- data/features/news.md +1 -0
- data/features/philosophy.md +4 -4
- data/features/resolve_dependencies/README.md +4 -3
- data/features/resolve_dependencies/basics.feature +0 -4
- data/features/resolve_dependencies/upgrade_outdated_dependencies.feature +0 -2
- data/features/resolve_dependencies/version_conflict.feature +0 -2
- data/features/step_definitions/cli_steps.rb +6 -1
- data/features/step_definitions/dependency_steps.rb +2 -1
- data/features/step_definitions/directory_steps.rb +1 -1
- data/features/step_definitions/file_steps.rb +2 -2
- data/features/step_definitions/flavor_steps.rb +25 -9
- data/features/step_definitions/flavorfile_steps.rb +10 -1
- data/features/step_definitions/lockfile_steps.rb +14 -5
- data/features/support/env.rb +22 -12
- data/features/testing_vim_plugins/README.md +7 -6
- data/features/testing_vim_plugins/dependencies.feature +14 -15
- data/features/testing_vim_plugins/failures.feature +6 -6
- data/features/testing_vim_plugins/specifying_test_scripts.feature +12 -12
- data/features/testing_vim_plugins/typical_usage.feature +33 -10
- data/features/typical_usage/README.md +7 -7
- data/features/typical_usage/deploy_to_arbitrary_place.feature +0 -1
- data/features/typical_usage/install_vim_plugins.feature +0 -1
- data/features/typical_usage/uninstall_vim_plugins.feature +0 -1
- data/features/typical_usage/update_vim_plugins.feature +0 -3
- data/features/uninstall_vim_flavor.md +3 -4
- data/features/version_lock.feature +0 -1
- data/features/version_tag_format.feature +0 -4
- data/lib/vim-flavor/cli.rb +2 -2
- data/lib/vim-flavor/console.rb +22 -0
- data/lib/vim-flavor/env.rb +1 -1
- data/lib/vim-flavor/facade.rb +17 -48
- data/lib/vim-flavor/flavor.rb +1 -1
- data/lib/vim-flavor/flavorfile.rb +24 -1
- data/lib/vim-flavor/lockfile.rb +16 -1
- data/lib/vim-flavor/stringextension.rb +3 -11
- data/lib/vim-flavor/version.rb +1 -1
- data/lib/vim-flavor.rb +1 -1
- data/spec/branchversion_spec.rb +4 -4
- data/spec/stringextension_spec.rb +33 -2
- data/vim-flavor.gemspec +8 -5
- metadata +70 -26
- data/.travis.yml +0 -7
- data/features/news.md +0 -65
- data/features/step_definitions/bootstrap_script_steps.rb +0 -6
- data/spec/facade_spec.rb +0 -57
data/lib/vim-flavor/lockfile.rb
CHANGED
@@ -1,12 +1,26 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
module Vim
|
2
4
|
module Flavor
|
3
5
|
class LockFile
|
4
6
|
def self.load_or_new(lockfile_path)
|
5
7
|
l = new(lockfile_path)
|
6
|
-
l.load() if File.
|
8
|
+
l.load() if File.exist?(lockfile_path)
|
7
9
|
l
|
8
10
|
end
|
9
11
|
|
12
|
+
def self.path_from(dir_path, error)
|
13
|
+
lockfile_path = dir_path.to_lockfile_path
|
14
|
+
new_path = Pathname.new(lockfile_path).relative_path_from(Pathname.getwd())
|
15
|
+
old_path = new_path.dirname() / 'VimFlavor.lock'
|
16
|
+
|
17
|
+
if error and FileTest.exist?(old_path)
|
18
|
+
Console::error "#{old_path} is no longer used. Rename it to #{new_path}."
|
19
|
+
end
|
20
|
+
|
21
|
+
new_path.to_s
|
22
|
+
end
|
23
|
+
|
10
24
|
def initialize(path)
|
11
25
|
@path = path
|
12
26
|
end
|
@@ -38,6 +52,7 @@ module Vim
|
|
38
52
|
end
|
39
53
|
|
40
54
|
def save()
|
55
|
+
FileUtils.mkdir_p(File.dirname(@path))
|
41
56
|
File.open(@path, 'w') do |io|
|
42
57
|
lines = flavors.flat_map {|f| self.class.serialize_lock_status(f)}
|
43
58
|
lines.each do |line|
|
@@ -1,24 +1,16 @@
|
|
1
1
|
module Vim
|
2
2
|
module Flavor
|
3
3
|
module StringExtension
|
4
|
-
def to_bootstrap_path
|
5
|
-
"#{self}/bootstrap.vim"
|
6
|
-
end
|
7
|
-
|
8
|
-
def to_deps_path
|
9
|
-
"#{self}/deps"
|
10
|
-
end
|
11
|
-
|
12
4
|
def to_flavorfile_path
|
13
|
-
"#{self}/
|
5
|
+
"#{self}/Flavorfile"
|
14
6
|
end
|
15
7
|
|
16
8
|
def to_flavors_path
|
17
|
-
"#{self}/flavors"
|
9
|
+
"#{self}/pack/flavors/start"
|
18
10
|
end
|
19
11
|
|
20
12
|
def to_lockfile_path
|
21
|
-
"#{self}/
|
13
|
+
"#{self}/Flavorfile.lock"
|
22
14
|
end
|
23
15
|
|
24
16
|
def to_stash_path
|
data/lib/vim-flavor/version.rb
CHANGED
data/lib/vim-flavor.rb
CHANGED
data/spec/branchversion_spec.rb
CHANGED
@@ -18,10 +18,10 @@ module Vim
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'is not comparable' do
|
21
|
-
expect {v1 < v2}.to raise_error
|
22
|
-
expect {v1 <= v2}.to raise_error
|
23
|
-
expect {v1 > v2}.to raise_error
|
24
|
-
expect {v1 >= v2}.to raise_error
|
21
|
+
expect {v1 < v2}.to raise_error(NoMethodError)
|
22
|
+
expect {v1 <= v2}.to raise_error(NoMethodError)
|
23
|
+
expect {v1 > v2}.to raise_error(NoMethodError)
|
24
|
+
expect {v1 >= v2}.to raise_error(NoMethodError)
|
25
25
|
expect(v1 <=> v2).to be_nil
|
26
26
|
end
|
27
27
|
|
@@ -3,12 +3,43 @@ require 'spec_helper'
|
|
3
3
|
module Vim
|
4
4
|
module Flavor
|
5
5
|
describe StringExtension do
|
6
|
+
describe '#to_flavorfile_path' do
|
7
|
+
it 'extends a given path to a flavorfile' do
|
8
|
+
expect('cwd'.to_flavorfile_path).to be == 'cwd/Flavorfile'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe '#to_flavors_path' do
|
13
|
+
it 'extends a given path to a flavors path' do
|
14
|
+
expect('home/.vim'.to_flavors_path).to be == 'home/.vim/pack/flavors/start'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#to_lockfile_path' do
|
19
|
+
it 'extends a given path to a lockfile' do
|
20
|
+
expect('cwd'.to_lockfile_path).to be == 'cwd/Flavorfile.lock'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe '#to_stash_path' do
|
25
|
+
it 'extends a given path to a stash path' do
|
26
|
+
expect('home'.to_stash_path).to be == 'home/.vim-flavor'
|
27
|
+
expect('cwd'.to_stash_path).to be == 'cwd/.vim-flavor'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe '#to_vimfiles_path' do
|
32
|
+
it 'extends a given path to a vimfiles path' do
|
33
|
+
expect('home'.to_vimfiles_path).to be == 'home/.vim'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
6
37
|
describe '#zap' do
|
7
38
|
it 'replace unsafe characters with "_"' do
|
8
39
|
expect('fakeclip'.zap).to be == 'fakeclip'
|
9
40
|
expect('kana/vim-altr'.zap).to be == 'kana_vim-altr'
|
10
|
-
expect('
|
11
|
-
'
|
41
|
+
expect('https://example.com/foo.git'.zap).to be ==
|
42
|
+
'https___example.com_foo.git'
|
12
43
|
end
|
13
44
|
end
|
14
45
|
end
|
data/vim-flavor.gemspec
CHANGED
@@ -17,12 +17,15 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
|
+
spec.required_ruby_version = '~> 3.0'
|
20
21
|
|
21
|
-
spec.add_dependency('parslet', '
|
22
|
-
spec.add_dependency('
|
22
|
+
spec.add_dependency('parslet', '>= 1.8', '< 3.0')
|
23
|
+
spec.add_dependency('pastel', '~> 0.7')
|
24
|
+
spec.add_dependency('thor', '>= 0.20', '< 2.0')
|
23
25
|
|
24
|
-
spec.add_development_dependency('aruba', '~>
|
25
|
-
spec.add_development_dependency('cucumber', '~>
|
26
|
+
spec.add_development_dependency('aruba', '~> 2.0')
|
27
|
+
spec.add_development_dependency('cucumber', '~> 7.0')
|
26
28
|
spec.add_development_dependency('pry')
|
27
|
-
spec.add_development_dependency('
|
29
|
+
spec.add_development_dependency('relish', '~> 0.7')
|
30
|
+
spec.add_development_dependency('rspec', '~> 3.7')
|
28
31
|
end
|
metadata
CHANGED
@@ -1,71 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vim-flavor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kana Natsuno
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.8'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: pastel
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|
16
36
|
requirements:
|
17
37
|
- - "~>"
|
18
38
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
39
|
+
version: '0.7'
|
20
40
|
type: :runtime
|
21
41
|
prerelease: false
|
22
42
|
version_requirements: !ruby/object:Gem::Requirement
|
23
43
|
requirements:
|
24
44
|
- - "~>"
|
25
45
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
46
|
+
version: '0.7'
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: thor
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|
30
50
|
requirements:
|
31
|
-
- - "
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.20'
|
54
|
+
- - "<"
|
32
55
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
56
|
+
version: '2.0'
|
34
57
|
type: :runtime
|
35
58
|
prerelease: false
|
36
59
|
version_requirements: !ruby/object:Gem::Requirement
|
37
60
|
requirements:
|
38
|
-
- - "
|
61
|
+
- - ">="
|
39
62
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
63
|
+
version: '0.20'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '2.0'
|
41
67
|
- !ruby/object:Gem::Dependency
|
42
68
|
name: aruba
|
43
69
|
requirement: !ruby/object:Gem::Requirement
|
44
70
|
requirements:
|
45
71
|
- - "~>"
|
46
72
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
73
|
+
version: '2.0'
|
48
74
|
type: :development
|
49
75
|
prerelease: false
|
50
76
|
version_requirements: !ruby/object:Gem::Requirement
|
51
77
|
requirements:
|
52
78
|
- - "~>"
|
53
79
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
80
|
+
version: '2.0'
|
55
81
|
- !ruby/object:Gem::Dependency
|
56
82
|
name: cucumber
|
57
83
|
requirement: !ruby/object:Gem::Requirement
|
58
84
|
requirements:
|
59
85
|
- - "~>"
|
60
86
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
87
|
+
version: '7.0'
|
62
88
|
type: :development
|
63
89
|
prerelease: false
|
64
90
|
version_requirements: !ruby/object:Gem::Requirement
|
65
91
|
requirements:
|
66
92
|
- - "~>"
|
67
93
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
94
|
+
version: '7.0'
|
69
95
|
- !ruby/object:Gem::Dependency
|
70
96
|
name: pry
|
71
97
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,20 +106,34 @@ dependencies:
|
|
80
106
|
- - ">="
|
81
107
|
- !ruby/object:Gem::Version
|
82
108
|
version: '0'
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: relish
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0.7'
|
116
|
+
type: :development
|
117
|
+
prerelease: false
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0.7'
|
83
123
|
- !ruby/object:Gem::Dependency
|
84
124
|
name: rspec
|
85
125
|
requirement: !ruby/object:Gem::Requirement
|
86
126
|
requirements:
|
87
127
|
- - "~>"
|
88
128
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
129
|
+
version: '3.7'
|
90
130
|
type: :development
|
91
131
|
prerelease: false
|
92
132
|
version_requirements: !ruby/object:Gem::Requirement
|
93
133
|
requirements:
|
94
134
|
- - "~>"
|
95
135
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
136
|
+
version: '3.7'
|
97
137
|
description: A tool to manage your favorite Vim plugins
|
98
138
|
email:
|
99
139
|
- dev@whileimautomaton.net
|
@@ -102,17 +142,23 @@ executables:
|
|
102
142
|
extensions: []
|
103
143
|
extra_rdoc_files: []
|
104
144
|
files:
|
145
|
+
- ".github/dependabot.yml"
|
146
|
+
- ".github/workflows/ci.yml"
|
105
147
|
- ".gitignore"
|
106
148
|
- ".gitmodules"
|
107
149
|
- ".rspec"
|
108
|
-
- ".
|
150
|
+
- ".ruby-version"
|
151
|
+
- CHANGELOG.md
|
109
152
|
- Gemfile
|
110
153
|
- LICENSE
|
111
154
|
- README.md
|
112
155
|
- Rakefile
|
113
156
|
- bin/vim-flavor
|
157
|
+
- config/cucumber.yml
|
114
158
|
- features/.nav
|
115
159
|
- features/README.md
|
160
|
+
- features/backward_compatibilities/flavorfile.feature
|
161
|
+
- features/backward_compatibilities/lockfile.feature
|
116
162
|
- features/branches/README.md
|
117
163
|
- features/branches/changing_tracking_branches.feature
|
118
164
|
- features/branches/detect_incompatible_declarations.feature
|
@@ -137,7 +183,6 @@ files:
|
|
137
183
|
- features/resolve_dependencies/basics.feature
|
138
184
|
- features/resolve_dependencies/upgrade_outdated_dependencies.feature
|
139
185
|
- features/resolve_dependencies/version_conflict.feature
|
140
|
-
- features/step_definitions/bootstrap_script_steps.rb
|
141
186
|
- features/step_definitions/cli_steps.rb
|
142
187
|
- features/step_definitions/dependency_steps.rb
|
143
188
|
- features/step_definitions/directory_steps.rb
|
@@ -162,6 +207,7 @@ files:
|
|
162
207
|
- lib/vim-flavor.rb
|
163
208
|
- lib/vim-flavor/branchversion.rb
|
164
209
|
- lib/vim-flavor/cli.rb
|
210
|
+
- lib/vim-flavor/console.rb
|
165
211
|
- lib/vim-flavor/enumerableextension.rb
|
166
212
|
- lib/vim-flavor/env.rb
|
167
213
|
- lib/vim-flavor/facade.rb
|
@@ -176,7 +222,6 @@ files:
|
|
176
222
|
- lib/vim-flavor/versionconstraint.rb
|
177
223
|
- spec/branchversion_spec.rb
|
178
224
|
- spec/enumerableextension_spec.rb
|
179
|
-
- spec/facade_spec.rb
|
180
225
|
- spec/flavor_spec.rb
|
181
226
|
- spec/flavorfile_spec.rb
|
182
227
|
- spec/lockfile_spec.rb
|
@@ -190,29 +235,30 @@ homepage: https://github.com/kana/vim-flavor
|
|
190
235
|
licenses:
|
191
236
|
- MIT
|
192
237
|
metadata: {}
|
193
|
-
post_install_message:
|
238
|
+
post_install_message:
|
194
239
|
rdoc_options: []
|
195
240
|
require_paths:
|
196
241
|
- lib
|
197
242
|
required_ruby_version: !ruby/object:Gem::Requirement
|
198
243
|
requirements:
|
199
|
-
- - "
|
244
|
+
- - "~>"
|
200
245
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
246
|
+
version: '3.0'
|
202
247
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
248
|
requirements:
|
204
249
|
- - ">="
|
205
250
|
- !ruby/object:Gem::Version
|
206
251
|
version: '0'
|
207
252
|
requirements: []
|
208
|
-
|
209
|
-
|
210
|
-
signing_key:
|
253
|
+
rubygems_version: 3.2.27
|
254
|
+
signing_key:
|
211
255
|
specification_version: 4
|
212
256
|
summary: A tool to manage your favorite Vim plugins
|
213
257
|
test_files:
|
214
258
|
- features/.nav
|
215
259
|
- features/README.md
|
260
|
+
- features/backward_compatibilities/flavorfile.feature
|
261
|
+
- features/backward_compatibilities/lockfile.feature
|
216
262
|
- features/branches/README.md
|
217
263
|
- features/branches/changing_tracking_branches.feature
|
218
264
|
- features/branches/detect_incompatible_declarations.feature
|
@@ -237,7 +283,6 @@ test_files:
|
|
237
283
|
- features/resolve_dependencies/basics.feature
|
238
284
|
- features/resolve_dependencies/upgrade_outdated_dependencies.feature
|
239
285
|
- features/resolve_dependencies/version_conflict.feature
|
240
|
-
- features/step_definitions/bootstrap_script_steps.rb
|
241
286
|
- features/step_definitions/cli_steps.rb
|
242
287
|
- features/step_definitions/dependency_steps.rb
|
243
288
|
- features/step_definitions/directory_steps.rb
|
@@ -261,7 +306,6 @@ test_files:
|
|
261
306
|
- features/version_tag_format.feature
|
262
307
|
- spec/branchversion_spec.rb
|
263
308
|
- spec/enumerableextension_spec.rb
|
264
|
-
- spec/facade_spec.rb
|
265
309
|
- spec/flavor_spec.rb
|
266
310
|
- spec/flavorfile_spec.rb
|
267
311
|
- spec/lockfile_spec.rb
|
data/.travis.yml
DELETED
data/features/news.md
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
## vim-flavor 2.2.2
|
2
|
-
|
3
|
-
### Bug Fixes
|
4
|
-
|
5
|
-
* Fix `install`, `update` and `test` to work even if these commands are invoked
|
6
|
-
from non-bash shell.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
## vim-flavor 2.2.1
|
12
|
-
|
13
|
-
### Bug Fixes
|
14
|
-
|
15
|
-
* Fix not to fail fetching repositories which have non-fastforward updates.
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
## vim-flavor 2.2.0
|
21
|
-
|
22
|
-
### Enhancements
|
23
|
-
|
24
|
-
* `test` runs `*.vim` and `*.t` in a single step, to get a simplified result.
|
25
|
-
* `test` uses [vim-vspec](https://github.com/kana/vim-vspec) 1.5 or later by
|
26
|
-
default.
|
27
|
-
* `test` supports `--update-dependencies` to update dependencies before running
|
28
|
-
tests.
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
## vim-flavor 2.1.1
|
34
|
-
|
35
|
-
### Enhancements
|
36
|
-
|
37
|
-
* `install` and `update` skip checking versions of plugins which are
|
38
|
-
development dependencies.
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
## vim-flavor 2.1.0
|
44
|
-
|
45
|
-
### Enhancements
|
46
|
-
|
47
|
-
* `update` command is added. It is an alias of existing `upgrade` command.
|
48
|
-
Now it is recommended to use `update` rather than `upgrade`.
|
49
|
-
`upgrade` will be removed in a future version.
|
50
|
-
* `update` and `upgrade` learned to update specific plugins if repository names
|
51
|
-
are given as command-line arguments.
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
## vim-flavor 2.0.0
|
57
|
-
|
58
|
-
### Enhancements
|
59
|
-
|
60
|
-
* [Branches](./branches) are supported.
|
61
|
-
|
62
|
-
|
63
|
-
### Incompatible changes
|
64
|
-
|
65
|
-
* Ruby 2.0.0 or later is required to run vim-flavor.
|
data/spec/facade_spec.rb
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'spec_helper'
|
3
|
-
require 'tmpdir'
|
4
|
-
|
5
|
-
module Vim
|
6
|
-
module Flavor
|
7
|
-
describe Facade do
|
8
|
-
describe '#create_vim_script_for_bootstrap' do
|
9
|
-
around :each do |example|
|
10
|
-
Dir.mktmpdir do |tmp_path|
|
11
|
-
@tmp_path = tmp_path
|
12
|
-
example.run
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'creates a bootstrap script to configure runtimepath for flavors' do
|
17
|
-
flavors_path = @tmp_path.to_vimfiles_path.to_flavors_path
|
18
|
-
Facade.new().create_vim_script_for_bootstrap(flavors_path)
|
19
|
-
|
20
|
-
expect(File).to exist(flavors_path.to_bootstrap_path)
|
21
|
-
|
22
|
-
_rtp = %x{
|
23
|
-
for plugin_name in 'foo' 'bar' 'baz'
|
24
|
-
do
|
25
|
-
mkdir -p "#{flavors_path}/$plugin_name"
|
26
|
-
done
|
27
|
-
HOME='#{@tmp_path}' vim -u NONE -i NONE -n -N -e -s -c '
|
28
|
-
set verbose=1
|
29
|
-
let vimfiles_path = split(&runtimepath, ",")[0]
|
30
|
-
runtime flavors/bootstrap.vim
|
31
|
-
for path in split(&runtimepath, ",")
|
32
|
-
if stridx(path, vimfiles_path) == 0
|
33
|
-
echo substitute(path, vimfiles_path, "!", "")
|
34
|
-
endif
|
35
|
-
endfor
|
36
|
-
qall!
|
37
|
-
' 2>&1
|
38
|
-
}
|
39
|
-
rtps =
|
40
|
-
_rtp.
|
41
|
-
split(/[\r\n]/).
|
42
|
-
select {|p| p != ''}
|
43
|
-
expect(rtps).to be == [
|
44
|
-
'!',
|
45
|
-
'!/flavors/bar',
|
46
|
-
'!/flavors/baz',
|
47
|
-
'!/flavors/foo',
|
48
|
-
'!/flavors/foo/after',
|
49
|
-
'!/flavors/baz/after',
|
50
|
-
'!/flavors/bar/after',
|
51
|
-
'!/after',
|
52
|
-
]
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|