Skip to content

Commit

Permalink
Merge pull request #5 from chbruyand/v0.0.4
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
rgacogne authored Nov 25, 2024
2 parents 02d0a9f + fe2840e commit 4bdd41e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 35 deletions.
33 changes: 0 additions & 33 deletions rockspec/nats-0.0.3-1.rockspec

This file was deleted.

35 changes: 35 additions & 0 deletions rockspec/nats-0.0.4-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package = "nats"
version = "0.0.4-1"

source = {
url = "git://github.com/PowerDNS/lua-nats.git",
tag = "0.0.4"
}

description = {
summary = "LUA client for NATS messaging system. https://nats.io/",
detailed = [[
LUA client for NATS messaging system. https://nats.io/
Fork of the original implementation https://github.com/DawnAngel/lua-nats/
by Eric Pinto <https://github.com/DawnAngel/>
]],
homepage = "https://github.com/PowerDNS/lua-nats/",
maintainer = "PowerDNS.com B.V.<https://www.powerdns.com/>",
license = "MIT"
}

dependencies = {
"lua >= 5.1",
"luasocket",
"lua-cjson",
"uuid >= 1.0.0",
}

build = {
type = "none",
install = {
lua = {
"src/nats.lua"
}
}
}
8 changes: 6 additions & 2 deletions src/nats.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local nats = {
_VERSION = 'lua-nats 0.0.2',
_VERSION = 'lua-nats 0.0.4',
_DESCRIPTION = 'LUA client for NATS messaging system. https://nats.io',
_COPYRIGHT = 'Copyright (C) 2015 Eric Pinto',
}
Expand All @@ -10,6 +10,10 @@ local nats = {
local cjson = require('cjson')
local uuid = require('uuid')

-- set the random number generator for /dev/urandom. On Windows this isn't available
-- and it returns nil+error, which is passed on to set_rng which then
-- throws a meaningful error.
uuid.set_rng(uuid.rng.urandom())

-- ### Local properties ###

Expand All @@ -20,7 +24,7 @@ local client_prototype = {
user = nil,
pass = nil,
lang = 'lua',
version = '0.0.2',
version = '0.0.4',
verbose = false,
pedantic = false,
trace = false,
Expand Down

0 comments on commit 4bdd41e

Please sign in to comment.