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 +4 -4
- data/.travis.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/ext/webp_ffi/webp_ffi.c +4 -0
- data/lib/webp/version.rb +1 -1
- data/spec/travis_build.sh +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 230c18dbe1a3f0839115e36b6fc556cec59b5ad56b0e6a6db51693d615087c95
|
4
|
+
data.tar.gz: 54b3da676153700ab0dfe1c1948b5c819a8c902d105b73a0dbcac89b9afb2eed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe62d9a8fb976d90ea676ab07f1da8dd55696f3644ab856b8a05092f371f32b9a0d5bb8b9950361626eb0d873162e28082dd08c322ae685c009b73d8797c5e4f
|
7
|
+
data.tar.gz: 64b81588de84ee3d1479415ef39bdce8e12438f5e7aa80508a73163a8a7ebde61627a91c4e35d16ec3ddbce5e139d17362e021dcc8f446a7095e02befb1ac7a0
|
data/.travis.yml
CHANGED
@@ -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
|
data/CHANGELOG.md
CHANGED
data/ext/webp_ffi/webp_ffi.c
CHANGED
@@ -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
|
}
|
data/lib/webp/version.rb
CHANGED
data/spec/travis_build.sh
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#/usr/bin/env sh
|
2
|
-
wget http://downloads.webmproject.org/releases/webp/libwebp
|
3
|
-
tar xvzf libwebp
|
4
|
-
cd libwebp
|
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.
|
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
|
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.
|
152
|
+
rubygems_version: 2.7.8
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Ruby wrapper for libwebp
|