Commit 3429ac28 authored by François Perrad's avatar François Perrad

prepare release 0.3.1

parent 01515cc7
......@@ -2,6 +2,7 @@
/MANIFEST
/*.tar
/*.tar.gz
/*.src.rock
/*.patch
/*.bak
/*.html
......
Revision history for lua-Spore
0.3.1
0.3.1 Sun Feb 1 14:30:00 2015
- switch to lyaml which works with Lua 5.2
0.3.0 Sat May 25 10:30:00 2013
......
......@@ -5,7 +5,7 @@ lua-Spore is licensed under the terms of the MIT/X11 license reproduced below.
===============================================================================
Copyright (C) 2010-2013 Francois Perrad.
Copyright (C) 2010-2015 Francois Perrad.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
......@@ -111,10 +111,8 @@ dist: $(TARBALL)
rockspec: $(TARBALL)
perl -e '$(rockspec_pl)' rockspec.in > rockspec/lua-spore-$(VERSION)-$(REV).rockspec
install-rock: clean dist rockspec
perl -pe 's{http://cloud.github.com/downloads/fperrad/lua-Spore/}{};' \
rockspec/lua-spore-$(VERSION)-$(REV).rockspec > lua-spore-$(VERSION)-$(REV).rockspec
luarocks install lua-spore-$(VERSION)-$(REV).rockspec
rock:
luarocks pack rockspec/lua-spore-$(VERSION)-$(REV).rockspec
check: test
......@@ -128,6 +126,9 @@ test_eg:
luacheck:
luacheck --std=max --codes src --ignore 212 --ignore 213 --ignore 512
luacheck --std=min --codes src/discovery2spore
luacheck --std=min --codes src/wadl2spore
luacheck --std=min --codes eg
luacheck --std=min --config .test.luacheckrc test/*.t
coverage:
......
......@@ -18,13 +18,13 @@ Some specifications of service are available at
Links
-----
The homepage is at [http://fperrad.github.com/lua-Spore](http://fperrad.github.com/lua-Spore),
The homepage is at [http://fperrad.github.io/lua-Spore](http://fperrad.github.io/lua-Spore),
and the sources are hosted at [http://github.com/fperrad/lua-Spore](http://github.com/fperrad/lua-Spore).
Copyright and License
---------------------
Copyright (c) 2010-2013 Francois Perrad
Copyright (c) 2010-2015 Francois Perrad
This library is licensed under the terms of the MIT/X11 license, like Lua itself.
name = "lua-spore"
version = "0.3.0"
version = "0.3.1"
desc = "a generic ReST client"
author = "Francois Perrad"
......
......@@ -51,18 +51,18 @@ for k, v in r.body:gmatch'([^&=]+)=([^&=]*)&?' do keys[k] = v end
assert(keys.oauth_token == 'requestkey')
assert(keys.oauth_token_secret == 'requestsecret')
local r = client:get_access_token()
r = client:get_access_token()
assert(#r.body > 0, r.status)
print(r.body)
for k, v in r.body:gmatch'([^&=]+)=([^&=]*)&?' do keys[k] = v end
assert(keys.oauth_token == 'accesskey')
assert(keys.oauth_token_secret == 'accesssecret')
local r = client:echo{ method = 'foo bar', bar = 'baz' }
r = client:echo{ method = 'foo bar', bar = 'baz' }
print(r.body)
assert(r.body == 'method=foo bar&bar=baz')
local r = client:echo_p{ method = 'foo bar', bar = 'baz' }
r = client:echo_p{ method = 'foo bar', bar = 'baz' }
print(r.body)
assert(r.body == 'method=foo bar&bar=baz')
......
......@@ -27,8 +27,8 @@ dependencies = {
-- 'lyaml >= 5', -- libyaml-dev
-- 'lualogging >= 1.1.4',
-- 'luacrypto >= 0.2.0',
'lua-testmore >= 0.3.0',
'lua-testlongstring >= 0.2.0',
-- 'lua-testmore >= 0.3.0', -- test only
-- 'lua-testlongstring >= 0.2.0', -- test only
}
build = {
type = 'builtin',
......
......@@ -23,7 +23,7 @@ local m = {}
m.early_validate = true
local version = '0.3.0'
local version = '0.3.1'
local function raises (response, reason)
local ex = { response = response, reason = reason }
......@@ -264,7 +264,7 @@ 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-2013 Francois Perrad"
m._COPYRIGHT = "Copyright (c) 2010-2015 Francois Perrad"
return m
--
-- This library is licensed under the terms of the MIT/X11 license,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment