Skip to content

Commit 82e3af5

Browse files
committed
Move to lulpeg, update readme and rockspecs
We decided to switch to `lulpeg` for now. It is written in lua and appears to be more stable then lpeg, which happen to crash under tarantool (or luajit). Additional research on this topic is needed. Also, unlike lpeg, lulpeg is available in tarantool ecosystem. We may return to the topic lpeg/lulpeg later, when performance issues pops up. Removed graphql/package.lua, since there are no plans to distribute package through lit right now.
1 parent 6312c75 commit 82e3af5

File tree

5 files changed

+17
-62
lines changed

5 files changed

+17
-62
lines changed

README.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
GraphQL Lua [![Join the chat at https://gitter.im/bjornbytes/graphql-lua](https://badges.gitter.im/bjornbytes/graphql-lua.svg)](https://gitter.im/bjornbytes/graphql-lua?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2-
===
1+
Lua implementation of GraphQL for Tarantool
2+
===========================================
3+
4+
Lua implementation of GraphQL for Tarantool. It is based on [graphql-lua](https://github.com/bjornbytes/graphql-lua).
35

4-
Lua implementation of GraphQL.
56

67
Installation
78
------------
89

9-
1. Using luvit
10-
11-
lit install bjornbytes/graphql
12-
13-
2. Using luarocks
14-
15-
luarocks install graphql
10+
```bash
11+
tarantoolctl rocks install https://raw.githubusercontent.com/tarantool/graphql/master/graphql-scm-1.rockspec
12+
```
1613

1714
Example
1815
---
@@ -106,8 +103,9 @@ Status
106103
Running tests
107104
---
108105

109-
```lua
110-
lua tests/runner.lua
106+
```bash
107+
tarantoolctl rocks make # optionally
108+
tarantool tests/runner.lua
111109
```
112110

113111
License

graphql-0.0.1-1.rockspec

Lines changed: 0 additions & 32 deletions
This file was deleted.

graphql-0.0.2-1.rockspec renamed to graphql-scm-1.rockspec

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
package = 'graphql'
2-
version = '0.0.2-1'
2+
version = 'scm-1'
33

44
source = {
5-
url = 'git://github.com/bjornbytes/graphql-lua.git'
5+
url = 'git://github.com/tarantool/graphql.git'
66
}
77

88
description = {
9-
summary = 'Lua GraphQL implementation',
10-
homepage = 'https://github.com/bjornbytes/graphql-lua',
11-
maintainer = 'https://github.com/bjornbytes',
9+
summary = 'GraphQL implementation for Tarantool',
10+
homepage = 'https://github.com/tarantool/graphql',
11+
maintainer = 'https://github.com/tarantool',
1212
license = 'MIT'
1313
}
1414

1515
dependencies = {
1616
'lua >= 5.1',
17-
'lpeg'
17+
'lulpeg',
1818
}
1919

2020
build = {

graphql/package.lua

Lines changed: 0 additions & 11 deletions
This file was deleted.

graphql/parse.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local lpeg = require 'lpeg'
1+
local lpeg = require 'lulpeg'
22
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
33
local C, Ct, Cmt, Cg, Cc, Cf, Cmt = lpeg.C, lpeg.Ct, lpeg.Cmt, lpeg.Cg, lpeg.Cc, lpeg.Cf, lpeg.Cmt
44

0 commit comments

Comments
 (0)