diff --git a/lib/apache/config.rb b/lib/apache/config.rb index 7c88e80..ecc8183 100644 --- a/lib/apache/config.rb +++ b/lib/apache/config.rb @@ -59,7 +59,7 @@ module Apache def apachify(name) case name when String, Symbol - name.to_s.split("_").collect(&:capitalize).join.gsub('Ssl', 'SSL') + name.to_s.split("_").collect(&:capitalize).join.gsub('Ssl', 'SSL').gsub('Cgi', 'CGI') when Array name.collect { |n| apachify(n) } end diff --git a/spec/config_spec.rb b/spec/config_spec.rb index 8f29bdc..b889da7 100644 --- a/spec/config_spec.rb +++ b/spec/config_spec.rb @@ -30,6 +30,7 @@ describe Apache::Config, "should handle the basics of Apache config" do Apache::Config.apachify("test").should == "Test" Apache::Config.apachify("test_full_name").should == "TestFullName" Apache::Config.apachify("ssl_option").should == "SSLOption" + Apache::Config.apachify("exec_cgi").should == "ExecCGI" end it "should quoteize properly" do