Kouhei Sutou
null+****@clear*****
Tue Jul 11 16:05:56 JST 2017
Kouhei Sutou 2017-07-11 16:05:56 +0900 (Tue, 11 Jul 2017) New Revision: 2481c4811558d6b2a8dd2698a2af98cb509e5bbf https://github.com/ranguba/chupa-text/commit/2481c4811558d6b2a8dd2698a2af98cb509e5bbf Message: Use CHUPA_TEXT prefix Modified files: lib/chupa-text/external-command.rb Modified: lib/chupa-text/external-command.rb (+4 -1) =================================================================== --- lib/chupa-text/external-command.rb 2017-07-11 15:55:20 +0900 (b491b7c) +++ lib/chupa-text/external-command.rb 2017-07-11 16:05:56 +0900 (82d537e) @@ -70,7 +70,10 @@ module ChupaText end def set_option(key, type) - value = ENV["CHUPA_EXTERNAL_COMMAND_LIMIT_#{key.to_s.upcase}"] + value = + ENV["CHUPA_TEXT_EXTERNAL_COMMAND_LIMIT_#{key.to_s.upcase}"] || + # For backward compatibility + ENV["CHUPA_EXTERNAL_COMMAND_LIMIT_#{key.to_s.upcase}"] return if value.nil? value = send("parse_#{type}", key, value) return if value.nil? -------------- next part -------------- HTML����������������������������... Télécharger