From d004f9795c0bd1325fd66c18fa3a1f7dd5bf1049 Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Wed, 10 Nov 2021 11:03:49 +0300 Subject: [PATCH 1/7] COPYRIGHT: add lua-Spore LE fork License info --- COPYRIGHT | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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 ----------------- From 12a9fccd0bea2e7073d78099440bfdc330f403df Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Wed, 10 Nov 2021 11:04:27 +0300 Subject: [PATCH 2/7] src/Spore.lua: replace header, remove footer --- src/Spore.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/Spore.lua b/src/Spore.lua index bd22a64..0b3eafc 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 @@ -269,7 +271,3 @@ m._VERSION = version m._DESCRIPTION = "lua-Spore : a generic ReST client" m._COPYRIGHT = "Copyright (c) 2010-2018 Francois Perrad" return m --- --- This library is licensed under the terms of the MIT/X11 license, --- like Lua itself. --- From aadff44ea8fb41c7d722aab5a25883748ea10f8c Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Wed, 10 Nov 2021 11:04:45 +0300 Subject: [PATCH 3/7] src/Spore.lua: update _COPYRIGHT module metadata --- src/Spore.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Spore.lua b/src/Spore.lua index 0b3eafc..6a450e9 100644 --- a/src/Spore.lua +++ b/src/Spore.lua @@ -269,5 +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 From 7f1d11c36b32f0097c3c844aa21bf20202b56db1 Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Wed, 10 Nov 2021 11:05:50 +0300 Subject: [PATCH 4/7] src/Spore/OpenAPI.lua: replace header, remove footer --- src/Spore/OpenAPI.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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. --- From c98140c60b1a465aa8678df0dd4874c670f1350b Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Wed, 10 Nov 2021 11:06:08 +0300 Subject: [PATCH 5/7] src/Spore/Swagger.lua: replace header, remove footer --- src/Spore/Swagger.lua | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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. --- From 5512e02c4eb968fafff8d5dcde14bcab93b9c433 Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Wed, 10 Nov 2021 11:06:23 +0300 Subject: [PATCH 6/7] src/Spore/RAML.lua: add header --- src/Spore/RAML.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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 From 5b57fd61300b65bc9e3ac95a3d724cf6860ef128 Mon Sep 17 00:00:00 2001 From: Alexey Romanoff Date: Wed, 10 Nov 2021 11:10:21 +0300 Subject: [PATCH 7/7] rockspec: add lua-spore-0.3.3.41.g5512e02-1.rockspec --- .../lua-spore-0.3.3.41.g5512e02-1.rockspec | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 rockspec/lua-spore-0.3.3.41.g5512e02-1.rockspec 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' }, +}