barf 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/barf/version.rb +1 -1
- data/lib/barf.rb +1 -3
- data/lib/palette.png +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce3f408af59bb61022d97c216f54b1ef4b6f3e510ea4f137a042d9e3c98dbcc
|
4
|
+
data.tar.gz: 31317413246e279e425bed2e8c1743111d6bfce665177f40d610a1276e3f0c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e136247385368084166da4cafa42dd0f3c806683597a8cfa11f2b96a7d18332a506977ad782848224857419198434e77c354f34e9b79f5cd89a04d6e050e13
|
7
|
+
data.tar.gz: f9277eaf41dd9c6ee246ee385b377f1ccda6123afc33fb706e62da3e1f440c56f4deef3f400ccb907e4a4db9131598f1e35179d506dd258e0fbd8d99a8ef7f94
|
data/lib/barf/version.rb
CHANGED
data/lib/barf.rb
CHANGED
@@ -6,8 +6,6 @@ require "parallel"
|
|
6
6
|
|
7
7
|
module Barf
|
8
8
|
|
9
|
-
@palette = "inline:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP4AAAABCAIAAABxMITKAAABpklEQVR4AW2StWIUXRTHf2d2o9+Huzv85yGooKJKic7wKukueYvZICXW0kZ67CwV7lbh7CVzd+IZ/dv1Y8Dw8PDo8uvYzHSnsIJ4oyrPQafk1KtXfWtoaKjVarXb7cHBwTm6aWJiM2wHwQZjVySUCEtPL1SliDU2QoFoHlPFARihdENWqWcZRc+qWwWy0iOiGqusW8YTlFR4iaLC5ObNbP8cXWkIjyJz9UQW6m8zbrh1SZAyyFnAYayqsRfCGpdq/Rt27mo/8YsiujhO3JjlQ1FG6wwPQVXpg+gcDrpXaQidxMl095KPoNNJVyeI6JarR5vW0eyhIh6VVu0CNykiEkaC0JGiOScEosmst9e72R0uLTbJ8RPg1DjLA2mWJvjeLp49sESjmEx7YQlf9kXcCfV3o+urKLtO3Zdo8qmrDa9t1+5LvrhNh8bH+0fcP+5N7965Un+ufuTQz58LgbnvztlZRTxHsJARFvQ44TRHl4zuCU6A3JNe465rAV8JDV7eT8qvpYfcFdMql+s7ZmYWqvTY37/NQF0p4mLdq1eZZcMjw5s2bfoHC6PO/+pdxgEAAAAASUVORK5CYII="
|
10
|
-
|
11
9
|
def self.print(path)
|
12
10
|
image = MiniMagick::Image.open(path)
|
13
11
|
|
@@ -21,7 +19,7 @@ module Barf
|
|
21
19
|
tmp.flatten
|
22
20
|
tmp.resize "#{terminal_width}x#{new_height}!"
|
23
21
|
tmp.dither 'FloydSteinberg'
|
24
|
-
tmp.remap
|
22
|
+
tmp.remap __dir__ + '/palette.png'
|
25
23
|
end
|
26
24
|
|
27
25
|
# Two dimensional array of pixels:
|
data/lib/palette.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jacob Duffy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_magick
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- exe/barf
|
117
117
|
- lib/barf.rb
|
118
118
|
- lib/barf/version.rb
|
119
|
+
- lib/palette.png
|
119
120
|
homepage: https://github.com/duffyjp/barf
|
120
121
|
licenses:
|
121
122
|
- MIT
|