foobara-util 1.0.4 → 1.0.6
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 +8 -0
- data/lib/foobara/util/array.rb +3 -1
- data/lib/foobara/util/constants.rb +3 -0
- data/lib/foobara/util/module.rb +2 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 05e0a96288811e72dc2eb9e6a3661999169c6651ebbc02947821b5b53134b5f2
|
|
4
|
+
data.tar.gz: 9e633f27f93ffa5b75234e41598c0ba5def872d7fd42295dfea8eebb476e381a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b91c849fa49ecabd48a0db83d33418bf470c8597db5fc66b6e538b393fe88dde1f1d3f8d285334494761ddf5bc416b630df8d404aa400b2488f3bf206de56b21
|
|
7
|
+
data.tar.gz: 0bcbc3591c087a60bb0f52601a7a0afe0653d695fb4f8807ecd43565565416ad8cb26b151a3ad8ec59cb1f157840ec5ec3cb7e4c9aa7b2e7e1c413a8484e7e64
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [1.0.6] - 2025-12-14
|
|
2
|
+
|
|
3
|
+
- Make sure constants come out in a deterministic order across various systems
|
|
4
|
+
|
|
5
|
+
## [1.0.5] - 2025-12-12
|
|
6
|
+
|
|
7
|
+
- Add EMPTY_ARRAY frozen constant for use to avoid some allocation/garbage collection
|
|
8
|
+
|
|
1
9
|
## [1.0.4] - 2025-11-01
|
|
2
10
|
|
|
3
11
|
- Add .referencing_paths to help debugging finding what object is referencing another
|
data/lib/foobara/util/array.rb
CHANGED
data/lib/foobara/util/module.rb
CHANGED
|
@@ -56,8 +56,9 @@ module Foobara
|
|
|
56
56
|
else
|
|
57
57
|
is_a = Util.array(is_a)
|
|
58
58
|
extends = Util.array(extends)
|
|
59
|
+
constants = mod.constants.sort
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
constants.map { |const| constant_value(mod, const) }.select do |object|
|
|
61
62
|
(is_a.nil? || is_a.empty? || is_a.any? { |klass| object.is_a?(klass) }) &&
|
|
62
63
|
(extends.nil? || extends.empty? || (object.is_a?(Class) && extends.any? do |klass|
|
|
63
64
|
object.ancestors.include?(klass)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foobara-util
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miles Georgi
|
|
@@ -25,6 +25,7 @@ files:
|
|
|
25
25
|
- lib/foobara/util/args.rb
|
|
26
26
|
- lib/foobara/util/array.rb
|
|
27
27
|
- lib/foobara/util/class.rb
|
|
28
|
+
- lib/foobara/util/constants.rb
|
|
28
29
|
- lib/foobara/util/hash.rb
|
|
29
30
|
- lib/foobara/util/meta.rb
|
|
30
31
|
- lib/foobara/util/module.rb
|