stitchify 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stitchify.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48c067e2c3fa1dc353033fede77836e8e31bea1
|
4
|
+
data.tar.gz: 404c7badd303a7d60feab38de760cd5f06b3f4b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 730923830e0d1ac04488d8918088e2fb7efc3b12fc7ae3b7313644dd1712da0debe73f67ea2ace0e3fabc4eb2cdf40cf0b4b93b191837e45227b219fd95f84d1
|
7
|
+
data.tar.gz: 8dd9ed05dd8d3da8721b232d51c189ae3ebb135c34c81c666657aeb61cf906191257f4d34c195f3eab805b1479ef4079dee914d8432aec81e04de403d5f25bbb
|
data/lib/stitchify.rb
CHANGED
@@ -28,6 +28,14 @@
|
|
28
28
|
clear_vars
|
29
29
|
end
|
30
30
|
|
31
|
+
def stitch_to_output(img)
|
32
|
+
ascii = img_processor(img)
|
33
|
+
arrs = paragraph_builder(ascii)
|
34
|
+
ret = arrs_to_rasem(arrs, grid).to_s
|
35
|
+
clear_vars
|
36
|
+
ret
|
37
|
+
end
|
38
|
+
|
31
39
|
# ".~:+=o*x^%#@$MW\n .~:+=o*x^%#@$M\nW.~:+=o*x^% #@$MW"
|
32
40
|
|
33
41
|
def stitch_string(str, file = 'stitchify.svg')
|