Skip to content

Commit 30e9f2b

Browse files
author
Louis Brauer
committed
first commit
0 parents  commit 30e9f2b

14 files changed

+12992
-0
lines changed

.busted

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
return {
2+
_all = {
3+
coverage = true
4+
},
5+
default = {
6+
verbose = true,
7+
ROOT = {"tests"}
8+
}
9+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
luacov.

.travis.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
language: python
2+
3+
sudo: false
4+
5+
env:
6+
matrix:
7+
- LUA="lua 5.1"
8+
- LUA="lua 5.2"
9+
- LUA="lua 5.3"
10+
- LUA="luajit @"
11+
- LUA="luajit 2.0"
12+
- LUA="luajit 2.1"
13+
14+
branches:
15+
only:
16+
- master
17+
18+
before_install:
19+
- pip install hererocks
20+
- hererocks here -r^ --$LUA # Install latest LuaRocks version
21+
# plus the Lua version for this build job
22+
# into 'here' subdirectory
23+
- export PATH=$PATH:$PWD/here/bin # Add directory with all installed binaries to PATH
24+
- eval `luarocks path --bin`
25+
- luarocks install luacov-coveralls
26+
- luarocks install busted
27+
28+
install:
29+
- luarocks install --only-deps lua-dropbox-0.1-0.rockspec
30+
- if [ "$ZLIB" = "lzlib" ]; then luarocks install lzlib; fi
31+
- if [ "$ZLIB" = "lua-zlib" ]; then luarocks install lua-zlib; fi
32+
33+
script:
34+
- busted -c
35+
36+
after_success:
37+
- luacov-coveralls -v
38+
39+
notifications:
40+
email:
41+
on_success: change
42+
on_failure: always
43+
44+
cache:
45+
directories:
46+
- $HOME/.cache/hererocks

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Louis Brauer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
lua-dropbox
2+
====
3+
[![License](http://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)
4+
[![Coverage Status](https://coveralls.io/repos/louis77/lua-dropbox/badge.svg?branch=master&service=github)](https://coveralls.io/github/louis77/lua-dropbox?branch=master)
5+
6+
7+
A non-official wrapper around Dropbox API v2
8+
9+
TODO
10+
====
11+
Exception handling
12+
Implement rest of API
13+
14+
15+
Usage
16+
====
17+
18+
> dropbox = require('dropbox')
19+
> dropbox.set_token "PUT_YOUR_ACCESS_TOKEN_HERE"
20+
> response = dropbox.create_folder('/new_folder')
21+
22+
The rest of the API documentation is on the [doc](http://github.com/louis77/lua-dropbox/doc) page.
23+
24+
25+
Dependencies
26+
====
27+
28+
todo
29+
30+
31+
Tests
32+
====
33+
34+
Tests are located in the tests directory and are written using [busted](http://olivinelabs.com/busted/ "Busted home page").
35+
36+
Install `busted`:
37+
38+
$ luarocks install busted
39+
40+
Run Tests (using the packaged .busted config):
41+
42+
$ busted
43+
44+
Licensing
45+
====
46+
47+
`lua-dropbox` is licensed under the MIT license. See LICENSE.md for details on the MIT license.

0 commit comments

Comments
 (0)