haystack_worker 1.0.0 → 1.0.1
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.
data/README.md
CHANGED
@@ -20,7 +20,7 @@ It posts data back to the haystack at /job/:id in the form:
|
|
20
20
|
[[1,3,8,etc],[6,4,14,etc]]
|
21
21
|
```
|
22
22
|
|
23
|
-
It returns
|
23
|
+
It returns an empty array if the given search space doesn't contain any potential self-enumerating pangrams.
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
@@ -47,11 +47,9 @@ static VALUE surpluses(VALUE self, VALUE rb_ary) {
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
else {
|
54
|
-
VALUE rb_solutions = rb_ary_new(), rb_solution;
|
50
|
+
VALUE rb_solutions = rb_ary_new();
|
51
|
+
if (position != 0) {
|
52
|
+
VALUE rb_solution;
|
55
53
|
|
56
54
|
for (i = 0; i < position / 26; i++) {
|
57
55
|
rb_solution = rb_ary_new();
|
@@ -62,8 +60,9 @@ static VALUE surpluses(VALUE self, VALUE rb_ary) {
|
|
62
60
|
}
|
63
61
|
|
64
62
|
free(array);
|
65
|
-
return rb_solutions;
|
66
63
|
}
|
64
|
+
|
65
|
+
return rb_solutions;
|
67
66
|
}
|
68
67
|
|
69
68
|
void Init_haystack_worker(void) {
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haystack_worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Christopher Patuzzo
|