Docs exports: JSON llms.txt llms-full.txt Agent Files

module Shards::SPDX

Defined in:

spdx.cr

Constant Summary

LICENSES = {"MIT" => LicenseInfo.new("MIT", "MIT License", true, Category::Permissive), "Apache-2.0" => LicenseInfo.new("Apache-2.0", "Apache License 2.0", true, Category::Permissive), "BSD-2-Clause" => LicenseInfo.new("BSD-2-Clause", "BSD 2-Clause \"Simplified\" License", true, Category::Permissive), "BSD-3-Clause" => LicenseInfo.new("BSD-3-Clause", "BSD 3-Clause \"New\" or \"Revised\" License", true, Category::Permissive), "ISC" => LicenseInfo.new("ISC", "ISC License", true, Category::Permissive), "Zlib" => LicenseInfo.new("Zlib", "zlib License", true, Category::Permissive), "0BSD" => LicenseInfo.new("0BSD", "BSD Zero Clause License", true, Category::Permissive), "WTFPL" => LicenseInfo.new("WTFPL", "Do What The F*ck You Want To Public License", false, Category::Permissive), "CC-BY-4.0" => LicenseInfo.new("CC-BY-4.0", "Creative Commons Attribution 4.0 International", false, Category::Permissive), "PostgreSQL" => LicenseInfo.new("PostgreSQL", "PostgreSQL License", true, Category::Permissive), "BlueOak-1.0.0" => LicenseInfo.new("BlueOak-1.0.0", "Blue Oak Model License 1.0.0", false, Category::Permissive), "Artistic-2.0" => LicenseInfo.new("Artistic-2.0", "Artistic License 2.0", true, Category::Permissive), "BSL-1.0" => LicenseInfo.new("BSL-1.0", "Boost Software License 1.0", true, Category::Permissive), "MS-PL" => LicenseInfo.new("MS-PL", "Microsoft Public License", true, Category::Permissive), "ECL-2.0" => LicenseInfo.new("ECL-2.0", "Educational Community License v2.0", true, Category::Permissive), "BSD-1-Clause" => LicenseInfo.new("BSD-1-Clause", "BSD 1-Clause License", true, Category::Permissive), "AFL-3.0" => LicenseInfo.new("AFL-3.0", "Academic Free License v3.0", true, Category::Permissive), "Python-2.0" => LicenseInfo.new("Python-2.0", "Python License 2.0", true, Category::Permissive), "Ruby" => LicenseInfo.new("Ruby", "Ruby License", false, Category::Permissive), "Unicode-DFS-2016" => LicenseInfo.new("Unicode-DFS-2016", "Unicode License Agreement - Data Files and Software (2016)", false, Category::Permissive), "Vim" => LicenseInfo.new("Vim", "Vim License", false, Category::Permissive), "NCSA" => LicenseInfo.new("NCSA", "University of Illinois/NCSA Open Source License", true, Category::Permissive), "X11" => LicenseInfo.new("X11", "X11 License", false, Category::Permissive), "Libpng" => LicenseInfo.new("Libpng", "libpng License", false, Category::Permissive), "curl" => LicenseInfo.new("curl", "curl License", false, Category::Permissive), "Unlicense" => LicenseInfo.new("Unlicense", "The Unlicense", true, Category::PublicDomain), "CC0-1.0" => LicenseInfo.new("CC0-1.0", "Creative Commons Zero v1.0 Universal", false, Category::PublicDomain), "MPL-2.0" => LicenseInfo.new("MPL-2.0", "Mozilla Public License 2.0", true, Category::WeakCopyleft), "LGPL-2.1-only" => LicenseInfo.new("LGPL-2.1-only", "GNU Lesser General Public License v2.1 only", true, Category::WeakCopyleft), "LGPL-2.1-or-later" => LicenseInfo.new("LGPL-2.1-or-later", "GNU Lesser General Public License v2.1 or later", true, Category::WeakCopyleft), "LGPL-3.0-only" => LicenseInfo.new("LGPL-3.0-only", "GNU Lesser General Public License v3.0 only", true, Category::WeakCopyleft), "LGPL-3.0-or-later" => LicenseInfo.new("LGPL-3.0-or-later", "GNU Lesser General Public License v3.0 or later", true, Category::WeakCopyleft), "EPL-2.0" => LicenseInfo.new("EPL-2.0", "Eclipse Public License 2.0", true, Category::WeakCopyleft), "CC-BY-SA-4.0" => LicenseInfo.new("CC-BY-SA-4.0", "Creative Commons Attribution Share Alike 4.0 International", false, Category::WeakCopyleft), "EUPL-1.2" => LicenseInfo.new("EUPL-1.2", "European Union Public License 1.2", true, Category::WeakCopyleft), "MS-RL" => LicenseInfo.new("MS-RL", "Microsoft Reciprocal License", true, Category::WeakCopyleft), "CDDL-1.0" => LicenseInfo.new("CDDL-1.0", "Common Development and Distribution License 1.0", true, Category::WeakCopyleft), "CPAL-1.0" => LicenseInfo.new("CPAL-1.0", "Common Public Attribution License 1.0", true, Category::WeakCopyleft), "EPL-1.0" => LicenseInfo.new("EPL-1.0", "Eclipse Public License 1.0", true, Category::WeakCopyleft), "MulanPSL-2.0" => LicenseInfo.new("MulanPSL-2.0", "Mulan Permissive Software License, Version 2", true, Category::WeakCopyleft), "GPL-2.0-only" => LicenseInfo.new("GPL-2.0-only", "GNU General Public License v2.0 only", true, Category::StrongCopyleft), "GPL-2.0-or-later" => LicenseInfo.new("GPL-2.0-or-later", "GNU General Public License v2.0 or later", true, Category::StrongCopyleft), "GPL-3.0-only" => LicenseInfo.new("GPL-3.0-only", "GNU General Public License v3.0 only", true, Category::StrongCopyleft), "GPL-3.0-or-later" => LicenseInfo.new("GPL-3.0-or-later", "GNU General Public License v3.0 or later", true, Category::StrongCopyleft), "AGPL-3.0-only" => LicenseInfo.new("AGPL-3.0-only", "GNU Affero General Public License v3.0", true, Category::StrongCopyleft), "AGPL-3.0-or-later" => LicenseInfo.new("AGPL-3.0-or-later", "GNU Affero General Public License v3.0 or later", true, Category::StrongCopyleft), "OSL-3.0" => LicenseInfo.new("OSL-3.0", "Open Software License 3.0", true, Category::StrongCopyleft), "CC-BY-NC-4.0" => LicenseInfo.new("CC-BY-NC-4.0", "Creative Commons Attribution NonCommercial 4.0 International", false, Category::NonCommercial), "CC-BY-NC-SA-4.0" => LicenseInfo.new("CC-BY-NC-SA-4.0", "Creative Commons Attribution NonCommercial ShareAlike 4.0 International", false, Category::NonCommercial), "SSPL-1.0" => LicenseInfo.new("SSPL-1.0", "Server Side Public License, v 1", false, Category::Proprietary), "BSL-1.1" => LicenseInfo.new("BSL-1.1", "Business Source License 1.1", false, Category::Proprietary)}

Class Method Summary

Class Method Detail

def self.category_for(id : String) : Category #

[View source]
def self.lookup(id : String) : LicenseInfo | Nil #

[View source]
def self.parse(expression : String) : Expression #

[View source]
def self.valid_id?(id : String) : Bool #

[View source]