gelf_redux 4.1.0 → 4.3.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -11
  3. data/lib/gelf/logger.rb +2 -0
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57d76bb189630051d077fe40a3a2d43874a7676d3f95f5aaed03a005ef56be16
4
- data.tar.gz: 7b88ae493f27954f3ed240256d0b36ab4b48ae6824ca3db5c7fb60674c8cebed
3
+ metadata.gz: 23f21deaa67f35134cc3781a6b9b679cc05ae4d928e515735bdf66f4cd72cf21
4
+ data.tar.gz: 2da40c103efeb1ef11af459975eb83018803d84b2a74800a7a24af9d63439f48
5
5
  SHA512:
6
- metadata.gz: 3564a2ea60ad9c789973681c1b5c8901f95e5426b93790c6b8ad326881068e17afe60537c6d073b842bbb0fd92e7d557cc5c736df27c477fc3ebe45004c092fc
7
- data.tar.gz: db6846627445478383d496664454c1030865737503445ac3a20f04fc38d83ca18cac6c65c399fc6192d377df85f1becbe5b23a59c6a22320d073781a3e747887
6
+ metadata.gz: 16892359ef4116bd14fc889e8dd7bf57ab57c7dcc9a0c2a6584a1ae7184e8a72677bfcd4b3a2ac06d451da8054c5e76218e3352465fe1147f80c6c65ca929a6e
7
+ data.tar.gz: adca9b13b7e2d9b62a9df3ede951f462cdef810eb2587ef177a0263f21fd842f0575b5b4fb3021ca671c414e2d734f7ec8a6815b8fca333c0d549fad99436f73
data/README.md CHANGED
@@ -59,11 +59,7 @@ Since it's compatible with the Logger interface, you can also use it in your Rai
59
59
 
60
60
  * Fork the project.
61
61
  * Make your feature addition or bug fix.
62
- * Add tests for it. This is important so I don't break it in a future version unintentionally.
63
- * Run the tests with `bundle exec rake`
64
- * Commit, do not mess with rakefile, version, or history.
65
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
66
- * Send me a pull request. Bonus points for topic branches.
62
+ * Add tests for it. This is important so nothing breaks in a future version unintentionally.
67
63
 
68
64
  ## Contributions
69
65
  * Feel free to open up pull request
@@ -71,12 +67,30 @@ Since it's compatible with the Logger interface, you can also use it in your Rai
71
67
  ### Running the tests
72
68
  * install docker with compose
73
69
 
70
+ You can either run tests against the ruby versions defined in docker-compose.yml:
74
71
  ```bash
75
- # install gems
76
- docker-compose run --rm app bundle install
72
+ docker compose up
77
73
  ```
78
-
74
+ Or you can run a specific test:
79
75
  ```bash
80
- # run tests
81
- docker-compose up
82
- ```
76
+ docker compose up ruby26
77
+ ```
78
+
79
+ ### Create a release
80
+ - The VERSION file has to be updated to the new version number because it is used in gelf_redux.gemspec to
81
+ have a generic way of bumping the version
82
+ - CHANGELOG should be updated with a few hints about the release
83
+ - a release tag should be created from main branch after all PRs that will be part of the release have been merged
84
+ - creating a tag for the version is mandatory to be able to come back later for a fix-release if needed, example:
85
+ ```shell
86
+ git tag v4.2.0
87
+ git push origin main --tags
88
+ ```
89
+ #### For tags < 4.2.0
90
+ There is no automated way of pushing to rubygems, so we have to run these commands on a developers machine:
91
+ ```shell
92
+ gem build *.gemspec
93
+ gem push *.gem
94
+ ```
95
+ #### For tags >= 4.2.0
96
+ There is a github action for automated releases which will run as soon as a version tag has been pushed
data/lib/gelf/logger.rb CHANGED
@@ -14,6 +14,8 @@ module GELF
14
14
  progname = default_options['facility']
15
15
  end
16
16
 
17
+ message = formatter.call(level, Time.now, progname, message) if formatter.respond_to?(:call)
18
+
17
19
  message_hash = {}
18
20
  message_hash['facility'] = progname if progname
19
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gelf_redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Palazhchenko
@@ -11,10 +11,10 @@ authors:
11
11
  - Christian Rolle
12
12
  - Sebastian Seidel
13
13
  - Ronald Sacher
14
- autorequire:
14
+ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2024-09-09 00:00:00.000000000 Z
17
+ date: 2025-09-05 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: shoulda
@@ -151,7 +151,7 @@ homepage: https://github.com/manet-marketing/gelf_redux
151
151
  licenses:
152
152
  - MIT
153
153
  metadata: {}
154
- post_install_message:
154
+ post_install_message:
155
155
  rdoc_options: []
156
156
  require_paths:
157
157
  - lib
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.0.3
170
- signing_key:
169
+ rubygems_version: 3.4.19
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: Library to send GELF messages to Graylog logging server.
173
173
  test_files: []