mirror of
https://github.com/github/codeql.git
synced 2026-02-15 06:23:42 +01:00
18 lines
503 B
Plaintext
18 lines
503 B
Plaintext
import codeql.ruby.frameworks.Gemfile
|
|
|
|
query predicate gemCalls(
|
|
Gemfile::Gem gem, string name, Gemfile::VersionConstraint constraint, string version
|
|
) {
|
|
name = gem.getName() and
|
|
constraint = gem.getAVersionConstraint() and
|
|
version = constraint.getVersion()
|
|
}
|
|
|
|
query predicate versionBefore(string before, string after) {
|
|
exists(Gemfile::VersionConstraint c1, Gemfile::VersionConstraint c2 |
|
|
c1.getVersion() = before and c2.getVersion() = after
|
|
|
|
|
c1.getVersion().before(after)
|
|
)
|
|
}
|