[Groonga-commit] groonga/groonga-log at 0eedc19 [master] Use double quote for string literal

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Nov 9 14:54:33 JST 2017


Kouhei Sutou	2017-11-09 14:54:33 +0900 (Thu, 09 Nov 2017)

  New Revision: 0eedc194f6bd61c79902b12c7aef7a43b045b194
  https://github.com/groonga/groonga-log/commit/0eedc194f6bd61c79902b12c7aef7a43b045b194

  Message:
    Use double quote for string literal

  Modified files:
    lib/groonga-log/parser.rb

  Modified: lib/groonga-log/parser.rb (+10 -10)
===================================================================
--- lib/groonga-log/parser.rb    2017-11-09 14:53:46 +0900 (edf1ec8)
+++ lib/groonga-log/parser.rb    2017-11-09 14:54:33 +0900 (acda124)
@@ -35,18 +35,18 @@ module GroongaLog
 
         statistic = Statistic.new
 
-        year = m['year'].to_i
-        month = m['month'].to_i
-        day = m['day'].to_i
-        hour = m['hour'].to_i
-        minute = m['minute'].to_i
-        second = m['second'].to_i
-        micro_second = m['micro_second'].to_i
+        year = m["year"].to_i
+        month = m["month"].to_i
+        day = m["day"].to_i
+        hour = m["hour"].to_i
+        minute = m["minute"].to_i
+        second = m["second"].to_i
+        micro_second = m["micro_second"].to_i
         statistic.timestamp = Time.local(year, month, day,
                                          hour, minute, second, micro_second)
-        statistic.log_level = log_level_to_symbol(m['log_level'])
-        statistic.pid = m['pid'].to_i if m['pid']
-        statistic.message = m['message']
+        statistic.log_level = log_level_to_symbol(m["log_level"])
+        statistic.pid = m["pid"].to_i if m["pid"]
+        statistic.message = m["message"]
         yield statistic
       end
     end
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171109/2d8fdaee/attachment.htm 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index