vim-flavor 0.0.0 → 0.0.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.
- data/lib/vim-flavor.rb +6 -1
- data/lib/vim-flavor/version.rb +1 -1
- data/spec/flavor_spec.rb +21 -0
- metadata +1 -1
data/lib/vim-flavor.rb
CHANGED
@@ -132,7 +132,12 @@ module Vim
|
|
132
132
|
cd '#{cached_repo_path}' &&
|
133
133
|
git checkout -f #{locked_version.inspect} &&
|
134
134
|
git checkout-index -a -f --prefix='#{deploy_path}/' &&
|
135
|
-
|
135
|
+
{
|
136
|
+
vim -u NONE -i NONE -n -N -e -s -c '
|
137
|
+
silent! helptags #{deploy_path}/doc
|
138
|
+
qall!
|
139
|
+
' || true
|
140
|
+
}
|
136
141
|
} 2>&1
|
137
142
|
]
|
138
143
|
if $? != 0 then
|
data/lib/vim-flavor/version.rb
CHANGED
data/spec/flavor_spec.rb
CHANGED
@@ -140,6 +140,27 @@ describe Vim::Flavor::Flavor do
|
|
140
140
|
File.exists?("#{@deploy_path}/doc/tags").should be_true
|
141
141
|
end
|
142
142
|
|
143
|
+
it 'should not :helptags if the plugin does not contain any document' do
|
144
|
+
create_a_test_repo(@test_repo_path)
|
145
|
+
@flavor.clone()
|
146
|
+
system(<<-"END")
|
147
|
+
{
|
148
|
+
cd '#{@flavor.cached_repo_path}' &&
|
149
|
+
rm -r doc &&
|
150
|
+
git commit -am 'Remove the document' &&
|
151
|
+
git tag -f '#{@flavor.locked_version}'
|
152
|
+
} >/dev/null 2>&1
|
153
|
+
END
|
154
|
+
|
155
|
+
File.exists?("#{@deploy_path}/doc").should be_false
|
156
|
+
File.exists?("#{@deploy_path}/doc/tags").should be_false
|
157
|
+
|
158
|
+
@flavor.deploy(@vimfiles_path)
|
159
|
+
|
160
|
+
File.exists?("#{@deploy_path}/doc").should be_false
|
161
|
+
File.exists?("#{@deploy_path}/doc/tags").should be_false
|
162
|
+
end
|
163
|
+
|
143
164
|
it 'should not care about existing content' do
|
144
165
|
create_a_test_repo(@test_repo_path)
|
145
166
|
@flavor.clone()
|