[SCM] vim-addon-manager packaging branch, master, updated. v0.4.4-61-gc962941
Antonio Terceiro
terceiro at debian.org
Thu Feb 2 18:07:15 UTC 2012
The following commit has been merged in the master branch:
commit c96294199693236f1eb5d323ced560a5505d5403
Author: Antonio Terceiro <terceiro at debian.org>
Date: Thu Feb 2 16:04:18 2012 -0200
Listing files in `vim-addons show`
diff --git a/features/show.feature b/features/show.feature
new file mode 100644
index 0000000..245fea3
--- /dev/null
+++ b/features/show.feature
@@ -0,0 +1,8 @@
+Feature: showing addons
+
+ Scenario: showing foo
+ When I run `vim-addons show foo`
+ Then vim-addons must output "Addon: foo"
+ And vim-addons must output "Description:.*"
+ And vim-addons must output " - syntax/foo.vim"
+ And vim-addons must output " - ftplugin/foo.vim"
diff --git a/features/step_definitions/steps.rb b/features/step_definitions/steps.rb
index 008daf6..5d19341 100644
--- a/features/step_definitions/steps.rb
+++ b/features/step_definitions/steps.rb
@@ -63,6 +63,10 @@ Then /^(.*) should not be installed anymore$/ do |addon|
installed_addon_files(addon).should be_empty
end
+Then /^vim-addons must output "([^"]*)"$/ do |text|
+ @stdout.should =~ Regexp.new(text)
+end
+
Then /^vim-addons should warn "([^"]*)"$/ do |text|
@stderr.should =~ Regexp.new(text)
end
@@ -70,3 +74,4 @@ end
Then /^the documentation should be indexed$/ do
Dir.glob(File.join($tmpdir, 'doc', 'tags')).should_not be_empty
end
+
diff --git a/lib/vim/addon_manager.rb b/lib/vim/addon_manager.rb
index 8200af2..81617b5 100644
--- a/lib/vim/addon_manager.rb
+++ b/lib/vim/addon_manager.rb
@@ -112,6 +112,7 @@ module Vim
puts "Addon: #{addon}"
puts "Status: #{addon.status(@target_dir)}"
puts "Description: #{addon.description}"
+ puts "Files:\n#{addon.files.map { |f| " - #{f}\n"}.join}"
puts ""
end
end
--
vim-addon-manager packaging
More information about the pkg-vim-maintainers
mailing list