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 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
- vim -u NONE -i NONE -n -N -e -c 'helptags #{deploy_path}/doc | qall!'
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
@@ -1,5 +1,5 @@
1
1
  module Vim
2
2
  module Flavor
3
- VERSION = '0.0.0'
3
+ VERSION = '0.0.1'
4
4
  end
5
5
  end
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()
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vim-flavor
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.0
5
+ version: 0.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kana Natsuno