Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update master #1

Merged
merged 25 commits into from
May 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2f241d4
Rewrite CI.
asakatida Aug 27, 2016
bb4828a
Remove bad syntax.
asakatida Aug 27, 2016
9abdb10
Study scripting.
asakatida Aug 28, 2016
bf0d81d
Add luarocks to environment.
asakatida Aug 28, 2016
4f9f205
Elevate luarocks privileges.
asakatida Aug 28, 2016
07fc112
Explore testing environment.
asakatida Aug 28, 2016
52ac1c9
Fix working directory.
asakatida Aug 28, 2016
2b0e55b
Fix syntax error.
asakatida Aug 28, 2016
993c98b
Add ssl.
asakatida Aug 28, 2016
650f578
Reset testing infrastructure.
asakatida Sep 4, 2016
36ab897
Fallback on normal settimeout.
asakatida Sep 6, 2016
3deecfb
Explicit pass of self.
asakatida Sep 6, 2016
1efa80e
Unwind extra argument.
asakatida Sep 7, 2016
87a331b
Fix errors squashing callbacks.
asakatida Dec 25, 2016
bdf5416
Improve test to prevent false positive.
asakatida Dec 25, 2016
2537280
Push error creation down in the call stack.
asakatida Dec 25, 2016
acc69c1
Release v1.0.3
asakatida Dec 25, 2016
eca188d
Transition to https://github.com/RebirthDB/rebirthdb-lua.
asakatida May 27, 2018
6474c9c
Merge branch 'v1.0.3'
asakatida May 28, 2018
fbba847
Merge branch 'master' into v1.0.3
asakatida May 28, 2018
b0b2afe
Merge pull request #29 from grandquista/v1.0.3
asakatida May 28, 2018
0bfb073
Merge branch 'master' into upstream_1_0_4
asakatida May 28, 2018
3ad89e1
Merge branch 'master' of https://github.com/grandquista/Lua-ReQL into…
asakatida May 28, 2018
0a51ee5
Fix merge conflict.
asakatida May 28, 2018
e96ab86
Merge pull request #30 from RebirthDB/upstream_1_0_4
asakatida May 28, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ build
# Testing
rethinkdb_data/
t/servroot/
here
ENV
24 changes: 22 additions & 2 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
stds.reql = {
read_globals = {
string = {
read_only = true,
fields = {
pack = {read_only = true},
unpack = {read_only = true}
}
},
table = {
read_only = true,
fields = {
unpack = {read_only = true}
}
}
}
}
std = 'min'
exclude_files = {'here'}
files['spec'] = {std = '+busted'}
max_line_length = 140
files['spec'] = {
max_line_length = false,
std = '+busted'
}
files['src'] = {std = '+reql'}
1 change: 0 additions & 1 deletion .luacov
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
return {
exclude = {
'src/rethinkdb/internal/protodef',
'src/rethinkdb/internal/semver',
},
include = {'src'},
}
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ before_install:
- hererocks here/$LUA_PATH -r^ --$LUA
- source here/$LUA_PATH/bin/activate
- luarocks install luacheck
- luacheck src
- luacheck .
# Fix from https://github.com/leafo/lapis/issues/6
- luarocks install https://gist.githubusercontent.com/starius/b20d3e63929ae678c857/raw/4b4499f442337b6f577422364358590bd00c9d48/luacrypto-0.3.2-2.rockspec

install:
- luarocks build --only-deps lua-reql-1.0.3-0.rockspec
- luarocks build --only-deps lua-reql-1.0.4-0.rockspec
- luarocks build reql-1.0.4-0.rockspec

before_script:
- wget https://download.rethinkdb.com/apt/pool/precise/main/r/rethinkdb/rethinkdb_${RDB_VER}precise_amd64.deb
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.4

- Change source to https://github.com/RebirthDB/rebirthdb-lua

# 1.0.3

- Fix connection callbacks ignored on errors
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
RethinkDB Lua Driver
RebirthDB Lua Driver

Copyright 2010-2012 RethinkDB

Copyright 2014-2016 Adam Grandquist
Copyright 2014-2018 Adam Grandquist

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this product except in compliance with the License.
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Lua-ReQL
# RebirthDB-Lua

