eitil 1.1.38 → 1.1.39

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: 6a10cacbe01eb49c8964a1dc6e2061e4b0aa80b0345d6560bf4353384146c61a
4
- data.tar.gz: 1ca77ced97a199df79116b3023e3501b7072b5a680aca33fb142e303bba4136e
3
+ metadata.gz: f8baf9893cc66d802a9cfa257b9f7e9d9773454837b397684e2b30c188400d2b
4
+ data.tar.gz: c0f9b000df38b13078bfdc5b348f5e6e5f4732bfabfa96c0d972bd764134e069
5
5
  SHA512:
6
- metadata.gz: 4c579863550638fe0f4792406fb99b1ca21d577ae0c8e2e3794b9a9999862e547190ce10730f06415339b9f18b5965660afcf906833619a29b2c2c903183e0c5
7
- data.tar.gz: c21f9c314e5861d0b9d64147280ac184c353f7c9516a460f73b27d609d6839b681e8f5a7e5dd9b327c1b0acf636bdc154066e086d395726efbe975c8e17914ae
6
+ metadata.gz: 3207e89a489f0f5fca78f2647ef1624b476e2b410a0c7fd5a8b67aa13f4db8bc9f7985a54622af6039bd92ba3b713195d8f218af7fe6d8a35dc48dc5844e5e88
7
+ data.tar.gz: 68368b42bd8a8cf2b9b93c19d070dbefa378d73377012959d189d57a45c03c99b85f608bbfd0dc680cee9fee8e7ed090a8b51301500b666651da8e3851fa9d4f
@@ -10,7 +10,10 @@ module EitilSupport::Stack::Audit
10
10
  # .report_app_calls filters the stack on calls whose path include "/app/", since
11
11
  # audits otherwise tend to grow very big, which might endanger the database.
12
12
  stacktrace = EitilSupport::Stack.new.report_app_calls
13
- self.audits.last.update(stacktrace: stacktrace)
13
+
14
+ # Safe operator in order to avoid raising a NoMetodError when the record
15
+ # has no audits yet.
16
+ self.audits.last&.update(stacktrace: stacktrace)
14
17
  end
15
18
 
16
19
  end
data/lib/eitil/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Eitil
2
2
 
3
- VERSION = '1.1.38'
3
+ VERSION = '1.1.39'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eitil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.38
4
+ version: 1.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jurriaan Schrofer