Skip to content

Commit

Permalink
Add. Rockspecs for version 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Oct 27, 2015
1 parent a5e10e4 commit 048e93e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
7 changes: 4 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,13 @@ <h3>Fields:</h3>

</li>
<li><span class="parameter">ssl</span>
<span class="types"><a class="type" href="index.html#SSL">SSL</a>, <span class="type">boolean</span> or <a class="type" href="http://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
securety options. `true` mean use default options. Also you can pass protocol name as string. (required `LuaSec` module)
<span class="types"><a class="type" href="index.html#SSL">SSL</a>, <span class="type">boolean</span>, <a class="type" href="http://www.lua.org/manual/5.1/manual.html#5.4">string</a> or <span class="type">opaque</span></span>
securety options. `true` mean use default options. Also you can pass protocol name as string. (required `LuaSec` module).
opaque value used with custom `create` function.
</li>
<li><span class="parameter">create</span>
<span class="types"><span class="type">function</span></span>
constructor for creating socket
constructor for creating socket. If `ssl` option is provided then it pass to `create` function without any changes.
</li>
</ul>

Expand Down
4 changes: 2 additions & 2 deletions lua/sendmail.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- sendmail.lua v0.1.3-dev (2014-09)
-- sendmail.lua v0.1.4 (2015-10)

-- Copyright (c) 2013-2014 Alexey Melnichuk
-- Copyright (c) 2013-2015 Alexey Melnichuk
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
Expand Down
27 changes: 27 additions & 0 deletions rockspecs/sendmail-0.1.4-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package = "sendmail"
version = "0.1.4-1"
source = {
url = "https://github.com/moteus/lua-sendmail/archive/v0.1.4.zip",
dir = "lua-sendmail-0.1.4",
}

description = {
summary = "Simple wrapper around luasoket smtp.send",
detailed = [[
]],
homepage = "https://github.com/moteus/lua-sendmail",
license = "MIT/X11",
}

dependencies = {
"lua >= 5.1",
"luasocket >= 2.0",
}

build = {
type = "builtin",
copy_directories = {"docs"},
modules = {
["sendmail" ] = "lua/sendmail.lua",
}
}
5 changes: 3 additions & 2 deletions sendmail.ldoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ DEFAULT_ENCODE = 'base64'
-- @tfield number|string port (default 25 and 465 if you set `ssl` options)
-- @tfield string user
-- @tfield string password
-- @tfield SSL|boolean|string ssl securety options. `true` mean use default options. Also you can pass protocol name as string. (required `LuaSec` module)
-- @tfield function create constructor for creating socket
-- @tfield SSL|boolean|string|opaque ssl securety options. `true` mean use default options. Also you can pass protocol name as string. (required `LuaSec` module).
-- opaque value used with custom `create` function.
-- @tfield function create constructor for creating socket. If `ssl` option is provided then it pass to `create` function without any changes.
-- @table SERVER

--- a table describe SSL securety options.
Expand Down

0 comments on commit 048e93e

Please sign in to comment.