log_magic 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e299670152c7d651a2f1720a1727c50aba82cdbe
4
- data.tar.gz: cc43f159e7fc1e3cc53695f74a4e788b3f46e57d
2
+ SHA256:
3
+ metadata.gz: 98ff061d41795ff7684899e9e1984fc728daf8fb232d08e260df9c53178dc673
4
+ data.tar.gz: 34e95ff1d7c28da620e87282b0da61b6f57369d2625d007fd46ac3af2fa82986
5
5
  SHA512:
6
- metadata.gz: c819bc1d62d6ed760ba3b9f1d5845c9094644308f0f4d2bfdb272a40dfa823a9a5bb7583f536e5b4df5240b41e5ff6d949039888f98b0d50815a783c3f9ebe26
7
- data.tar.gz: a7adfac933522bdf12fd13be573db120851919b4c6fccb8b6b1d1fa34dd94e3c821515fc65b5ed276d3af353ad4497b751405fceca6bcdea91749d088a3172c1
6
+ metadata.gz: fb21d70d62b56ff18e03e49b83f482e5c28ae042050a47743a3a1fbae4511beff96a5e6f873a84ccc472e0928b782f12180804a5f9286a65ad833cf9ef39527f
7
+ data.tar.gz: 3f20c72666ee29c54bcaae62cc873e9ee1307ed5be15d0a3d678c99fbcb1d7a3f3aa740a9ed0d0a5e7eeccbd200f232fcdf75fa8a499fc2790f762387b679d53
@@ -1,2 +1,2 @@
1
- %a{href: 'https://www.techonthenet.com/mysql/is_null.php' }
1
+ %a{href: 'https://www.techonthenet.com/mysql/is_null.php', target: '_blank'}
2
2
  IS NULL
@@ -1,2 +1,2 @@
1
- %a{href: 'http://www.w3schools.com/sql/sql_orderby.asp'}
1
+ %a{href: 'http://www.w3schools.com/sql/sql_orderby.asp', target: '_blank'}
2
2
  ORDER BY
@@ -1,2 +1,2 @@
1
- %a{href: 'http://www.w3schools.com/sql/sql_select.asp'}
1
+ %a{href: 'http://www.w3schools.com/sql/sql_select.asp', target: '_blank'}
2
2
  SELECT
@@ -1,2 +1,2 @@
1
- %a{href: 'http://www.w3schools.com/sql/sql_where.asp'}
1
+ %a{href: 'http://www.w3schools.com/sql/sql_where.asp', target: '_blank'}
2
2
  WHERE
@@ -6,7 +6,7 @@ class LogMagic::BaseRefiner
6
6
  end
7
7
 
8
8
  def matches?
9
- lines.last =~ line_match_regex
9
+ lines.last.force_encoding("utf-8") =~ line_match_regex
10
10
  end
11
11
 
12
12
  def persistance_layer
@@ -19,7 +19,7 @@ class LogMagic::SearchkickRefiner < LogMagic::BaseRefiner
19
19
  end
20
20
 
21
21
  def extract_query_json
22
- @lines.last.match(/'.*'/)[0][1..-2]
22
+ @lines.last.match(/(?<=[^\{])\{.*\}/)[0]
23
23
  end
24
24
 
25
25
  def extract_elasticsearch_url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_magic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Korfmann
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  version: '0'
200
200
  requirements: []
201
201
  rubyforge_project:
202
- rubygems_version: 2.6.8
202
+ rubygems_version: 3.0.0.beta3
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: LogMagic explains your logs