From 82d6567a3e11c708d06078b8256e95601b62577a Mon Sep 17 00:00:00 2001 From: Ryan Underwood Date: Mon, 20 Apr 2015 16:15:05 -0700 Subject: [PATCH 1/2] Stop translating underscores in configure args --- lib/fpm/cookery/utils.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/fpm/cookery/utils.rb b/lib/fpm/cookery/utils.rb index a0aa326d..76697495 100644 --- a/lib/fpm/cookery/utils.rb +++ b/lib/fpm/cookery/utils.rb @@ -24,7 +24,6 @@ def argument_build(*args) if args.last.is_a?(Hash) opts = args.pop args += opts.map{ |k,v| - option = k.to_s.gsub('_','-') if v == true "--#{option}" else From bfd203903b0d3b5a5ac46ad57874c319aba76bb1 Mon Sep 17 00:00:00 2001 From: Ryan Underwood Date: Tue, 21 Apr 2015 10:36:45 -0700 Subject: [PATCH 2/2] option doesn't exist anymore --- lib/fpm/cookery/utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fpm/cookery/utils.rb b/lib/fpm/cookery/utils.rb index 76697495..93296cc6 100644 --- a/lib/fpm/cookery/utils.rb +++ b/lib/fpm/cookery/utils.rb @@ -25,9 +25,9 @@ def argument_build(*args) opts = args.pop args += opts.map{ |k,v| if v == true - "--#{option}" + "--#{k}" else - "--#{option}=#{v}" + "--#{k}=#{v}" end } end