@Override
    public String getName() {
        return ANALYZER_NAME;
    }
@Test
    public void testAnalyzeGemspec() throws AnalysisException {
        final Dependency result = new Dependency(BaseTest.getResourceAsFile(this,
                "ruby/vulnerable/gems/rails-4.1.15/vendor/bundle/ruby/2.2.0/specifications/dalli-2.7.5.gemspec"));
        analyzer.analyze(result, null);

        final String vendorString = result.getEvidence(EvidenceType.VENDOR).toString();
        assertThat(vendorString, containsString("Peter M. Goldstein"));
        assertThat(vendorString, containsString("Mike Perham"));
        assertThat(vendorString, containsString("peter.m.goldstein@gmail.com"));
        assertThat(vendorString, containsString("https://github.com/petergoldstein/dalli"));
        assertThat(vendorString, containsString("MIT"));
        assertThat(result.getEvidence(EvidenceType.PRODUCT).toString(), containsString("dalli"));
        assertThat(result.getEvidence(EvidenceType.PRODUCT).toString(), containsString("High performance memcached client for Ruby"));
        assertThat(result.getEvidence(EvidenceType.VERSION).toString(), containsString("2.7.5"));
        assertEquals("dalli", result.getName());
        assertEquals("2.7.5", result.getVersion());
        assertEquals(RubyBundlerAnalyzer.DEPENDENCY_ECOSYSTEM, result.getEcosystem());
        assertEquals("dalli:2.7.5", result.getDisplayFileName());
    }