fix stupid bug, yanking old version

This commit is contained in:
John Bintz 2010-05-19 10:47:18 -04:00
parent 98f302bf6c
commit 52bdf6f164
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,5 @@
v0.2.2. Fix a stupid bug, yanking old version.
v0.2.1. Lots of code cleanup and documentation added. v0.2.1. Lots of code cleanup and documentation added.
v0.2. Another minor release, lots of improvements since 0.1. v0.2. Another minor release, lots of improvements since 0.1.

View File

@ -56,7 +56,7 @@ class Symbol
# Turn this into an option for IndexOptions # Turn this into an option for IndexOptions
def optionify def optionify
output = self.apachify output = self.apachify
output = "-#{output[4..-1].apachify}" if self.to_s[0..3] == 'not_' output = "-#{output[3..-1]}" if self.to_s[0..3] == 'not_'
output output
end end

View File

@ -14,4 +14,12 @@ describe Apache::Apachify, "extends objects to apachify themselves" do
input.apachify.should == output input.apachify.should == output
end end
end end
it "should optionify the symbol" do
[
[ :not_multiviews, '-Multiviews' ]
].each do |symbol, output|
symbol.optionify.should == output
end
end
end end