whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Different line break works better with Eclipse Ruby plugin
Date Sat, 05 May 2018 19:38:34 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5100246  Different line break works better with Eclipse Ruby plugin
5100246 is described below

commit 51002465a46cbca5c7a9fcf2760732144525d1c0
Author: Sebb <sebb@apache.org>
AuthorDate: Sat May 5 20:38:32 2018 +0100

    Different line break works better with Eclipse Ruby plugin
---
 tools/logparser.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/logparser.rb b/tools/logparser.rb
old mode 100644
new mode 100755
index cfc0474..df1f5e2
--- a/tools/logparser.rb
+++ b/tools/logparser.rb
@@ -65,8 +65,9 @@ module LogParser
   # @return array of reduced, scrubbed entries as hashes
   def parse_whimsy_access(f)
     access = read_logz(f).scan(/<%JSON:httpd_access%> (\{.*\})/).flatten
-    logs = JSON.parse('[' + access.join(',') + ']')
-      .reject{ |i| (i['useragent'] =~ /Ping My Box/) || (i['uri'] =~ Regexp.union(IGNORED_URIS))
|| (i['status'] == 304) }
+    logs = JSON.parse('[' + access.join(',') + ']').reject { |i| 
+      (i['useragent'] =~ /Ping My Box/) || (i['uri'] =~ Regexp.union(IGNORED_URIS)) || (i['status']
== 304) 
+    }
     logs.each do |i|
       %w(geo_country geo_long geo_lat geo_coords geo_city geo_combo duration request bytes
vhost document request_method clientip query_string).each do |g|
         i.delete(g)

-- 
To stop receiving notification emails like this one, please contact
sebb@apache.org.

Mime
View raw message