diff --git a/COPYRIGHT b/COPYRIGHT index fcfb275..a630ba6 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,3 +1,34 @@ +lua-Spore LE fork License +------------------------- + +lua-Spore LE fork is licensed under the terms of the MIT license reproduced +below. This means that lua-Spore LE fork is free software and can be used for +both academic and commercial purposes at absolutely no cost. + +=============================================================================== + +Copyright (C) 2021 LogicEditor. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +=============================================================================== + lua-Spore License ----------------- diff --git a/rockspec/lua-spore-0.3.3.41.g5512e02-1.rockspec b/rockspec/lua-spore-0.3.3.41.g5512e02-1.rockspec new file mode 100644 index 0000000..935aa6b --- /dev/null +++ b/rockspec/lua-spore-0.3.3.41.g5512e02-1.rockspec @@ -0,0 +1,68 @@ +package = 'lua-Spore' +version = '0.3.3.41.g5512e02-1' +source = { + url = 'git://github.com/logiceditor-com/lua-Spore.git', + branch = "0.3.3.41.g5512e02" +} +description = { + summary = "a generic ReST client", + detailed = [[ + lua-Spore LE fork is an implementation of SPORE + (Specification to a POrtable Rest Environment), + see http://github.com/SPORE/specifications. + + Some specifications of service are available at + http://github.com/SPORE/api-description. + ]], + homepage = 'https://github.com/logiceditor-com/lua-Spore', + maintainer = 'LogicEditor', + license = 'MIT/X11' +} +dependencies = { + 'lua >= 5.1', + 'luasocket >= 2.0.2', + 'luajson >= 1.3', + 'lyaml >= 5', +} +build = { + type = 'builtin', + modules = { + ['Spore'] = 'src/Spore.lua', + ['Spore.Core'] = 'src/Spore/Core.lua', + ['Spore.GoogleDiscovery'] = 'src/Spore/GoogleDiscovery.lua', + ['Spore.Middleware.Auth.AWS'] = 'src/Spore/Middleware/Auth/AWS.lua', + ['Spore.Middleware.Auth.Basic'] = 'src/Spore/Middleware/Auth/Basic.lua', + ['Spore.Middleware.Auth.Bearer'] = 'src/Spore/Middleware/Auth/Bearer.lua', + ['Spore.Middleware.Auth.DataPublica'] = 'src/Spore/Middleware/Auth/DataPublica.lua', + ['Spore.Middleware.Auth.Digest'] = 'src/Spore/Middleware/Auth/Digest.lua', + ['Spore.Middleware.Auth.OAuth'] = 'src/Spore/Middleware/Auth/OAuth.lua', + ['Spore.Middleware.Cache'] = 'src/Spore/Middleware/Cache.lua', + ['Spore.Middleware.DoNotTrack'] = 'src/Spore/Middleware/DoNotTrack.lua', + ['Spore.Middleware.Format.JSON'] = 'src/Spore/Middleware/Format/JSON.lua', + ['Spore.Middleware.Format.XML'] = 'src/Spore/Middleware/Format/XML.lua', + ['Spore.Middleware.Format.YAML'] = 'src/Spore/Middleware/Format/YAML.lua', + ['Spore.Middleware.Logging'] = 'src/Spore/Middleware/Logging.lua', + ['Spore.Middleware.Mock'] = 'src/Spore/Middleware/Mock.lua', + ['Spore.Middleware.Parameter.Default'] = 'src/Spore/Middleware/Parameter/Default.lua', + ['Spore.Middleware.Parameter.Force'] = 'src/Spore/Middleware/Parameter/Force.lua', + ['Spore.Middleware.Proxy.Basic'] = 'src/Spore/Middleware/Proxy/Basic.lua', + ['Spore.Middleware.Redirection'] = 'src/Spore/Middleware/Redirection.lua', + ['Spore.Middleware.Runtime'] = 'src/Spore/Middleware/Runtime.lua', + ['Spore.Middleware.UserAgent'] = 'src/Spore/Middleware/UserAgent.lua', + ['Spore.Protocols'] = 'src/Spore/Protocols.lua', + ['Spore.Request'] = 'src/Spore/Request.lua', + ['Spore.Swagger'] = 'src/Spore/Swagger.lua', + ['Spore.OpenAPI'] = 'src/Spore/OpenAPI.lua', + ['Spore.RAML'] = 'src/Spore/RAML.lua', + ['Spore.WADL'] = 'src/Spore/WADL.lua', + ['Spore.XML'] = 'src/Spore/XML.lua', + }, + install = { + bin = { + 'src/discovery2spore', + 'src/swagger2spore', + 'src/wadl2spore', + } + }, + copy_directories = { 'docs', 'test' }, +} diff --git a/src/Spore.lua b/src/Spore.lua index bd22a64..6a450e9 100644 --- a/src/Spore.lua +++ b/src/Spore.lua @@ -1,7 +1,9 @@ - --- --- lua-Spore : --- +-------------------------------------------------------------------------------- +-- Spore.lua: main library module +-- This file is a part of lua-Spore LE fork library +-- Copyright (c) lua-Spore LE fork authors +-- (see file `COPYRIGHT` for the license) +-------------------------------------------------------------------------------- local assert = assert local error = error @@ -267,9 +269,6 @@ m.new_from_spec = new_from_spec m._NAME = ... m._VERSION = version m._DESCRIPTION = "lua-Spore : a generic ReST client" -m._COPYRIGHT = "Copyright (c) 2010-2018 Francois Perrad" +m._COPYRIGHT = + "Copyright (c) 2010-2018 Francois Perrad\nCopyright (c) 2021 LogicEditor" return m --- --- This library is licensed under the terms of the MIT/X11 license, --- like Lua itself. --- diff --git a/src/Spore/OpenAPI.lua b/src/Spore/OpenAPI.lua index 2f27c1d..063b68e 100644 --- a/src/Spore/OpenAPI.lua +++ b/src/Spore/OpenAPI.lua @@ -1,7 +1,9 @@ - --- --- lua-Spore : --- +-------------------------------------------------------------------------------- +-- Spore/OpenAPI.lua: OpenAPI v3 specifications loader +-- This file is a part of lua-Spore LE fork library +-- Copyright (c) lua-Spore LE fork authors +-- (see file `COPYRIGHT` for the license) +-------------------------------------------------------------------------------- local pairs = pairs local tonumber = tonumber @@ -170,9 +172,3 @@ function m.new_from_open_api (api, opts, tag) end return m --- --- Copyright (c) 2016-2018 Francois Perrad --- --- This library is licensed under the terms of the MIT/X11 license, --- like Lua itself. --- diff --git a/src/Spore/RAML.lua b/src/Spore/RAML.lua index 8d349b0..f5ce61b 100644 --- a/src/Spore/RAML.lua +++ b/src/Spore/RAML.lua @@ -1,3 +1,10 @@ +-------------------------------------------------------------------------------- +-- Spore/RAML.lua: RAML specifications loader +-- This file is a part of lua-Spore LE fork library +-- Copyright (c) lua-Spore LE fork authors +-- (see file `COPYRIGHT` for the license) +-------------------------------------------------------------------------------- + local pairs = pairs local checktype = require 'Spore'.checktype local new_from_lua = require 'Spore'.new_from_lua diff --git a/src/Spore/Swagger.lua b/src/Spore/Swagger.lua index f2d3490..0bdbdc5 100644 --- a/src/Spore/Swagger.lua +++ b/src/Spore/Swagger.lua @@ -1,7 +1,9 @@ - --- --- lua-Spore : --- +-------------------------------------------------------------------------------- +-- Spore/Swagger.lua: Swagger specifications loader +-- This file is a part of lua-Spore LE fork library +-- Copyright (c) lua-Spore LE fork authors +-- (see file `COPYRIGHT` for the license) +-------------------------------------------------------------------------------- local pairs = pairs local tonumber = tonumber @@ -162,9 +164,3 @@ function m.new_from_swagger (api, opts, tag) end return m --- --- Copyright (c) 2016-2018 Francois Perrad --- --- This library is licensed under the terms of the MIT/X11 license, --- like Lua itself. ---