dragonfly_libvips 1.0.2 → 1.0.4

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
  SHA1:
3
- metadata.gz: ac436d551d9ccc732c27161a35c0f80962ca7746
4
- data.tar.gz: 53eaccc65db78f1640ad11543e1eefb38b64139a
3
+ metadata.gz: 65004e9698c0f1ba6ef5b91e3e2cb930e2df0303
4
+ data.tar.gz: 34f3336555fb52567c0ca33ee1b11899a4decd93
5
5
  SHA512:
6
- metadata.gz: ee485134a812e6aba9808283c87bf55c07c31ca14d1d21abf92bc32e88055498c035b5c3e944685f4574fb586f78b3a5e4924a0c8b692f269916f4072a727c1f
7
- data.tar.gz: bd2f3aae3d786b8840cc360f63533d7d597089871e4790759d80fe611812e64cb827b5d3ef2aa226ff10f73d3dfc065dc280c6d9b30ae6971e1672c30517ea71
6
+ metadata.gz: 468f69d927216efde8c3bc764aca80c1ffa656f3784ebe79621e6b6c5ac45ce3ac152a0e155e8aed5aecf033b62ac83d838f369e1390ae300d4ac5782ea1549d
7
+ data.tar.gz: b4d44a6eeaab11a1888a4e0ab347bc09ae313e2f2e14f4a9b442afe9e01fc0ddde653a27fd230f82bf8f317ac9a3c6bdc7ae951336b1412af94f17e30fd2c2b7
data/.travis.yml CHANGED
@@ -6,15 +6,14 @@ sudo: required
6
6
  dist: trusty
7
7
  rvm:
8
8
  - 2.2.5
9
+
9
10
  before_install:
10
11
  - gem install bundler -v 1.12.5
11
12
  - sudo apt-get update
12
- - sudo apt-get install -y gobject-introspection libgirepository1.0-dev gtk-doc-tools libglib2.0-dev libpoppler-glib-dev
13
- - export GI_TYPELIB_PATH="$VIPS_LIBDIR/girepository-1.0"
14
- - curl -O https://poppler.freedesktop.org/poppler-0.51.0.tar.xz
15
- - tar xf poppler-0.51.0.tar.xz && cd poppler-0.51.0 && ./configure --prefix=/usr --sysconfdir=/etc --disable-static --enable-build-type=release --enable-cmyk --enable-xpdf-headers --with-testdatadir=$PWD/testfiles && sudo make && sudo make install
13
+ - sudo apt-get install -y gobject-introspection libgirepository1.0-dev libglib2.0-dev libpoppler-glib-dev
16
14
  - curl -O http://www.vips.ecs.soton.ac.uk/supported/8.4/vips-8.4.5.tar.gz
17
- - tar zvxf vips-8.4.5.tar.gz && cd vips-8.4.5 && ./configure $1 --enable-introspection && sudo make && sudo make install
15
+ - tar zvxf vips-8.4.5.tar.gz && cd vips-8.4.5 && ./configure && sudo make && sudo make install
16
+ - export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.0/
18
17
  - sudo ldconfig
19
18
 
20
19
  notifications:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.4
4
+
5
+ * `vips` is required closer to when the classes are called, in hope of fixing [#107](https://github.com/jcupitt/ruby-vips/issues/107)
6
+
3
7
  ## 1.0.0
4
8
 
5
9
  * rewritten to use `ruby-vips` instead of CLI vips utils, which should result in better performance
data/README.md CHANGED
@@ -28,6 +28,10 @@ Or install it yourself as:
28
28
  $ gem install dragonfly_libvips
29
29
  ```
30
30
 
31
+ ### libvips
32
+
33
+ If you run into trouble installing `libvips` with Ruby introspection on Linux, follow the [build steps here](https://github.com/tomasc/dragonfly_libvips/blob/master/.travis.yml). Please note the importance of `gobject-introspection` and `libgirepository1.0-dev` plus the `export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.0/` and `ldconfig`.
34
+
31
35
  ## Dependencies
32
36
 
33
37
  The [vips](http://www.vips.ecs.soton.ac.uk/index.php?title=Supported) library and its [dependencies](https://github.com/jcupitt/libvips#dependencies).
@@ -1,9 +1,8 @@
1
- require 'vips'
2
-
3
1
  module DragonflyLibvips
4
2
  module Analysers
5
3
  class ImageProperties
6
4
  def call(content)
5
+ require 'vips'
7
6
  img = ::Vips::Image.new_from_file(content.path, access: :sequential)
8
7
 
9
8
  {
@@ -1,5 +1,4 @@
1
1
  require 'active_support/core_ext/hash'
2
- require 'vips'
3
2
 
4
3
  module DragonflyLibvips
5
4
  module Processors
@@ -13,6 +12,7 @@ module DragonflyLibvips
13
12
  input_options['access'] ||= 'sequential'
14
13
  output_options['profile'] ||= DragonflyLibvips::EPROFILE_PATH
15
14
 
15
+ require 'vips'
16
16
  img = ::Vips::Image.new_from_file(content.path, input_options)
17
17
 
18
18
  content.update(img.write_to_buffer(".#{format}", output_options), 'format' => format)
@@ -1,5 +1,4 @@
1
1
  require 'active_support/core_ext/hash'
2
- require 'vips'
3
2
 
4
3
  module DragonflyLibvips
5
4
  module Processors
@@ -15,6 +14,7 @@ module DragonflyLibvips
15
14
  input_options['access'] ||= 'sequential'
16
15
  output_options['profile'] ||= DragonflyLibvips::EPROFILE_PATH
17
16
 
17
+ require 'vips'
18
18
  img = ::Vips::Image.new_from_file(content.path, input_options)
19
19
 
20
20
  img = img.rot("d#{rotate}")
@@ -1,6 +1,5 @@
1
1
  require 'active_support/core_ext/hash'
2
2
  require 'dragonfly_libvips/dimensions'
3
- require 'vips'
4
3
 
5
4
  module DragonflyLibvips
6
5
  module Processors
@@ -21,6 +20,7 @@ module DragonflyLibvips
21
20
  input_options['access'] ||= 'sequential'
22
21
  output_options['profile'] ||= DragonflyLibvips::EPROFILE_PATH
23
22
 
23
+ require 'vips'
24
24
  img = ::Vips::Image.new_from_file(content.path, input_options)
25
25
 
26
26
  dimensions = case geometry
@@ -1,3 +1,3 @@
1
1
  module DragonflyLibvips
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly_libvips
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-25 00:00:00.000000000 Z
11
+ date: 2017-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dragonfly
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.4.5.1
176
+ rubygems_version: 2.5.2
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Dragonfly analysers and processors for libvips image processing library.