Skip to content

Commit 564bf7d

Browse files
committed
Fix generated uuid - no dashes allowed
1 parent fd72a07 commit 564bf7d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/raven/event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def initialize(init = {})
3232
@interfaces = {}
3333
@breadcrumbs = Raven.breadcrumbs
3434
@context = Raven.context
35-
@id = SecureRandom.uuid
35+
@id = SecureRandom.uuid.delete("-")
3636
@project = nil
3737
@message = nil
3838
@timestamp = Time.now.utc

spec/raven/integration_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
stubs.verify_stubbed_calls
1919

20-
expect(io.string).to match(/Sending event [0-9a-f|-]+ to Sentry$/)
20+
expect(io.string).to match(/Sending event [0-9a-f]+ to Sentry$/)
2121
end
2222

2323
example "posting an exception to a prefixed DSN" do

0 commit comments

Comments
 (0)