grntest 1.4.2 → 1.4.3

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
2
  SHA256:
3
- metadata.gz: 72bf123c2803dad061e343733c748d2c66ce4fb649e146cf089707b28bc24eb7
4
- data.tar.gz: 808f8b5ede307bab1f5e3e933944e487113b8f22272fe6226d3411986e9a2eac
3
+ metadata.gz: 84355faab0bb4ff5b7dbe5f1ef43a0ca2c93203fcd99b56282d0800a222a976e
4
+ data.tar.gz: c289cb84bdf272373db014e586ecfcb1ea9d3961ea48e6f6958bc430e1f493ad
5
5
  SHA512:
6
- metadata.gz: e39d5e003dd5ad5d48aa71b64b306c882413a27d873fb95c130cc00b5c4538271363f3a04cb44cfdd535a591c1c98479cc41a2558d5a0c7854bbb3793b6ce9b0
7
- data.tar.gz: c39924d196aa19cbdf0db12a7660ac6ed7b545e78b6c6852261b9f178b4acc899ba3c8f9ee875042f2700849a2ef3b3db915d72805f5a47552d6c8d358e593c7
6
+ metadata.gz: d71f9f4c07114875886817223c31c10309cfea941aafcef780fc34d3366688cccf6df1c36287b1b9019faa9d2727f6918267fa2758e040673145e230faa88080
7
+ data.tar.gz: 50627e7af040b161e34a6d2b756f4642940fb7b8a2fffbd0c1751d0fb9b240fa27a0c975ca6c57023f5a90c92616d7bb263497192d875040e17d68121da708ac
@@ -1,5 +1,11 @@
1
1
  # News
2
2
 
3
+ ## 1.4.3: 2020-05-31
4
+
5
+ ### Improvements
6
+
7
+ * Removed log normalization.
8
+
3
9
  ## 1.4.2: 2020-05-30
4
10
 
5
11
  ### Improvements
@@ -550,33 +550,14 @@ module Grntest
550
550
  end
551
551
  next if thread_log_message?(entry.message)
552
552
  next if ignore_log_message?(entry.message)
553
- log_level, message = normalize_log(entry)
553
+ log_level = entry.log_level
554
554
  formatted_log_level = format_log_level(log_level)
555
+ message = entry.message
555
556
  important_messages << "\#|#{formatted_log_level}| #{message}"
556
557
  end
557
558
  important_messages.join("\n")
558
559
  end
559
560
 
560
- def normalize_log(entry)
561
- case entry.message
562
- when /\A(\[io\]\[(?:open|close)\]) (.*?)<(.*?)>\z/
563
- tag = $1
564
- io_message = $2
565
- path = $3
566
- normalized_path = File.basename(path)
567
- normalized_message = "#{tag} #{io_message}<#{normalized_path}>"
568
- case entry.log_level
569
- when :information, :debug
570
- normalized_log_level = :dump
571
- else
572
- normalized_log_level = entry.log_level
573
- end
574
- [normalized_log_level, normalized_message]
575
- else
576
- [entry.log_level, entry.message]
577
- end
578
- end
579
-
580
561
  def read_all_readable_content(output, options={})
581
562
  content = ""
582
563
  first_timeout = options[:first_timeout] || @context.read_timeout
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grntest
17
- VERSION = "1.4.2"
17
+ VERSION = "1.4.3"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grntest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou