Skip to content

Commit

Permalink
Bump up the tool version in PodExtract
Browse files Browse the repository at this point in the history
The recent fix to exclude content in the .git directory (clearlydefined#525) from pod packages will cause the file count to be different from the previous version. Update the toolVersion for PodExtract to 2.0.0 to reflect this.
  • Loading branch information
qtomlinson committed Apr 17, 2024
1 parent 9424f37 commit 32eaf2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion providers/process/podExtract.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PodExtract extends AbstractClearlyDefinedProcessor {
}

get toolVersion() {
return '1.0.1'
return '2.0.0'
}

canHandle(request) {
Expand Down
6 changes: 3 additions & 3 deletions test/unit/providers/process/podExtractTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ describe('podExtract', () => {
it('builds the correct documentKey via getUrnFor', async () => {
const request = new Request('pod', 'cd:/pod/cocoapods/-/SwiftLCS/1.0')
const documentKey = extract.getUrnFor(request)
expect(documentKey).to.be.equal('urn:pod:cocoapods:-:SwiftLCS:revision:1.0:tool:clearlydefined:1.2.1')
expect(documentKey).to.be.equal('urn:pod:cocoapods:-:SwiftLCS:revision:1.0:tool:clearlydefined:2.2.0')
})

it('builds the correct self link which reflects the current _schemaVersion of podExtract', async () => {
const request = new Request('pod', 'cd:/pod/cocoapods/-/SwiftLCS/1.0')
request.document = { _metadata: { links: {} } }
mockPodExtract(extract).handle(request)
expect(request.document._metadata.links.self.href).to.be.equal(
'urn:pod:cocoapods:-:SwiftLCS:revision:1.0:tool:clearlydefined:1.2.1'
'urn:pod:cocoapods:-:SwiftLCS:revision:1.0:tool:clearlydefined:2.2.0'
)
expect(request.document._metadata.links.self.type).to.be.equal('resource')
expect(request.document._metadata.schemaVersion).to.be.equal('1.2.1')
expect(request.document._metadata.schemaVersion).to.be.equal('2.2.0')
})
})

Expand Down

0 comments on commit 32eaf2b

Please sign in to comment.