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