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