ci_logger 0.2.0 → 0.2.1

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: 11629fb2dce2cdff3c3e940151e40efd927ac0b780981a644a03b493cee90131
4
- data.tar.gz: 277aab9b4b91ac63c8be5d2fc18cf7cc0ef6cd906f2d89e30dc8a6d721f504a2
3
+ metadata.gz: 89e72539f48e1d431cf0aea68bc94bc68f634ff387ab7f403e3a32b0dc8e5968
4
+ data.tar.gz: f702a6a73bdaacad98c3c145fe143479d7e5f2ba0eb30fddea8ba418c6007cec
5
5
  SHA512:
6
- metadata.gz: 03b4a46f290717e27a7c9a69141a5b31c96702983a19262a16e88224e7672167b900858f423f65fbce9f07ac00bce8791eca73f2299f0a234b24cc6542c86fec
7
- data.tar.gz: 5a0a4624f2541e88ba8ba2b65f105f9288d700c0eb03c3b089437df64269c8975d5cf469a77ffc0af0915f7d8df7c8cbb76dd351b837d9ebd2c9565a47af1c29
6
+ metadata.gz: 35e497db83054eb3fe825ab4ff04046e9fa1e9bb0960b7a4222975eb6896f8368397d352808d7bea4c6d3636016b71eeaec9327ae2fbd18d849905fd9a4d0fba
7
+ data.tar.gz: aec951a589e55cd68c65a5eeda83a5fe82f891c93df407017ae2bf487c82b8cb03beb545bf8c72231fdeba886a8805522104109ca03e025de36d5e254819e399
@@ -27,6 +27,14 @@ module CiLogger
27
27
  temporary_log.clear
28
28
  end
29
29
 
30
+ def formatter
31
+ @original.formatter
32
+ end
33
+
34
+ def formatter=(f)
35
+ @original.formatter = f
36
+ end
37
+
30
38
  private
31
39
 
32
40
  def temporary_log
@@ -9,7 +9,7 @@ module CiLogger
9
9
 
10
10
  RSpec.configure do |config|
11
11
  config.add_formatter 'progress'
12
- config.add_formatter ::CiLogger::Formatter
12
+ config.add_formatter ::CiLogger::RspecFormatter
13
13
  config.before do |example|
14
14
  Rails.logger.debug("start example at #{example.location}")
15
15
  end
@@ -1,7 +1,7 @@
1
1
  require "rspec/core"
2
2
 
3
3
  module CiLogger
4
- class Formatter
4
+ class RspecFormatter
5
5
  RSpec::Core::Formatters.register self, :example_passed, :example_pending, :example_failed
6
6
 
7
7
  def initialize(_out)
@@ -1,3 +1,3 @@
1
1
  module CiLogger
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
data/lib/ci_logger.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require "ci_logger/version"
2
2
  require "ci_logger/railtie"
3
3
  require "ci_logger/logger"
4
- require "ci_logger/formatter"
4
+ require "ci_logger/rspec_formatter"
5
5
 
6
6
  module CiLogger
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-24 00:00:00.000000000 Z
11
+ date: 2021-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -63,9 +63,9 @@ files:
63
63
  - README.md
64
64
  - Rakefile
65
65
  - lib/ci_logger.rb
66
- - lib/ci_logger/formatter.rb
67
66
  - lib/ci_logger/logger.rb
68
67
  - lib/ci_logger/railtie.rb
68
+ - lib/ci_logger/rspec_formatter.rb
69
69
  - lib/ci_logger/version.rb
70
70
  - lib/tasks/ci_logger_tasks.rake
71
71
  homepage: https://github.com/willnet/ci_logger