atatus 2.2.0 → 2.2.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/atatus/config.rb +7 -7
- data/lib/atatus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea5141dce6994d4be6f81f07c03c02f0f887e35043866324933d0685ac2035c6
|
|
4
|
+
data.tar.gz: bdcad2fc202b6d7d1c942782744114bd5b05c627ad0b5c036521ef34095d2a3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7f2771481a672d9911c370489c13c4380cf00e0e99ba50c4916d71e0e2333191fca443fff66f9eda8dc7a085c4556d8db0d45b300d317a2ef6d9f79935fd57b
|
|
7
|
+
data.tar.gz: 13d69bb85b3edf99667b6eb70b1dc01d056f82d5abfd2e11936bdb5d363541322e2893d04741d3d90d42646d035e11c60983c9d115e8895c50e4aa77d6a5313d
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## 2.2.1 (Wed, 29 Apr 2026)
|
|
8
|
+
|
|
9
|
+
- Bug Fixes
|
|
10
|
+
|
|
7
11
|
## 2.2.0 (Wed, 29 Apr 2026)
|
|
8
12
|
|
|
9
13
|
- Added support for default ruby exceptions.
|
data/lib/atatus/config.rb
CHANGED
|
@@ -152,7 +152,7 @@ module Atatus
|
|
|
152
152
|
@__view_paths ||= []
|
|
153
153
|
@__root_path ||= Dir.pwd
|
|
154
154
|
|
|
155
|
-
self.filter_exception_types
|
|
155
|
+
self.filter_exception_types.concat(self.get_default_ignore_exceptions(:sinatra))
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
attr_accessor :__view_paths, :__root_path, :logger
|
|
@@ -288,7 +288,7 @@ module Atatus
|
|
|
288
288
|
begin
|
|
289
289
|
read = File.read(config_file)
|
|
290
290
|
evaled = parse_erb(read)
|
|
291
|
-
|
|
291
|
+
|
|
292
292
|
# YAML.safe_load(evaled)
|
|
293
293
|
|
|
294
294
|
loaded_config = YAML.load(evaled)
|
|
@@ -296,7 +296,7 @@ module Atatus
|
|
|
296
296
|
if loaded_config.key?("default")
|
|
297
297
|
unless loaded_config.key?(env)
|
|
298
298
|
warn "[Atatus] ERROR : atatus.yml does not include '#{env}' section!"
|
|
299
|
-
loaded_config = loaded_config["default"]
|
|
299
|
+
loaded_config = loaded_config["default"]
|
|
300
300
|
end
|
|
301
301
|
end
|
|
302
302
|
|
|
@@ -358,7 +358,7 @@ module Atatus
|
|
|
358
358
|
self.__root_path = Dir.pwd
|
|
359
359
|
|
|
360
360
|
if self.filter_exception_types.nil? || self.filter_exception_types.empty?
|
|
361
|
-
self.filter_exception_types =
|
|
361
|
+
self.filter_exception_types = get_default_ignore_exceptions(:sinatra)
|
|
362
362
|
end
|
|
363
363
|
end
|
|
364
364
|
|
|
@@ -372,9 +372,9 @@ module Atatus
|
|
|
372
372
|
self.__root_path = ::Rails.root.to_s
|
|
373
373
|
self.__view_paths = app.config.paths['app/views'].existent +
|
|
374
374
|
[::Rails.root.to_s]
|
|
375
|
-
|
|
375
|
+
|
|
376
376
|
if self.filter_exception_types.nil? || self.filter_exception_types.empty?
|
|
377
|
-
self.filter_exception_types =
|
|
377
|
+
self.filter_exception_types = get_default_ignore_exceptions(:rails)
|
|
378
378
|
end
|
|
379
379
|
end
|
|
380
380
|
|
|
@@ -390,7 +390,7 @@ module Atatus
|
|
|
390
390
|
str&.gsub('::', '_')
|
|
391
391
|
end
|
|
392
392
|
|
|
393
|
-
def
|
|
393
|
+
def get_default_ignore_exceptions(framework)
|
|
394
394
|
rails_exceptions = [
|
|
395
395
|
"AbstractController::ActionNotFound",
|
|
396
396
|
"ActionController::ParameterMissing",
|
data/lib/atatus/version.rb
CHANGED