webp-ffi 0.2.4 → 0.2.5

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
  SHA1:
3
- metadata.gz: 34b1495b74a5385dd27950b6e4bc2f4e5391fa97
4
- data.tar.gz: 90b299d673ff0c22afef51ffbb61d6fabd4733ae
3
+ metadata.gz: c6477ba5c12959272c5f876298ebf8fe7ca91da5
4
+ data.tar.gz: b6cdddd80a1de784a3e649143e98d8a08d70303b
5
5
  SHA512:
6
- metadata.gz: fe4fd8a5a8b3fe9b741bc028c55f13272ff1e642961d88b9bc4bbcbf74b4554c0312617a0e13b3b106473846587d0d4cbee2a0ae0818347e0f471d91badee2f1
7
- data.tar.gz: 7a7b54b518cee8bb959c6a074c4983991492ec1cce5192a8f915568d748f20ad7570581952dd5c1b09ce0e471d87104532ff42c6cb849413a05f6e6b0f89eba4
6
+ metadata.gz: e656666a00108b7b524b366a43803228c6c99a8d8995b7d2ed69eaa20e3a3c128123d9d0c917208b64ed632a2f9ffe7f92cd4ab32105afda352b51e67a7ca5eb
7
+ data.tar.gz: c70b6c901fa02e7ad934394d9bc250b01ac357cf5f60822db083da38ccb496890d2ce6381824c2d3193a0da57579649b798bbe997f0dea72366697b1bf7b0999
@@ -1,23 +1,34 @@
1
1
  language: ruby
2
+
2
3
  before_install:
3
4
  - ./spec/travis_build.sh > /dev/null 2>&1
5
+ - export LD_FLAGS=-L$HOME/opt/lib
6
+ - export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:$HOME/opt/lib
7
+ - export CPATH=$CPATH:$HOME/opt/include
8
+
9
+
4
10
  rvm:
5
- - 1.9.2
6
11
  - 1.9.3
7
12
  - 2.0.0
8
- - 2.1.2
13
+ - 2.1.5
9
14
  - jruby-19mode
10
15
  - rbx-19mode
11
16
  - ruby-head
12
17
  - jruby-head
18
+
19
+ cache: bundler
20
+ sudo: false
21
+
13
22
  notifications:
14
23
  email: false
24
+
15
25
  branches:
16
26
  only:
17
27
  - master
18
28
  - development
29
+
19
30
  matrix:
20
31
  allow_failures:
21
32
  - rvm: rbx-19mode
22
33
  - rvm: ruby-head
23
- - rvm: jruby-head
34
+ - rvm: jruby-head
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Webp-ffi
2
2
 
3
- [![Build Status](https://travis-ci.org/le0pard/webp-ffi.png)](https://travis-ci.org/le0pard/webp-ffi)
4
- [![Code Climate](https://codeclimate.com/github/le0pard/webp-ffi.png)](https://codeclimate.com/github/le0pard/webp-ffi)
3
+ [![Build Status](https://travis-ci.org/le0pard/webp-ffi.svg?branch=master)](https://travis-ci.org/le0pard/webp-ffi)
4
+ [![Code Climate](https://codeclimate.com/github/le0pard/webp-ffi/badges/gpa.svg)](https://codeclimate.com/github/le0pard/webp-ffi)
5
5
 
6
6
  Ruby wrapper for libwebp. What is WebP?
7
7
 
@@ -17,7 +17,7 @@ First of all you should have install libraries: libpng, libjpeg and libtiff.
17
17
 
18
18
  For Ubuntu, Debian:
19
19
 
20
- sudo apt-get install libjpeg-dev libpng-dev libtiff-dev
20
+ sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libwebp-dev
21
21
 
22
22
  For Mac OS:
23
23
 
@@ -27,7 +27,7 @@ or (for MacPorts):
27
27
 
28
28
  sudo port install jpeg libpng tiff
29
29
 
30
- Next, you should [install libwebp](https://developers.google.com/speed/webp/docs/compiling) (if you didn't install it by `brew` in Mac OS). This gem is not support Windows systems (sorry).
30
+ Next, you should [install libwebp](https://developers.google.com/speed/webp/docs/compiling) (if you didn't install it by `brew` in Mac OS or by `apt-get` in Ubuntu or Debian). Webp library version should be >= 0.3.0. This gem is not support Windows systems.
31
31
 
32
32
  ### Final part
33
33
 
data/Rakefile CHANGED
@@ -20,8 +20,12 @@ namespace "ffi-compiler" do
20
20
  c.have_library?('png')
21
21
  c.have_library?('jpeg')
22
22
  c.have_library?('tiff')
23
- c.cflags << "-arch x86_64" if c.platform.mac?
24
- c.ldflags << "-arch x86_64" if c.platform.mac?
23
+ if c.platform.mac?
24
+ c.cflags << "-arch x86_64"
25
+ c.ldflags << "-arch x86_64"
26
+ end
27
+ c.ldflags << ENV['LD_FLAGS'] if ENV['LD_FLAGS']
28
+ c.cflags << ENV['C_FLAGS'] if ENV['C_FLAGS']
25
29
  end
26
30
  end
27
31
  task :compile => ["ffi-compiler:default"]
@@ -35,4 +39,4 @@ task :default => [:clean, :compile, :spec]
35
39
 
36
40
  CLEAN.include('ext/**/*{.o,.log,.so,.bundle}')
37
41
  CLEAN.include('lib/**/*{.o,.log,.so,.bundle}')
38
- CLEAN.include('ext/**/Makefile')
42
+ CLEAN.include('ext/**/Makefile')
@@ -15,6 +15,10 @@ FFI::Compiler::CompileTask.new('webp_ffi') do |c|
15
15
  c.have_library?('jpeg')
16
16
  c.have_library?('tiff')
17
17
  # compiler flags
18
- c.cflags << "-arch x86_64" if c.platform.mac?
19
- c.ldflags << "-arch x86_64" if c.platform.mac?
18
+ if c.platform.mac?
19
+ c.cflags << "-arch x86_64"
20
+ c.ldflags << "-arch x86_64"
21
+ end
22
+ c.ldflags << ENV['LD_FLAGS'] if ENV['LD_FLAGS']
23
+ c.cflags << ENV['C_FLAGS'] if ENV['C_FLAGS']
20
24
  end
@@ -1,3 +1,3 @@
1
1
  module WebP
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -1,8 +1,6 @@
1
1
  #/usr/bin/env sh
2
- wget http://webp.googlecode.com/files/libwebp-0.4.0.tar.gz
3
- tar xvzf libwebp-0.4.0.tar.gz
4
- cd libwebp-0.4.0
5
- ./configure
6
- make
7
- sudo make install
8
- sudo ln -fs /usr/local/lib/libwebp.* /usr/lib/
2
+ wget http://downloads.webmproject.org/releases/webp/libwebp-0.4.2.tar.gz
3
+ tar xvzf libwebp-0.4.2.tar.gz
4
+ cd libwebp-0.4.2
5
+ ./configure --prefix=$HOME/opt
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
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Vasyliev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-05 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi