From af24197a8fa4b51942c8bab860957477c17e4a1d Mon Sep 17 00:00:00 2001 From: Mohamad Abras Date: Mon, 19 Oct 2015 11:52:03 +0000 Subject: [PATCH 1/2] resolve 'exceeded available parameter key space' error --- lib/i18n_yaml_editor/app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/i18n_yaml_editor/app.rb b/lib/i18n_yaml_editor/app.rb index d196ef2..8738da4 100644 --- a/lib/i18n_yaml_editor/app.rb +++ b/lib/i18n_yaml_editor/app.rb @@ -25,6 +25,7 @@ def start store.create_missing_keys $stdout.puts " * Starting web editor at port 5050" + Rack::Utils.key_space_limit = 131072 # 2 times the default Rack::Server.start :app => Web, :Port => 5050 end From 0c1c5365af29291ff420f2a9d35a89a446e10d91 Mon Sep 17 00:00:00 2001 From: Mohamad Abras Date: Tue, 20 Oct 2015 11:43:35 +0000 Subject: [PATCH 2/2] fix new line yaml parser issue --- lib/i18n_yaml_editor/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i18n_yaml_editor/app.rb b/lib/i18n_yaml_editor/app.rb index 8738da4..5cdc3d3 100644 --- a/lib/i18n_yaml_editor/app.rb +++ b/lib/i18n_yaml_editor/app.rb @@ -40,7 +40,7 @@ def load_translations def save_translations files = store.to_yaml files.each {|file, yaml| - File.open(file, "w", encoding: "utf-8") {|f| f << yaml.to_yaml} + File.open(file, "w", encoding: "utf-8") {|f| f << yaml.to_yaml({:line_width => -1})} } end end