gelf_redux 4.1.0 → 4.2.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 +5 -10
  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: 34fdff35e2f2d6ca2f6a5058207daee386bd22cca506216cad1f1fb7180e1d7a
4
+ data.tar.gz: d5779e92ca36a31ef0cb87f4a1745433fe062d0839d21be82c74866c2617ce0b
5
5
  SHA512:
6
- metadata.gz: 3564a2ea60ad9c789973681c1b5c8901f95e5426b93790c6b8ad326881068e17afe60537c6d073b842bbb0fd92e7d557cc5c736df27c477fc3ebe45004c092fc
7
- data.tar.gz: db6846627445478383d496664454c1030865737503445ac3a20f04fc38d83ca18cac6c65c399fc6192d377df85f1becbe5b23a59c6a22320d073781a3e747887
6
+ metadata.gz: 0e3e2acb03645deb166d0850ba9f0e21e453a830cb30378a3153ec1ec00ed33ea257fd965a85bf7069838953281c4b89b9c937a6bde749e1b248b0e3a9ccf9eb
7
+ data.tar.gz: 7f576a99b7f4f410d0dba14b8329eb7ca29703a8ee25e349ecbb0614e8d044333d3597799261c25d0ba6100ed57c8e5492ade2f7e3de870fc03ec049ba4e2911
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,11 @@ 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
76
+ docker compose up ruby26
82
77
  ```
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.2.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: []