stitchify 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stitchify.rb +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c73c9993fb08707c070876e610733903a80fc6e
4
- data.tar.gz: b09b9fcca355a156c0ba60425767faac7da06489
3
+ metadata.gz: c48c067e2c3fa1dc353033fede77836e8e31bea1
4
+ data.tar.gz: 404c7badd303a7d60feab38de760cd5f06b3f4b3
5
5
  SHA512:
6
- metadata.gz: 8d810c0bec150c1525dddc6c140026adfa04ad2c6851d6fecf8356f8e11f2d61ad5fe2056b80aa28b0846f938e10fa2ba052a44c118f89153ba6fac9e94f12dd
7
- data.tar.gz: 05056621ccac0f50e750ff4b473a8aed14bec07f7acef7ea41715751c4fa8260cbb622b24b09ecbb223b5f527753a610c74592c0cedc551be314eae812d3c81f
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')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stitchify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ellen Wondra