use of com.synopsys.integration.detectable.detectables.rubygems.gemspec.GemspecParseExtractor in project synopsys-detect by blackducksoftware.
the class DetectableFactory method createGemspecParseDetectable.
public GemspecParseDetectable createGemspecParseDetectable(DetectableEnvironment environment, GemspecParseDetectableOptions gemspecOptions) {
GemspecLineParser gemspecLineParser = new GemspecLineParser();
GemspecParser gemspecParser = new GemspecParser(gemspecLineParser, gemspecOptions.getDependencyTypeFilter());
GemspecParseExtractor gemspecParseExtractor = new GemspecParseExtractor(gemspecParser);
return new GemspecParseDetectable(environment, fileFinder, gemspecParseExtractor);
}
use of com.synopsys.integration.detectable.detectables.rubygems.gemspec.GemspecParseExtractor in project synopsys-detect by blackducksoftware.
the class GemspecParseDetectableTest method testApplicable.
@Test
public void testApplicable() {
GemspecParseExtractor gemspecParseExtractor = null;
GemspecParseDetectableOptions gemspecParseDetectableOptions = null;
DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFileNamed("test.gemspec");
GemspecParseDetectable detectable = new GemspecParseDetectable(environment, fileFinder, gemspecParseExtractor);
assertTrue(detectable.applicable().getPassed());
}
Aggregations