Rethinkdb driver in Lua
[![Build Status](https://travis-ci.org/grandquista/Lua-ReQL.svg?branch=master)](https://travis-ci.org/grandquista/Lua-ReQL)
[![Coverage Status](https://coveralls.io/repos/github/grandquista/Lua-ReQL/badge.svg?branch=master)](https://coveralls.io/github/grandquista/Lua-ReQL?branch=master)
RebirthDB driver in Lua
[![Build Status](https://travis-ci.org/RebirthDB/rebirthdb-lua.svg?branch=master)](https://travis-ci.org/RebirthDB/rebirthdb-lua)
[![Coverage Status](https://coveralls.io/repos/github/RebirthDB/rebirthdb-lua/badge.svg?branch=master)](https://coveralls.io/github/RebirthDB/rebirthdb-lua?branch=master)

## Installing
- _IF USING LUA 5.1_ `luarocks install luabitop`
- `luarocks install lua-reql`
- `luarocks install reql`

See [Wiki](https://github.com/grandquista/Lua-ReQL/wiki) for documentation.
See [Wiki](https://github.com/RebirthDB/rebirthdb-lua/wiki) for documentation.

## Dev Dependencies
- Lua >= 5.1
Expand All @@ -17,7 +17,7 @@ See [Wiki](https://github.com/grandquista/Lua-ReQL/wiki) for documentation.
- luacheck
- luacov
- _IF USING LUA 5.1_ luabitop
- RethinkDB
- RebirthDB

## Testing
- `luacheck .`
Expand Down
5 changes: 2 additions & 3 deletions config.ld
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
project = 'Lua-ReQL'
project = 'RebirthDB-Lua'
title = 'Lua-ReQL documentation'
description = 'A Lua driver for RethinkDB.'
description = 'A Lua driver for RebirthDB.'

file = {
'src',
exclude = {
'src/rethinkdb/internal/protodef.lua',
'src/rethinkdb/internal/semver.lua',
}
}
format = 'discount'
22 changes: 11 additions & 11 deletions lua-reql-1.0.3-0.rockspec → lua-reql-1.0.4-0.rockspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
rockspec_format = '1.1'
package = 'lua-reql'
version = '1.0.3-0'
version = '1.0.4-0'
source = {
url = 'git://github.com/grandquista/Lua-ReQL',
branch = 'v1.0.3',
url = 'git://github.com/RebirthDB/rebirthdb-lua',
branch = 'v1.0.4',
}
description = {
summary = 'A Lua driver for RethinkDB.',
detailed = [[
detailed = [===[
# Lua-ReQL

Rethinkdb driver in Lua
Expand All @@ -33,19 +33,20 @@ Rethinkdb driver in Lua
## Installing from source
- `luarocks make`

[![Build Status](https://travis-ci.org/grandquista/Lua-ReQL.svg?branch=master)](https://travis-ci.org/grandquista/Lua-ReQL)
[![Build Status](https://travis-ci.org/RebirthDB/rebirthdb-lua.svg?branch=master)](https://travis-ci.org/RebirthDB/rebirthdb-lua)

[![Coverage Status](https://coveralls.io/repos/github/grandquista/Lua-ReQL/badge.svg?branch=master)](https://coveralls.io/github/grandquista/Lua-ReQL?branch=master)
]],
homepage = 'https://github.com/grandquista/Lua-ReQL/wiki',
[![Coverage Status](https://coveralls.io/repos/github/RebirthDB/rebirthdb-lua/badge.svg?branch=master)](https://coveralls.io/github/RebirthDB/rebirthdb-lua?branch=master)
]===],
homepage = 'https://github.com/RebirthDB/rebirthdb-lua/wiki',
license = 'Apache',
}
dependencies = {
'lua >= 5.1, < 5.4',
'luacrypto ~> 0.3',
'luasocket ~> 3.0',
'luasec ~> 0.6',
'luajson ~> 1.3',
'luasec ~> 0.6',
'luasocket ~> 3.0',
'semver ~> 1.2',
}
build = {
type = 'builtin',
Expand All @@ -69,7 +70,6 @@ build = {
['rethinkdb.internal.protect'] = 'src/rethinkdb/internal/protect.lua',
['rethinkdb.internal.protocol'] = 'src/rethinkdb/internal/protocol.lua',
['rethinkdb.internal.protodef'] = 'src/rethinkdb/internal/protodef.lua',
['rethinkdb.internal.semver'] = 'src/rethinkdb/internal/semver.lua',
['rethinkdb.internal.socket'] = 'src/rethinkdb/internal/socket.lua',
['rethinkdb.internal.utilities'] = 'src/rethinkdb/internal/utilities.lua',
}
Expand Down
76 changes: 76 additions & 0 deletions reql-1.0.4-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
rockspec_format = '1.1'
package = 'reql'
version = '1.0.4-0'
source = {
url = 'git://github.com/RebirthDB/rebirthdb-lua',
branch = 'v1.0.4',
}
description = {
summary = 'A Lua driver for RebirthDB.',
detailed = [===[
# RebirthDB-Lua

RebirthDB driver in Lua

## Installing
- _IF USING LUA 5.1_ `luarocks install luabitop`
- `luarocks install lua-reql`

## Dev Dependencies
- Lua >= 5.1
- Luarocks
- busted
- luacheck
- luacov
- _IF USING LUA 5.1_ luabitop
- RebirthDB

## Testing
- `luacheck .`
- `busted -c`
- `luacov`

## Installing from source
- `luarocks make`

[![Build Status](https://travis-ci.org/RebirthDB/rebirthdb-lua.svg?branch=master)](https://travis-ci.org/RebirthDB/rebirthdb-lua)

[![Coverage Status](https://coveralls.io/repos/github/RebirthDB/rebirthdb-lua/badge.svg?branch=master)](https://coveralls.io/github/RebirthDB/rebirthdb-lua?branch=master)
]===],
homepage = 'https://github.com/RebirthDB/rebirthdb-lua/wiki',
license = 'Apache',
}
dependencies = {
'lua >= 5.1, < 5.4',
'luacrypto ~> 0.3',
'luajson ~> 1.3',
'luasec ~> 0.6',
'luasocket ~> 3.0',
'semver ~> 1.2',
}
build = {
type = 'builtin',
modules = {
reql = 'src/rethinkdb.lua',
['reql.connection_instance'] = 'src/rethinkdb/connection_instance.lua',
['reql.connection'] = 'src/rethinkdb/connection.lua',
['reql.connector'] = 'src/rethinkdb/connector.lua',
['reql.cursor'] = 'src/rethinkdb/cursor.lua',
['reql.depreciate'] = 'src/rethinkdb/depreciate.lua',
['reql.errors'] = 'src/rethinkdb/errors.lua',
['reql.reql'] = 'src/rethinkdb/reql.lua',
['reql.rtype'] = 'src/rethinkdb/rtype.lua',
['reql.internal.bits51'] = 'src/rethinkdb/internal/bits51.lua',
['reql.internal.bits53'] = 'src/rethinkdb/internal/bits53.lua',
['reql.internal.bytes_to_int'] = 'src/rethinkdb/internal/bytes_to_int.lua',
['reql.internal.convert_pseudotype'] = 'src/rethinkdb/internal/convert_pseudotype.lua',
['reql.internal.current_handshake'] = 'src/rethinkdb/internal/current_handshake.lua',
['reql.internal.int_to_bytes'] = 'src/rethinkdb/internal/int_to_bytes.lua',
['reql.internal.pbkdf'] = 'src/rethinkdb/internal/pbkdf.lua',
['reql.internal.protect'] = 'src/rethinkdb/internal/protect.lua',
['reql.internal.protocol'] = 'src/rethinkdb/internal/protocol.lua',
['reql.internal.protodef'] = 'src/rethinkdb/internal/protodef.lua',
['reql.internal.socket'] = 'src/rethinkdb/internal/socket.lua',
['reql.internal.utilities'] = 'src/rethinkdb/internal/utilities.lua',
}
}
2 changes: 1 addition & 1 deletion spec/control_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local function reql_error_formatter(err)
end
end

local version = require('rethinkdb.internal.semver')(string.match(_VERSION, '%d+%.%d+'))
local version = require('semver')(string.match(_VERSION, '%d+%.%d+'))

describe('control', function()
local r
Expand Down
2 changes: 1 addition & 1 deletion spec/json_parser_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local function reql_error_formatter(err)
end
end

local version = require('rethinkdb.internal.semver')(string.match(_VERSION, '%d+%.%d+'))
local version = require('semver')(string.match(_VERSION, '%d+%.%d+'))

describe('control dkjson', function()
local r
Expand Down
4 changes: 2 additions & 2 deletions src/rethinkdb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local utilities = require'rethinkdb.internal.utilities'
local reql = require'rethinkdb.reql'
local rtype = require'rethinkdb.rtype'

local v = require('rethinkdb.internal.semver')
local v = require('semver')

--- Creates an independent driver instance with the passed options.
local function new(driver_options)
Expand All @@ -35,7 +35,7 @@ local function new(driver_options)
r.proto_V1_0 = current_handshake

--- The loaded luarocks version string as a semver.
r.version = v'1.0.3'
r.version = v'1.0.4'
r._VERSION = r.version

connection.init(r)
Expand Down
Loading