Download:
child 26:17fa46bb8e80
parent 24:9048a48a9926
25:7af20c4b0579
Anton Shestakov <av6@dwimlabs.net>, Sat, 10 Sep 2016 20:04:43 +0800
hglib: write proper Lua! Yess!

4 файлов изменено, 5 вставок(+), 5 удалений(-) [+]
examples/log.lua file | annotate | diff | comparison | revisions
examples/version.lua file | annotate | diff | comparison | revisions
hglib.lua file | annotate | diff | comparison | revisions
spec/hglib_spec.lua file | annotate | diff | comparison | revisions
--- a/examples/log.lua Sat Sep 10 20:02:58 2016 +0800
+++ b/examples/log.lua Sat Sep 10 20:04:43 2016 +0800
@@ -1,5 +1,5 @@
-local cjson_safe = require('cjson.safe')
-local hglib = require('hglib')
+local cjson_safe = require 'cjson.safe'
+local hglib = require 'hglib'
local client = hglib.Client.open()
--- a/examples/version.lua Sat Sep 10 20:02:58 2016 +0800
+++ b/examples/version.lua Sat Sep 10 20:04:43 2016 +0800
@@ -1,4 +1,4 @@
-local hglib = require('hglib')
+local hglib = require 'hglib'
local client = hglib.Client.open()
--- a/hglib.lua Sat Sep 10 20:02:58 2016 +0800
+++ b/hglib.lua Sat Sep 10 20:04:43 2016 +0800
@@ -1,4 +1,4 @@
-local lpc = require('lpc')
+local lpc = require 'lpc'
local unpack = table.unpack or unpack -- luacheck: read globals unpack
--- a/spec/hglib_spec.lua Sat Sep 10 20:02:58 2016 +0800
+++ b/spec/hglib_spec.lua Sat Sep 10 20:04:43 2016 +0800
@@ -1,4 +1,4 @@
-local hglib = require('hglib')
+local hglib = require 'hglib'
describe('hglib helper functions', function()
describe('decode_i4', function()