blurhash_decoder 0.0.0 → 0.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0cbe50b7bb5bc4e8aa1d1901f1e7a3720f12136d9ebdfba9e8aa303dd095f3e
4
- data.tar.gz: 86c86f7b49b351f3f801a7042520edeef8b645b359fc56f0d42ab501ff44ddc9
3
+ metadata.gz: ef4c86ce53b2bf512777904fc288b9258c5a6ff4e8d7d718cb143a7cf19490e8
4
+ data.tar.gz: 8018ccb192400770de3765652a2514d2d1afcc1d6aa9f79905673402fcecf3aa
5
5
  SHA512:
6
- metadata.gz: e6a1b2baea8b812af8b16ec0a4ad01a73503bb38dfea29e68f821a61fdfab76b739dfa55a2d831b8fb3314131fdc65387dc15fb9125651919b4a940d96af59fc
7
- data.tar.gz: 0002e349b9f7fb4ce28a45fc99f512e33edb01ae35f7f505069b560379d49549b45ce6ccfc06a6b7ae2a9649d0f2fd6708a3cfa532fe26603ce71dfb9f3b7627
6
+ metadata.gz: fdc7c50e54f2886005f845bdd80c6b9c1ab285e26950bee361fd24798e91068fafb633ee8296b1f6bcae00b69446b7d0a23527ebddb8572a13b5d62e2f77cbfc
7
+ data.tar.gz: 6e0db129c6e572dac3e0d365e888fb680470f639a9f218102360aa120fa0dc51036d90659d3361316be20e3c411e8cf329644480339e0c740a725187273332cd
@@ -0,0 +1,6 @@
1
+ require "mkmf"
2
+
3
+ abort "missing malloc()" unless have_func "malloc"
4
+ abort "missing free()" unless have_func "free"
5
+
6
+ create_makefile "blurhash_decoder/blurhash_decoder"
@@ -7,7 +7,7 @@ class BlurhashDecoder
7
7
 
8
8
  def decode_blurhash(blurhash, height, width, punch)
9
9
  decode(blurhash, height, width, punch)
10
- base64_image = File.open("tmp/out.png", "rb") do |file|
10
+ base64_image = File.open("out.png", "rb") do |file|
11
11
  Base64.strict_encode64(file.read)
12
12
  end
13
13
  base64_image
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blurhash_decoder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rabin Poudyal
@@ -13,9 +13,11 @@ dependencies: []
13
13
  description: A simple blurhash decoder gem using c.
14
14
  email: rabin@trip101.com
15
15
  executables: []
16
- extensions: []
16
+ extensions:
17
+ - ext/blurhash_decoder/extconf.rb
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - ext/blurhash_decoder/extconf.rb
19
21
  - lib/blurhash_decoder.rb
20
22
  - lib/blurhash_decoder/blurhash_decoder.bundle
21
23
  homepage: https://rubygems.org/gems/hola