fast_thumbhash 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d73528e540800828f98914de9bdbeb637eb6a1ea2564e2b48656e151ae0521a5
4
- data.tar.gz: 0e8ee28b8872286957d0cc4afb894ccfa87a233391b2e1fcbcc89e603123d561
3
+ metadata.gz: 58ceda168edb83030206e690750cd035f7de93474447f15b7690934a9471da3a
4
+ data.tar.gz: c88f2732b5a0614e92b28980dab11a48dbc8ecf813857bf572a6f3d667695151
5
5
  SHA512:
6
- metadata.gz: 1d0964354d31b621773df344c005f6c190c7037a58f46396703c2c7f2805c54f3afe0244cbbdecbeb195f3d0b3c9b6cdf6453265103ebf95e4411dd7eaad159e
7
- data.tar.gz: e104ab2a5e23f1e2a496647d83da5f6bc1e08e6f7692348ba3c4ff7fd6754d49bacdd5862b90281ec73b54bf629509a27cbdfbd2fc4467a2b1ae330115771236
6
+ metadata.gz: dc0bfb9cdf1206f0949ad46589bd8cecfe5c59bac958c1d812239cae38618d5cfe3ea6a61386ab9028386ff452472a37c3cc45082b6d462aebb8b7f542077126
7
+ data.tar.gz: b2449a53c70003ea2ddef3701620e8021140f33d15c1fa9ca96225b553989ed9e661e093adbba66f89377a6294f19fe9b34199409e207cf6bc7cf1d4cc3a72ff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fast_thumbhash (0.2.0)
4
+ fast_thumbhash (0.3.0)
5
5
  ffi
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -56,12 +56,9 @@ This section covers additional options available for the `.thumbhash_to_rgba` me
56
56
  The max_size option allows you to request a thumbnail up to the specified size. This is the suggested option for most use cases.
57
57
 
58
58
  ```ruby
59
- w, h, rgba = described_class.thumbhash_to_rgba(
60
- thumbhash,
61
- max_size: 32
62
- )
59
+ w, h, rgba = described_class.thumbhash_to_rgba(thumbhash, max_size: 32)
63
60
 
64
- puts [w, h].inspect # => [10, 32]
61
+ puts [w, h].inspect # => final image is [10, 32]
65
62
  ```
66
63
 
67
64
  ##### `homogeneous_transform` and `size`
@@ -102,7 +99,7 @@ w, h, rgba = described_class.thumbhash_to_rgba(
102
99
  thumbhash,
103
100
  max_size: 32,
104
101
  fill_mode: :solid,
105
- fill_color: [255, 0, 0, 100],
102
+ fill_color: [255, 0, 0, 100]
106
103
  )
107
104
  ```
108
105
 
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
27
27
  end
28
28
  spec.bindir = "exe"
29
29
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.extensions = %w[ext/fast_thumbhash/extconf.rb]
30
31
  spec.require_paths = ["lib"]
31
32
 
32
33
  spec.add_dependency "ffi"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FastThumbhash
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_thumbhash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
@@ -29,7 +29,8 @@ description: Provides a highly optimized implementation of the ThumbHash algorit
29
29
  email:
30
30
  - s.verna@datocms.com
31
31
  executables: []
32
- extensions: []
32
+ extensions:
33
+ - ext/fast_thumbhash/extconf.rb
33
34
  extra_rdoc_files: []
34
35
  files:
35
36
  - ".rspec"