padded_cell 0.5.0-aarch64-linux-gnu → 0.5.1-aarch64-linux-gnu
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 +7 -0
- data/lib/padded_cell/4.0/padded_cell_native.so +0 -0
- data/lib/padded_cell/loader.rb +13 -1
- data/lib/padded_cell/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: 074c820b17eb03629f42c6f3a584fa3fbd2f5ebf19ea8290cf60586c99837552
|
|
4
|
+
data.tar.gz: 5e6ab263bdfd66473cebe77a3ec4ec991ae6f44db1e53da6719f8641f6fc0873
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 553f326c168d0f9d67b41dd8247bcf2ae456fdab5f6dd667ed11500178462783af56f6ca57d3cd09c76597cb827e2efaa5f1a8a51ab757870f289001724b1f40
|
|
7
|
+
data.tar.gz: 6d04495cde84242bcef128723da5cc105bf454527683d0eded12f23a680f5eb7f4185765e81680d2c82145fac8965246832c06376bbad7f651923ce47668d63b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.1](https://github.com/seuros/padded_cell/compare/v0.5.0...v0.5.1) (2026-11-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* resolve spec classes named by their description ([7c065c1](https://github.com/seuros/padded_cell/commit/7c065c121c6059f3b740e658c25136abeac4ff84))
|
|
9
|
+
|
|
3
10
|
## [0.5.0](https://github.com/seuros/padded_cell/compare/v0.4.0...v0.5.0) (2026-11-27)
|
|
4
11
|
|
|
5
12
|
|
|
Binary file
|
data/lib/padded_cell/loader.rb
CHANGED
|
@@ -55,9 +55,21 @@ module PaddedCell
|
|
|
55
55
|
# never call: the declaration is read from the files the classes were
|
|
56
56
|
# defined in instead, test helpers and support files included.
|
|
57
57
|
def abstract_classes(runnables)
|
|
58
|
-
files = runnables.filter_map { (
|
|
58
|
+
files = runnables.filter_map { source_file(it) }
|
|
59
59
|
Discovery.abstract_classes(files.uniq.select { File.file?(it) }).to_set
|
|
60
60
|
end
|
|
61
|
+
|
|
62
|
+
CONSTANT_PATH = /\A[A-Z]\w*(::[A-Z]\w*)*\z/
|
|
63
|
+
|
|
64
|
+
# Spec classes are named after their description ("GET #index"), which
|
|
65
|
+
# is no constant: their methods say where they were defined.
|
|
66
|
+
def source_file(klass)
|
|
67
|
+
name = klass.name
|
|
68
|
+
return unless name
|
|
69
|
+
return Object.const_source_location(name)&.first if name.match?(CONSTANT_PATH)
|
|
70
|
+
|
|
71
|
+
klass.instance_methods(false).lazy.filter_map { klass.instance_method(it).source_location&.first }.first
|
|
72
|
+
end
|
|
61
73
|
end
|
|
62
74
|
|
|
63
75
|
# Which loaded tests run: Minitest's --include/--exclude, plus file:line.
|
data/lib/padded_cell/version.rb
CHANGED