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

Version Path
saddler-reporter-github-2.1.0 .conventional-changelog.context.js
saddler-reporter-github-2.0.0 .conventional-changelog.context.js
saddler-reporter-github-1.0.0 .conventional-changelog.context.js
saddler-reporter-github-0.4.0 .conventional-changelog.context.js
saddler-reporter-github-0.3.0 .conventional-changelog.context.js
saddler-reporter-github-0.2.2 .conventional-changelog.context.js
saddler-reporter-github-0.2.1 .conventional-changelog.context.js
saddler-reporter-github-0.2.0 .conventional-changelog.context.js
saddler-reporter-github-0.1.6 .conventional-changelog.context.js