diff options
author | isaacs <i@izs.me> | 2014-05-22 02:36:41 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2014-05-22 02:36:50 +0400 |
commit | 42c2159fe64ecdf4ca0ca097fb8b6ec46009c963 (patch) | |
tree | 556f771b85c972441688bc6252865bc5f8a3c7c6 | |
parent | 7e1438e8aaf7f34678744bbe583f6eaf493286b1 (diff) |
Revert "github-url-from-username-repo (https:// instead of git:// for urls)"
This reverts commit 7e1438e8aaf7f34678744bbe583f6eaf493286b1.
Breaks test/tap/outdated-git.js
CC: @robertkowalski
-rw-r--r-- | node_modules/github-url-from-username-repo/index.js | 2 | ||||
-rw-r--r-- | node_modules/github-url-from-username-repo/package.json | 21 | ||||
-rw-r--r-- | node_modules/github-url-from-username-repo/test/index.js | 8 | ||||
-rw-r--r-- | package.json | 2 |
4 files changed, 17 insertions, 16 deletions
diff --git a/node_modules/github-url-from-username-repo/index.js b/node_modules/github-url-from-username-repo/index.js index 60ed7aa4e..46b0bb513 100644 --- a/node_modules/github-url-from-username-repo/index.js +++ b/node_modules/github-url-from-username-repo/index.js @@ -3,7 +3,7 @@ module.exports = getUrl function getUrl (r) { if (!r) return null if (/^[\w-]+\/[\w\.-]+$/.test(r)) - return "https://github.com/" + r + return "git://github.com/" + r else return null } diff --git a/node_modules/github-url-from-username-repo/package.json b/node_modules/github-url-from-username-repo/package.json index 56dd698df..7eadf899d 100644 --- a/node_modules/github-url-from-username-repo/package.json +++ b/node_modules/github-url-from-username-repo/package.json @@ -1,6 +1,6 @@ { "name": "github-url-from-username-repo", - "version": "0.2.0", + "version": "0.1.0", "description": "Create urls from username/repo", "main": "index.js", "scripts": { @@ -27,10 +27,13 @@ "repo" ], "homepage": "https://github.com/robertkowalski/github-url-from-username-repo", - "_id": "github-url-from-username-repo@0.2.0", - "_shasum": "7590b4fa605b7a6cbb7e06ffcd9d253210f9dbe1", - "_from": "github-url-from-username-repo@latest", - "_npmVersion": "1.4.9", + "_id": "github-url-from-username-repo@0.1.0", + "dist": { + "shasum": "fe398af670692e91af7bcfc5ae1d99ff97b1df89", + "tarball": "http://registry.npmjs.org/github-url-from-username-repo/-/github-url-from-username-repo-0.1.0.tgz" + }, + "_from": "github-url-from-username-repo@~0.1.0", + "_npmVersion": "1.4.6", "_npmUser": { "name": "robertkowalski", "email": "rok@kowalski.gd" @@ -41,10 +44,8 @@ "email": "rok@kowalski.gd" } ], - "dist": { - "shasum": "7590b4fa605b7a6cbb7e06ffcd9d253210f9dbe1", - "tarball": "http://registry.npmjs.org/github-url-from-username-repo/-/github-url-from-username-repo-0.2.0.tgz" - }, "directories": {}, - "_resolved": "https://registry.npmjs.org/github-url-from-username-repo/-/github-url-from-username-repo-0.2.0.tgz" + "_shasum": "fe398af670692e91af7bcfc5ae1d99ff97b1df89", + "_resolved": "https://registry.npmjs.org/github-url-from-username-repo/-/github-url-from-username-repo-0.1.0.tgz", + "readme": "ERROR: No README data found!" } diff --git a/node_modules/github-url-from-username-repo/test/index.js b/node_modules/github-url-from-username-repo/test/index.js index 14c7dd16c..e8e7b4760 100644 --- a/node_modules/github-url-from-username-repo/test/index.js +++ b/node_modules/github-url-from-username-repo/test/index.js @@ -4,7 +4,7 @@ var getUrl = require("../") describe("github url from username/repo", function () { it("returns a github url for the username/repo", function () { var url = getUrl("visionmedia/express") - assert.equal("https://github.com/visionmedia/express", url) + assert.equal("git://github.com/visionmedia/express", url) }) it("returns null if it does not match", function () { @@ -19,16 +19,16 @@ describe("github url from username/repo", function () { it("works with .", function () { var url = getUrl("component/downloader.js") - assert.equal("https://github.com/component/downloader.js", url) + assert.equal("git://github.com/component/downloader.js", url) }) it("works with . in the beginning", function () { var url = getUrl("component/.downloader.js") - assert.equal("https://github.com/component/.downloader.js", url) + assert.equal("git://github.com/component/.downloader.js", url) }) it("works with -", function () { var url = getUrl("component/-dow-nloader.j-s") - assert.equal("https://github.com/component/-dow-nloader.j-s", url) + assert.equal("git://github.com/component/-dow-nloader.j-s", url) }) }) diff --git a/package.json b/package.json index 57f06bca3..60e9ae192 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "fstream": "~0.1.25", "fstream-npm": "~0.1.7", "github-url-from-git": "1.1.1", - "github-url-from-username-repo": "~0.2.0", + "github-url-from-username-repo": "~0.1.0", "glob": "~3.2.10", "graceful-fs": "~2.0.2", "inflight": "^1.0.1", |