Commit 18c76ce
committed
Find
`rubygems` started enforcing extensions to be built via
`Gem::Specification#ignored?`.
This causes the `datadog` spec lookup via
`Gem::Specification.find_by_name` to fail.
Since in this case we don't care for the extension, replace by
`Gem.loaded_specs`, which is what matters there.
Note that `Gem::SpecificationRecord.find_all_by_name` is not subject to
the `ignored?` check, only `Specification.find_by_name` is (via
`Gem::Dependency#to_spec`), so we could use that; unfortunately it is
fairly recent and unavailable for older rubygems versions.
See:
- ruby/rubygems@c80998a
- ruby/rubygems#8104
- #4511 (comment)datadog spec even when extensions are not built1 parent 0c03ef4 commit 18c76ce
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments