Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

Commit

Permalink
Ensure that crunchbase entries always start from https://www.crunchba…
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKozlov1984 committed Feb 27, 2018
1 parent 234c414 commit 3203319
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 97 deletions.
88 changes: 0 additions & 88 deletions cached_logos/ghostcloud.svg

This file was deleted.

6 changes: 3 additions & 3 deletions landscape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ landscape:
- item:
name: OpenEBS
organization: OpenEBS
homepage_url: 'hhttps://www.openebs.io/'
homepage_url: 'https://www.openebs.io/'
repo_url: 'https://github.com/openebs/openebs'
logo: 'https://github.com/openebs/chitrakala/blob/master/logo/png/logo-01.png'
twitter: 'https://twitter.com/openebs'
Expand Down Expand Up @@ -2558,7 +2558,7 @@ landscape:
homepage_url: 'https://github.com/kelseyhightower/nocode'
repo_url: 'https://github.com/kelseyhightower/nocode'
logo: './hosted_logos/nocode.svg'
twitter: 'hhttps://twitter.com/kelseyhightower'
twitter: 'https://twitter.com/kelseyhightower'
crunchbase: 'https://www.crunchbase.com/organization/no-code'
- item:
name: PaaSTA
Expand Down Expand Up @@ -2634,7 +2634,7 @@ landscape:
homepage_url: 'https://aws.amazon.com/lambda/'
repo_url: https://github.com/nficano/python-lambda
logo: './hosted_logos/python-lambda.svg'
crunchbase: 'hhttps://www.crunchbase.com/organization/simple-contacts'
crunchbase: 'https://www.crunchbase.com/organization/simple-contacts'
- subcategory:
name: Tools
items:
Expand Down
6 changes: 3 additions & 3 deletions processed_landscape.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2349,7 +2349,7 @@ landscape:
- item:
name: OpenEBS
organization: OpenEBS
homepage_url: 'hhttps://www.openebs.io/'
homepage_url: 'https://www.openebs.io/'
repo_url: 'https://github.com/openebs/openebs'
logo: 'https://github.com/openebs/chitrakala/blob/master/logo/png/logo-01.png'
twitter: 'https://twitter.com/openebs'
Expand Down Expand Up @@ -9687,7 +9687,7 @@ landscape:
homepage_url: 'https://github.com/kelseyhightower/nocode'
repo_url: 'https://github.com/kelseyhightower/nocode'
logo: ./hosted_logos/nocode.svg
twitter: 'hhttps://twitter.com/kelseyhightower'
twitter: 'https://twitter.com/kelseyhightower'
crunchbase: 'https://www.crunchbase.com/organization/no-code'
crunchbase_data:
name: No Code
Expand Down Expand Up @@ -9962,7 +9962,7 @@ landscape:
homepage_url: 'https://aws.amazon.com/lambda/'
repo_url: 'https://github.com/nficano/python-lambda'
logo: ./hosted_logos/python-lambda.svg
crunchbase: 'hhttps://www.crunchbase.com/organization/simple-contacts'
crunchbase: 'https://www.crunchbase.com/organization/simple-contacts'
crunchbase_data:
name: Simple Contacts
description: Online eye exam and contact lens supplies
Expand Down
6 changes: 3 additions & 3 deletions src/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -4079,7 +4079,7 @@
{
"name": "OpenEBS",
"organization": "OpenEBS",
"homepage_url": "hhttps://www.openebs.io/",
"homepage_url": "https://www.openebs.io/",
"repo_url": "https://github.com/openebs/openebs",
"logo": "https://github.com/openebs/chitrakala/blob/master/logo/png/logo-01.png",
"twitter": "https://twitter.com/openebs",
Expand Down Expand Up @@ -16845,7 +16845,7 @@
"homepage_url": "https://github.com/kelseyhightower/nocode",
"repo_url": "https://github.com/kelseyhightower/nocode",
"logo": "./hosted_logos/nocode.svg",
"twitter": "hhttps://twitter.com/kelseyhightower",
"twitter": "https://twitter.com/kelseyhightower",
"crunchbase": "https://www.crunchbase.com/organization/no-code",
"github_data": {
"stars": 16115,
Expand Down Expand Up @@ -17319,7 +17319,7 @@
"homepage_url": "https://aws.amazon.com/lambda/",
"repo_url": "https://github.com/nficano/python-lambda",
"logo": "./hosted_logos/python-lambda.svg",
"crunchbase": "hhttps://www.crunchbase.com/organization/simple-contacts",
"crunchbase": "https://www.crunchbase.com/organization/simple-contacts",
"github_data": {
"stars": 622,
"license": "ISC",
Expand Down
11 changes: 11 additions & 0 deletions tools/generateJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ if (hasEmptyCrunchbase) {
require('process').exit(1);
}

var hasBadCrunchbase = false;
_.each(itemsWithExtraFields, function(item) {
if (item.crunchbase.indexOf('https://www.crunchbase.com/organization/') !== 0) {
hasBadCrunchbase = true;
console.info(`${item.name} has a crunchbase ${item.crunchbase} which does not start with 'https://www.crunchbase.com/organization'`);
}
});
if (hasBadCrunchbase) {
require('process').exit(1);
}




Expand Down

1 comment on commit 3203319

@dankohn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great commit. I love that the fatal warning already caught multiple errors.

Please sign in to comment.