@@ -22,7 +22,7 @@ class Configuration
22
22
attr_accessor :project_id
23
23
24
24
# Project directory root
25
- attr_accessor :project_root
25
+ attr_reader :project_root
26
26
27
27
# Encoding type for event bodies
28
28
attr_reader :encoding
@@ -85,7 +85,7 @@ class Configuration
85
85
attr_reader :async
86
86
87
87
# Optional Proc, called when the Sentry server cannot be contacted for any reason
88
- attr_accessor :transport_failure_callback
88
+ attr_reader :transport_failure_callback
89
89
90
90
# Directories to be recognized as part of your app. e.g. if you
91
91
# have an `engines` dir at the root of your project, you may want
@@ -98,7 +98,7 @@ class Configuration
98
98
# will report exceptions even when they are rescued by these middlewares.
99
99
attr_accessor :rails_report_rescued_exceptions
100
100
# Deprecated accessor
101
- attr_accessor :catch_debugged_exceptions
101
+ attr_reader :catch_debugged_exceptions
102
102
103
103
# Turns on ActiveSupport breadcrumbs integration
104
104
attr_accessor :rails_activesupport_breadcrumbs
@@ -174,20 +174,20 @@ def server=(value)
174
174
175
175
if uri . user
176
176
# DSN-style string
177
- @ project_id = uri_path . pop
178
- @ public_key = uri . user
179
- @ secret_key = uri . password
177
+ self . project_id = uri_path . pop
178
+ self . public_key = uri . user
179
+ self . secret_key = uri . password
180
180
end
181
181
182
- @ scheme = uri . scheme
183
- @ host = uri . host
184
- @ port = uri . port if uri . port
185
- @ path = uri_path . join ( '/' )
182
+ self . scheme = uri . scheme
183
+ self . host = uri . host
184
+ self . port = uri . port if uri . port
185
+ self . path = uri_path . join ( '/' )
186
186
187
187
# For anyone who wants to read the base server string
188
- @server = "#{ @ scheme} ://#{ @ host} "
189
- @server << ":#{ @ port} " unless @ port == { 'http' => 80 , 'https' => 443 } [ @ scheme]
190
- @server << @ path
188
+ @server = "#{ scheme } ://#{ host } "
189
+ @server << ":#{ port } " unless port == { 'http' => 80 , 'https' => 443 } [ scheme ]
190
+ @server << path
191
191
end
192
192
193
193
def encoding = ( encoding )
0 commit comments