foobara 0.0.138 → 0.0.139
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8006a38d251e55d5412171c8b420ef424bc93bf6ec6a9bc40b4dac34c6d71fe
|
4
|
+
data.tar.gz: ed9d0a5a764be0a8c51f4a88f311207c18be2186721c0bea5476e3f87b51fd21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d0287f4d63260543b050bf6122ed66f339b981726aae6917731e19467364c3e4a2542546d574e591cac6e464a14379dbaa729dababf0bb9a67eac1488a51be
|
7
|
+
data.tar.gz: 2deb90d284941caddbdab98a9adf48273d84d9d56ac791ef98907ab8ddaaa6072712f66425387e66e09d4a1ad330179a57ebaa0ac5c73a263af2cbb48d4b0385
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# [0.0.139] - 2025-07-23
|
2
|
+
|
3
|
+
- Add back an ErrorCollection method that some external projects depend on
|
4
|
+
- Allow reset_all to be called when it's part of install!'s implementation
|
5
|
+
|
1
6
|
# [0.0.138] - 2025-07-23
|
2
7
|
|
3
8
|
- Allow #foobara_unregister by symbol, string, or array path
|
@@ -25,6 +25,13 @@ module Foobara
|
|
25
25
|
# :nocov:
|
26
26
|
end
|
27
27
|
|
28
|
+
def error_array
|
29
|
+
# :nocov:
|
30
|
+
warn "DEPRECATED: Do not call ErrorCollection#errors instead just use the collection directly."
|
31
|
+
self
|
32
|
+
# :nocov:
|
33
|
+
end
|
34
|
+
|
28
35
|
def each_error(&)
|
29
36
|
# :nocov:
|
30
37
|
warn "DEPRECATED: This method will be deprecated in the coming version"
|
@@ -1,8 +1,11 @@
|
|
1
1
|
module Foobara
|
2
2
|
module TypeDeclarations
|
3
3
|
class << self
|
4
|
-
def reset_all
|
5
|
-
|
4
|
+
def reset_all(skip_check: nil)
|
5
|
+
unless skip_check
|
6
|
+
Foobara.raise_if_production!("reset_all")
|
7
|
+
end
|
8
|
+
|
6
9
|
# TODO: this doesn't really belong here. I think we need to maybe call reset in reverse order?
|
7
10
|
Foobara::Domain::DomainModuleExtension.all.each do |domain|
|
8
11
|
var = "@foobara_type_builder"
|
@@ -82,7 +85,7 @@ module Foobara
|
|
82
85
|
def install!
|
83
86
|
capture_current_namespaces
|
84
87
|
|
85
|
-
reset_all
|
88
|
+
reset_all(skip_check: true)
|
86
89
|
|
87
90
|
Foobara::Error.include(ErrorExtension)
|
88
91
|
|