Sha256: e91cade779572e14ed3d11a4f765a7d30fba6203f353b6b055fe59b74a7b451a
Contents?: true
Size: 500 Bytes
Versions: 5
Compression:
Stored size: 500 Bytes
Contents
'use strict'; var execSync = require('child_process').execSync; var URI = require('urijs'); var gemspec = JSON.parse(execSync('bundle exec parse-gemspec-cli git_clone_url.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
5 entries across 5 versions & 1 rubygems