ci_logger 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3ef69b1f08389623edc46eadeecb5caab6cd9cc5cf993b6eddf8f964c3b8908
4
- data.tar.gz: 5aa92e9108400d33f65c075996498030cd69922ec8d9e568ae8b2cb888954d54
3
+ metadata.gz: 8f459c5fc2f674fb9adeef07554be1b03c115c36d4f026fff22905281f105b1c
4
+ data.tar.gz: 1fc3918d0cd080e99a524c275fe9ffc56123e037d96ca42cf2646e03368d3824
5
5
  SHA512:
6
- metadata.gz: b792b58199a032f4cf4e1404f40e5625e5f34b7064b5a32e57299a4a6e285cd6116fce0d84b8a0439a2800052d5f0a931e682c4799e83771bd79ca383a3738a0
7
- data.tar.gz: e5215e8fa3f9c60928f8526858f0ad2f8f462954a9b39377193aec190cf60ee241ef157560f090be7e7c670d67cfac6dfde4f94e10f26de5d4bd042b5bb182fa
6
+ metadata.gz: af3bb9d05695f882c09c36ecc0c2ec32ea589cf7a95610e869e75cc066321e2ab62d8918c8478749e7ff2afceffaa43fd80daaf8481817b7acbad3433dd08a50
7
+ data.tar.gz: 00206716772e424b009a6543a0fab307fe81b2ac034240901bcaf0ee6ae72a4429cbef98ec17f88b97bb341d040ee53165ec101ff54681702b14c6ed543764ba
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # CiLogger
2
2
 
3
- We perform a significant number of tests using CI on a daily basis. Whenever a test fails, we need to examine the log. However, the current log output is excessively large, making it challenging to identify the root cause of the failed test.
3
+ In our CI process, we often look at logs to figure out issues with flaky tests—tests that fail sometimes but not always, especially when we can't make them fail in the same way on our own computers. The problem is, it's hard to tell which logs are about the failed tests because logs from tests that passed and failed are all mixed together.
4
4
 
5
- CiLogger specifically generates logs for failed tests, which proves invaluable during the investigation of test failures.
5
+ CiLogger makes this easier by only keeping logs from tests that didn't pass, including the tricky flaky ones. This means when a flaky test won't fail the same way for us locally, we can quickly find and look at the right logs to help us understand and fix the problem.
6
6
 
7
7
  ## prerequisite
8
8
 
9
9
  - rspec or minitest
10
- - rails(>= 6.0)
10
+ - rails(>= 6.1)
11
11
 
12
12
  ## Installation
13
13
 
@@ -45,7 +45,18 @@ your_logger.debug('debug!') # This is only output when the test fails
45
45
  ```
46
46
 
47
47
  ## Contributing
48
- Contribution directions go here.
48
+
49
+ We welcome contributions!
50
+
51
+ 1. Fork the repository and create a new branch.
52
+ 2. Make your changes and add tests if needed.
53
+ 3. Run tests to ensure everything works:
54
+ ```bash
55
+ $ bundle exec rake
56
+ ```
57
+ 4. Open a pull request on GitHub.
58
+
59
+ Thank you for your support!
49
60
 
50
61
  ## License
51
62
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -5,7 +5,14 @@ module CiLogger
5
5
 
6
6
  config.before_initialize do
7
7
  if CiLogger.enabled?
8
- Rails.logger = CiLogger::Logger.new(Rails.logger)
8
+ if defined?(ActiveSupport::BroadcastLogger) && Rails.logger.is_a?(ActiveSupport::BroadcastLogger)
9
+ Rails.logger.instance_variable_get(:@broadcasts).map! do |logger|
10
+ CiLogger::Logger.new(logger)
11
+ end
12
+ else
13
+ Rails.logger = CiLogger::Logger.new(Rails.logger)
14
+ end
15
+
9
16
  begin
10
17
  require "rspec/core"
11
18
  require "ci_logger/rspec/integration"
@@ -1,3 +1,3 @@
1
1
  module CiLogger
2
- VERSION = '0.8.0'
2
+ VERSION = '0.9.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - willnet
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2023-11-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: railties
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 6.0.0
18
+ version: 6.1.0
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: 6.0.0
25
+ version: 6.1.0
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rspec-rails
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -64,7 +63,6 @@ metadata:
64
63
  homepage_uri: https://github.com/willnet/ci_logger
65
64
  source_code_uri: https://github.com/willnet/ci_logger
66
65
  changelog_uri: https://github.com/willnet/ci_logger
67
- post_install_message:
68
66
  rdoc_options: []
69
67
  require_paths:
70
68
  - lib
@@ -79,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
77
  - !ruby/object:Gem::Version
80
78
  version: '0'
81
79
  requirements: []
82
- rubygems_version: 3.4.17
83
- signing_key:
80
+ rubygems_version: 3.6.7
84
81
  specification_version: 4
85
82
  summary: Faster logger for CI
86
83
  test_files: []