foobara-util 1.0.2 → 1.0.3

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: 8f2492a2c2bcf6ae3801d6117d831065dfa7797cc832988209d76c224fb0582b
4
- data.tar.gz: a0d20bde313cab91ccc58c2ea0fe83416fadcd8db1d5cf155d88a21c97cafdc5
3
+ metadata.gz: 18c1181684054682ef921400e25c976d94c10f64dff2c036ebe9ba7b08cf09d5
4
+ data.tar.gz: a91bb09d64d336e9c46bbfa20746da5abbedcb4fa4fa93f3ade09876ddaa6692
5
5
  SHA512:
6
- metadata.gz: f41b4a6db1749ea211819b2279e838334e9b367c6ebeba232aa5b247cab8ffa66fcdf020cc459a1708c520ac62224796b3a850786ccc7d27297bd29059af4b6d
7
- data.tar.gz: 8eff1b615db6f938c7f04c11f15b9ad5bb7c77cff8d82a1aa9f32624b86b42ec06ccb7b46fd748ce4306798f8c7f297fb35edfa95ec684eb43f8fc89ca34cb29
6
+ metadata.gz: 5a387cf68464f15054d99112d0b89f64f2516581c207e0587f8dbe5ff5a788144e6798860ea36a942889dab2dbdd0e1fe1aea6657f12d0f3d883a9c06460a857
7
+ data.tar.gz: fb8471223c146c78e749697001a5edf034c37ac0e3f28d8bdca07f1dcd565546d2bff9cbb5d552027d1d177f1d2b24aee6daa9439a97bca647e381864c824d60
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [1.0.3] - 2025-09-21
2
+
3
+ - Fix bug that gives non-deterministic load order for file names that have the same depth and length
4
+
1
5
  ## [1.0.2] - 2025-07-25
2
6
 
3
7
  - Add .remove_arity_check to help with using lambdas in DSLs
@@ -15,7 +15,7 @@ module Foobara
15
15
  # :nocov:
16
16
  end
17
17
 
18
- files.sort_by { |file| [file.count("/"), file.length] }.reverse.each do |f|
18
+ files.sort_by { |file| [file.count("/"), file.length, file] }.reverse.each do |f|
19
19
  require f
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-07-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  email:
13
13
  - azimux@gmail.com
@@ -28,7 +28,6 @@ files:
28
28
  - lib/foobara/util/hash.rb
29
29
  - lib/foobara/util/meta.rb
30
30
  - lib/foobara/util/module.rb
31
- - lib/foobara/util/proc.rb
32
31
  - lib/foobara/util/require.rb
33
32
  - lib/foobara/util/string.rb
34
33
  - lib/foobara/util/structured.rb
@@ -56,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
55
  - !ruby/object:Gem::Version
57
56
  version: '0'
58
57
  requirements: []
59
- rubygems_version: 3.6.2
58
+ rubygems_version: 3.6.9
60
59
  specification_version: 4
61
60
  summary: Utility functions used across various Foobara projects
62
61
  test_files: []
@@ -1,25 +0,0 @@
1
- module Foobara
2
- module Util
3
- module_function
4
-
5
- def remove_arity_check(lambda)
6
- arity = lambda.arity
7
-
8
- if arity == 0
9
- proc { |*, **opts, &block| lambda.call(**opts, &block) }
10
- else
11
- proc do |*args, **opts, &block|
12
- args = args[0...arity]
13
-
14
- remaining = arity - args.size
15
-
16
- if remaining > 0
17
- args += [nil] * remaining
18
- end
19
-
20
- lambda.call(*args, **opts, &block)
21
- end
22
- end
23
- end
24
- end
25
- end