log_sanity 2.1.0 → 2.1.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: a31fa8ea5e6350b0402815d4953541aacce034d1d551161324ea69cf08c17027
4
- data.tar.gz: 2a159e4a522885f3b0490bdfb927339b9e7356e7674068a9b6dc48af639e9e5f
3
+ metadata.gz: 2aad47580de71bc5f808b70557881ed7134404f150e8b8c7893f33c3ef660327
4
+ data.tar.gz: 3cba5122b91fa6163d3d9e5e8b6cb537a577136e670ace442c30297a8ddd8a50
5
5
  SHA512:
6
- metadata.gz: d8abd35592d9be60aed4d17d62cd796aefa8499d929995b1724d7c5c64b5c4df472f23617c1e8ff8a8bfcf721f7d1303951c734575c03bcc93a7e78a709895ea
7
- data.tar.gz: bb0d38031237b63a970a7cdd07ba549aa3ab6a8bfb5dd4ab752a31bef51f09abc472284fcff6cecdfbb9a19004fe035f671739ed4e9f97ddc02c077a8f55473e
6
+ metadata.gz: 1112c2fdc532170c33d4288806f369f077ccc1f627345bbdb5d593a051480cd5417d875c475c545096261ec095e3d1c89ab9fe25174c1ae02c9f94e1f0f96d27
7
+ data.tar.gz: f653ecf13c53ed5b8a5a3a44af7353461488a6bc6c5cac9060fcc692d5c0ceb9528b1547054dfa8285e91f369bce1281e081cc6a0961cc45a36fa33773d9cec2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 2.1.1
2
+
3
+ - Report correct request method when Rails handles an exception
4
+
1
5
  #### 2.1.0
2
6
 
3
7
  - Require Rails 7.1.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- log_sanity (2.1.0)
4
+ log_sanity (2.1.1)
5
5
  rails (>= 7.1.2, < 7.2)
6
6
 
7
7
  GEM
@@ -96,10 +96,10 @@ GEM
96
96
  i18n (1.14.1)
97
97
  concurrent-ruby (~> 1.0)
98
98
  io-console (0.6.0)
99
- irb (1.9.0)
99
+ irb (1.9.1)
100
100
  rdoc
101
101
  reline (>= 0.3.8)
102
- loofah (2.21.4)
102
+ loofah (2.22.0)
103
103
  crass (~> 1.0.2)
104
104
  nokogiri (>= 1.12.0)
105
105
  mail (2.8.1)
@@ -111,7 +111,7 @@ GEM
111
111
  mini_mime (1.1.5)
112
112
  minitest (5.20.0)
113
113
  mutex_m (0.2.0)
114
- net-imap (0.4.4)
114
+ net-imap (0.4.6)
115
115
  date
116
116
  net-protocol
117
117
  net-pop (0.1.2)
@@ -120,12 +120,12 @@ GEM
120
120
  timeout
121
121
  net-smtp (0.4.0)
122
122
  net-protocol
123
- nio4r (2.5.9)
124
- nokogiri (1.15.4-arm64-darwin)
123
+ nio4r (2.6.1)
124
+ nokogiri (1.15.5-arm64-darwin)
125
125
  racc (~> 1.4)
126
- nokogiri (1.15.4-x86_64-darwin)
126
+ nokogiri (1.15.5-x86_64-darwin)
127
127
  racc (~> 1.4)
128
- nokogiri (1.15.4-x86_64-linux)
128
+ nokogiri (1.15.5-x86_64-linux)
129
129
  racc (~> 1.4)
130
130
  psych (5.1.1.1)
131
131
  stringio
@@ -9,7 +9,12 @@ module LogSanity
9
9
  request = ActionDispatch::Request.new(env)
10
10
 
11
11
  conditionally_silence(request) do |silence|
12
- payload = {env: env, request: request, silence: silence}
12
+ payload = {
13
+ env: env,
14
+ method: (request.request_method rescue 'INVALID'),
15
+ request: request,
16
+ silence: silence
17
+ }
13
18
  handle = start(payload)
14
19
  begin
15
20
  status, headers, body = response = @app.call(env)
@@ -1,3 +1,3 @@
1
1
  module LogSanity
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_sanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-11 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails