GithubHelp home page GithubHelp logo

spdx-licenses's Introduction

spdx-licenses

A Ruby library around the SPDX license data, which provides a set of standard identifiers for open source licenses.

The data is maintained by SPDX. This library redistributes the licenses JSON file.

Installation

$ gem install spdx-licenses

or in your Gemfile:

gem 'spdx-licenses'

Versioning

This gem and its API is versioned according to semver. Minor releases may contain updates to the SPDX License List data.

spdx-licenses SPDX License List
1.0.0 1.2.0
1.1.0 2.4
1.2.0 3.1
1.3.0 3.11-54

Usage

> lic = SpdxLicenses.lookup('Apache-2.0')
> lic.id
"Apache-2.0"
> lic.name
"Apache License 2.0"
> lic.osi_approved?
true
> SpdxLicenses.lookup('Unknown')
nil

> SpdxLicenses.exist?('Apache-2.0')
true
> SpdxLicenses.exist?('Unknown')
false

License

Copyright (c) 2014-2021 Dominic Cleal. Distributed under the MIT license.

spdx-licenses's People

Contributors

andrew avatar domcleal avatar polo2 avatar sschuberth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spdx-licenses's Issues

Clarifications needed with regards to licensing of the "licenses.json" file

Hello!

I'm working on packaging this library to debian as a dependency to another project, and one thing that I need to clarify for the package is whether the vendored "licenses.json" file from SPDX has a different license from the rest of the code.

Judging from #2, the switch to using the json file directly was done in order to remove the need to include the full license for the code building the license list. But the resulting json file on SPDX's website still seems to fall into a license defined by them.

From what I was able to find so far:

If I'm interpreting the information from those two sites forrectly, the file would be licensed under Creative Commons Attribution 3.0 License -- which would require the license attribution mention somewhere in this project.

Did someone in this project already figured all this out with SPDX to make sure the file needs a special attribution?

I've tried asking them already but as of now I've received no feedback: spdx/license-list-XML#986

cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.