From 52bdf6f164ceecbb8b3a3f550b812ec735ed6fc1 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 19 May 2010 10:47:18 -0400 Subject: [PATCH] fix stupid bug, yanking old version --- CHANGELOG | 2 ++ lib/apache/apachify.rb | 2 +- spec/apachify_spec.rb | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index cef7b8d..6b25625 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. Another minor release, lots of improvements since 0.1. diff --git a/lib/apache/apachify.rb b/lib/apache/apachify.rb index 2493736..1dbd52f 100644 --- a/lib/apache/apachify.rb +++ b/lib/apache/apachify.rb @@ -56,7 +56,7 @@ class Symbol # Turn this into an option for IndexOptions def optionify 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 end diff --git a/spec/apachify_spec.rb b/spec/apachify_spec.rb index 011d70a..63cb03a 100644 --- a/spec/apachify_spec.rb +++ b/spec/apachify_spec.rb @@ -14,4 +14,12 @@ describe Apache::Apachify, "extends objects to apachify themselves" do input.apachify.should == output end end + + it "should optionify the symbol" do + [ + [ :not_multiviews, '-Multiviews' ] + ].each do |symbol, output| + symbol.optionify.should == output + end + end end