Skip to content

Commit 59ce77c

Browse files
committed
Add v1.0.0 rockspec
1 parent 27a50a8 commit 59ce77c

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

streams-scm-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "scm-1"
44

55
source = {
66
url = "git+https://github.com/rbaltrusch/stream.lua",
7-
branch = "master", -- this will be replaced by the release workflow
7+
branch = "master",
88
}
99

1010
description = {

streams-v1.0.0.rockspec

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
rockspec_format = "3.0"
2+
package = "streams"
3+
version = "v1.0.0"
4+
5+
source = {
6+
url = "git+https://github.com/rbaltrusch/stream.lua",
7+
tag = "v1.0.0",
8+
}
9+
10+
description = {
11+
summary = "Iterator-chaining library implementing common functional programming patterns such as `map`, `filter`, and `reduce`",
12+
detailed = [[
13+
This library provides a Java-like `Stream` class that provides a fluent interface of lazily-computed and chainable iterator operations such as `map`, `filter`, and `reduce`. For example:
14+
15+
```lua
16+
local fn = require "stream"
17+
fn.stream{2, 3, 4, 7}
18+
:filter(function(x) return x % 2 == 0 end)
19+
:map(function(x) return x ^ 2 end)
20+
:collect() -- {4, 16}
21+
```
22+
]],
23+
homepage = "https://github.com/rbaltrusch/stream.lua",
24+
issues_url = "https://github.com/rbaltrusch/stream.lua/issues",
25+
license = "MIT",
26+
maintainer = "Richard Baltrusch",
27+
}
28+
29+
dependencies = {
30+
"lua >= 5.1"
31+
}
32+
33+
test_dependencies = {
34+
"luaunit",
35+
}
36+
37+
build = {
38+
type = "builtin",
39+
modules = {
40+
stream = "stream.lua",
41+
},
42+
}
43+
44+
test = {
45+
type = "command",
46+
script = "tests/run_tests.lua",
47+
}

0 commit comments

Comments
 (0)