foobara-util 1.0.5 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2804f3c80131811275793b6f336f800694a9df0a51c6ddb15f8e2af89ba706fa
4
- data.tar.gz: 88d31a549377ad420cd9b338264845ca46809e4b84f6b8f62a9b9725d5af3861
3
+ metadata.gz: 05e0a96288811e72dc2eb9e6a3661999169c6651ebbc02947821b5b53134b5f2
4
+ data.tar.gz: 9e633f27f93ffa5b75234e41598c0ba5def872d7fd42295dfea8eebb476e381a
5
5
  SHA512:
6
- metadata.gz: 2567f5588d89b2dc4eae8e7197b14e91556a2aaacce385fa65ebb0f9a20c86b78902b18ae37825d85da57279fdf1f63aa3860b122ef4414e526b134d623c4586
7
- data.tar.gz: 6e10efe461c1e7e1bd5698087cca6885a6bd7e449046b94e38e046ac0b3cd7bed4b3ab2d21c140c5058af83b04b24d19dcac2e2cad4b36fdf271441b7de0986a
6
+ metadata.gz: b91c849fa49ecabd48a0db83d33418bf470c8597db5fc66b6e538b393fe88dde1f1d3f8d285334494761ddf5bc416b630df8d404aa400b2488f3bf206de56b21
7
+ data.tar.gz: 0bcbc3591c087a60bb0f52601a7a0afe0653d695fb4f8807ecd43565565416ad8cb26b151a3ad8ec59cb1f157840ec5ec3cb7e4c9aa7b2e7e1c413a8484e7e64
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.0.6] - 2025-12-14
2
+
3
+ - Make sure constants come out in a deterministic order across various systems
4
+
1
5
  ## [1.0.5] - 2025-12-12
2
6
 
3
7
  - Add EMPTY_ARRAY frozen constant for use to avoid some allocation/garbage collection
@@ -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
- mod.constants.map { |const| constant_value(mod, const) }.select do |object|
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.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi