Sha256: 59bf22b596d92de55a151a183be9e2771e812e02786af7bfd982ddfb435a19ac
Contents?: true
Size: 510 Bytes
Versions: 9
Compression:
Stored size: 510 Bytes
Contents
'use strict'; var execSync = require('child_process').execSync; var URI = require('urijs'); var gemspec = JSON.parse(execSync('bundle exec parse-gemspec-cli saddler-reporter-github.gemspec')); var homepageUrl = gemspec.homepage; var url = new URI(homepageUrl); var host = url.protocol() + '://' + url.authority(); var owner = url.pathname().split('/')[1]; var repository = url.pathname().split('/')[2]; module.exports = { version: gemspec.version, host: host, owner: owner, repository: repository };
Version data entries
9 entries across 9 versions & 1 rubygems