webp-ffi 0.2.6 → 0.2.7

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: 976dae5457f3f3f651095f92ac882a9dc9f8dbe5bb52a99cf07d834c2ef020b3
4
- data.tar.gz: 914c57979aa313a2f999b9031cecd60439fa6a73d4e4e81c0b8c61263c3d1539
3
+ metadata.gz: 230c18dbe1a3f0839115e36b6fc556cec59b5ad56b0e6a6db51693d615087c95
4
+ data.tar.gz: 54b3da676153700ab0dfe1c1948b5c819a8c902d105b73a0dbcac89b9afb2eed
5
5
  SHA512:
6
- metadata.gz: 3bfeb83ba2b884165cabba2dba3409eb6ea1c6f9def8190f2a5f3ac86c2393b91faa432ae1258b36410a02921b2a1273d5bd4e50c04ca5b0e4e6c19f6a5b9e8a
7
- data.tar.gz: fd9fc4f3ded81c06a54c9c606fa63c6d51ef7c1943be9a59ade65124d5589ed4216e20d823a74fcc80a65be09c61a9f99955b2cbd3817a5e7d52d732df1e7879
6
+ metadata.gz: fe62d9a8fb976d90ea676ab07f1da8dd55696f3644ab856b8a05092f371f32b9a0d5bb8b9950361626eb0d873162e28082dd08c322ae685c009b73d8797c5e4f
7
+ data.tar.gz: 64b81588de84ee3d1479415ef39bdce8e12438f5e7aa80508a73163a8a7ebde61627a91c4e35d16ec3ddbce5e139d17362e021dcc8f446a7095e02befb1ac7a0
@@ -6,7 +6,6 @@ before_install:
6
6
  - export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:$HOME/opt/lib
7
7
  - export CPATH=$CPATH:$HOME/opt/include
8
8
 
9
-
10
9
  rvm:
11
10
  - 2.0
12
11
  - 2.1
@@ -19,6 +18,9 @@ rvm:
19
18
  - rbx-19mode
20
19
  - ruby-head
21
20
  - jruby-head
21
+ env:
22
+ - LIBWEBP_VERSION=0.4.4
23
+ - LIBWEBP_VERSION=1.0.2
22
24
 
23
25
  cache: bundler
24
26
  sudo: false
@@ -1,3 +1,7 @@
1
+ ## v0.2.7
2
+
3
+ * Fix build for old libwebp versions
4
+
1
5
  ## v0.2.6
2
6
 
3
7
  * Tested on webp 1.0.2
@@ -64,10 +64,14 @@ int webp_encode(const char *in_file, const char *out_file, const FfiWebpEncodeCo
64
64
  if (encode_config->lossless == 0 || encode_config->lossless == 1){
65
65
  config.lossless = encode_config->lossless;
66
66
  }
67
+
68
+ #if (ENC_MAJ_VERSION == 0 && ENC_MIN_VERSION > 4) || ENC_MAJ_VERSION > 0
67
69
  if (encode_config->near_lossless >= 0 && encode_config->near_lossless <= 100){
68
70
  config.near_lossless = encode_config->near_lossless;
69
71
  config.lossless = 1; // use near-lossless only with lossless
70
72
  }
73
+ #endif
74
+
71
75
  if (encode_config->quality >= 0 && encode_config->quality <= 100){
72
76
  config.quality = encode_config->quality;
73
77
  }
@@ -1,3 +1,3 @@
1
1
  module WebP
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  #/usr/bin/env sh
2
- wget http://downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz
3
- tar xvzf libwebp-1.0.2.tar.gz
4
- cd libwebp-1.0.2
2
+ wget http://downloads.webmproject.org/releases/webp/libwebp-$LIBWEBP_VERSION.tar.gz
3
+ tar xvzf libwebp-$LIBWEBP_VERSION.tar.gz
4
+ cd libwebp-$LIBWEBP_VERSION
5
5
  ./configure --prefix=$HOME/opt
6
6
  make && make install
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webp-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Vasyliev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-31 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.7.6
152
+ rubygems_version: 2.7.8
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Ruby wrapper for libwebp