[Groonga-commit] ranguba/chupa-text at 8c2f7eb [master] Add workaround for Ruby 2.3.3p222

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 12 14:46:42 JST 2017


Kouhei Sutou	2017-07-12 14:46:42 +0900 (Wed, 12 Jul 2017)

  New Revision: 8c2f7eb621ea85174263802f9b329154bdf7e2be
  https://github.com/ranguba/chupa-text/commit/8c2f7eb621ea85174263802f9b329154bdf7e2be

  Message:
    Add workaround for Ruby 2.3.3p222

  Modified files:
    lib/chupa-text/external-command.rb

  Modified: lib/chupa-text/external-command.rb (+12 -1)
===================================================================
--- lib/chupa-text/external-command.rb    2017-07-12 14:46:31 +0900 (6d3f38c)
+++ lib/chupa-text/external-command.rb    2017-07-12 14:46:42 +0900 (28e0869)
@@ -87,7 +87,18 @@ module ChupaText
         end
         limit_info = "soft-limit:#{soft_limit}, hard-limit:#{hard_limit}"
         info("#{log_tag}[#{key}][set] <#{value}>(#{limit_info})")
-        @options[:"rlimit_#{key}"] = value
+
+        # TODO: Workaround for Ruby 2.3.3p222
+        case key
+        when :cpu
+          @options[:rlimit_cpu] = value
+        when :rss
+          @options[:rlimit_rss] = value
+        when :as
+          @options[:rlimit_as] = value
+        else
+          @options[:"rlimit_#{key}"] = value
+        end
       end
 
       def parse_int(key, value)
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index