hsss 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -3
- data/lib/hsss/version.rb +1 -1
- data/lib/hsss.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1080db48980236a3db8e1dc0baa4b2af3530182e
|
|
4
|
+
data.tar.gz: 3f5f3ef2a7fac48f33f15417146ad2839c4f2c42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f42ef2b40258f7b2c43d73b9103d483693c7617a6f887e14697f12349f1c9982a0fe80fc015e1f0c255f34e3c12c150658bf4e1380ed9791fa4167d91cf9d0f
|
|
7
|
+
data.tar.gz: e5a444a63c9bdc24e4dd3456b9a98fcab4d66e3c0b54bfbb6b3fdd77b61c8139470049818fcf06742848d2f99989863a4a529c7d39d077edec2b23f359d80db1
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Hash-Safe Script Splinterer, a Lua Script and hash embedder into C source.
|
|
4
4
|
Good for putting Redis Lua scripts in your C headers.
|
|
5
5
|
```
|
|
6
|
-
Usage: hsss [options] files
|
|
6
|
+
Usage: hsss [options] files > output_file.h
|
|
7
7
|
--format [split|whole] Output as separate or a single struct
|
|
8
8
|
--struct [redis_lua_scripts_t]
|
|
9
9
|
C struct name
|
|
@@ -46,7 +46,7 @@ redis.call('del', KEYS[1])
|
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
running `hsss example/*.lua`
|
|
49
|
+
running `hsss --format whole example/*.lua` produces
|
|
50
50
|
```c
|
|
51
51
|
// don't edit this please, it was auto-generated by hsss
|
|
52
52
|
// https://github.com/slact/hsss
|
|
@@ -199,7 +199,19 @@ for((script_src)=(char **)&redis_lua_scripts, (script_hash)=(char **)&redis_lua_
|
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
```
|
|
202
|
-
|
|
202
|
+
|
|
203
|
+
## Using in your build tooling
|
|
204
|
+
|
|
205
|
+
`Makefile`:
|
|
206
|
+
```Makefile
|
|
207
|
+
|
|
208
|
+
lua_scripts.h: scripts/*.lua
|
|
209
|
+
hsss scripts/*.lua > lua_scripts.h
|
|
210
|
+
|
|
211
|
+
main_build_rule: lua_scripts.h
|
|
212
|
+
|
|
213
|
+
```
|
|
214
|
+
|
|
203
215
|
## License
|
|
204
216
|
|
|
205
217
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/hsss/version.rb
CHANGED
data/lib/hsss.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hsss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Leo P.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -113,3 +113,4 @@ signing_key:
|
|
|
113
113
|
specification_version: 4
|
|
114
114
|
summary: Hash-Safe Script Splinterer
|
|
115
115
|
test_files: []
|
|
116
|
+
has_rdoc:
|