Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty "provides" object should not be allowed. #1

Open
theory opened this issue Jun 5, 2013 · 0 comments
Open

Empty "provides" object should not be allowed. #1

theory opened this issue Jun 5, 2013 · 0 comments
Assignees

Comments

@theory
Copy link
Member

theory commented Jun 5, 2013

Consider this META.json:

{
    "name": "financial",
    "abstract": "Financial aggregate functions",
    "description": "Functions and aggregates for financial calculations",
    "version": "0.0.2",
    "release_status": "testing",

    "maintainer": "Marti Raudsepp <marti@juffo.org>",
    "generated_by": "Marti Raudsepp <marti@juffo.org>",
    "provides": {
    },
    "license": {
        "PostgreSQL": "http://www.postgresql.org/about/licence/"
    },
    "tags": [
        "financial", "finance", "rate of return", "xirr", "aggregate",
        "functions", "excel", "investment"
    ],
    "resources": {
        "bugtracker": {
            "web": "https://bitbucket.org/intgr/pg_financial/issues"
        },
        "repository": {
            "url": "https://bitbucket.org/intgr/pg_financial.git",
            "web": "https://bitbucket.org/intgr/pg_financial",
            "type": "git"
        }
    },

    "meta-spec": {
        "version": "1.0.0",
        "url": "http://pgxn.org/meta/spec.txt"
    }
}

The empty "provides" block results in an empty "Extensions" section in the distribution page. So add code to ensure that the "provides" block is not empty, but includes its required keys.

@ghost ghost assigned theory Jun 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant