github-url-to-object
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -21,3 +21,4 @@ var url = require('url') | ||
obj.https_url = "https://github.com/" + obj.user + "/" + obj.repo | ||
obj.travis_url = "https://travis-ci.org/" + obj.user + "/" + obj.repo | ||
return obj | ||
} |
{ | ||
"name": "github-url-to-object", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "Extract user, repo, and other interesting properties from GitHub URLs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,2 +34,3 @@ # github-url-to-object [![Build Status](https://travis-ci.org/zeke/github-url-to-object.png?branch=master)](https://travis-ci.org/zeke/github-url-to-object) | ||
tarball_url: 'https://api.github.com/repos/monkey/business/tarball' | ||
travis_url: 'https://travis-ci.org/monkey/business', | ||
} | ||
@@ -36,0 +37,0 @@ ``` |
@@ -15,7 +15,7 @@ var mocha = require("mocha") | ||
it("user", function() { | ||
assert.equal(obj.user, 'foo-master') | ||
assert.equal(obj.user, "foo-master") | ||
}) | ||
it("repo", function() { | ||
assert.equal(obj.repo, 'party-time') | ||
assert.equal(obj.repo, "party-time") | ||
}) | ||
@@ -28,4 +28,9 @@ | ||
it("https_url", function() { | ||
assert.equal(obj.https_url, 'https://github.com/foo-master/party-time') | ||
assert.equal(obj.https_url, "https://github.com/foo-master/party-time") | ||
}) | ||
it("travis_url", function() { | ||
assert.equal(obj.travis_url, "https://travis-ci.org/foo-master/party-time") | ||
}) | ||
}) | ||
@@ -32,0 +37,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4672
82
50