[Groonga-commit] ranguba/rroonga at 54e631a [master] Use RUBY_PLATFORM to get system information

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 31 13:53:49 JST 2015


Kouhei Sutou	2015-01-31 13:53:49 +0900 (Sat, 31 Jan 2015)

  New Revision: 54e631a29e1b56e1426ef819b51970bd9514b2ec
  https://github.com/ranguba/rroonga/commit/54e631a29e1b56e1426ef819b51970bd9514b2ec

  Message:
    Use RUBY_PLATFORM to get system information
    
    It's portable than uname.

  Modified files:
    test/groonga-test-utils.rb

  Modified: test/groonga-test-utils.rb (+1 -2)
===================================================================
--- test/groonga-test-utils.rb    2015-01-31 12:58:30 +0900 (d7b525f)
+++ test/groonga-test-utils.rb    2015-01-31 13:53:49 +0900 (95f7fb8)
@@ -166,8 +166,7 @@ module GroongaTestUtils
   end
 
   def linux?
-    operating_system = `uname -s`
-    operating_system =~ /Linux/
+    RUBY_PLATFORM =~ /linux/
   end
 
   def only_linux
-------------- next part --------------
HTML����������������������������...
Descargar 



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