ruby-vips 2.0.17 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +42 -0
  3. data/.github/workflows/test.yml +80 -0
  4. data/.standard.yml +17 -0
  5. data/.yardopts +0 -1
  6. data/CHANGELOG.md +13 -0
  7. data/Gemfile +3 -1
  8. data/README.md +4 -4
  9. data/Rakefile +13 -21
  10. data/TODO +3 -6
  11. data/VERSION +1 -1
  12. data/example/annotate.rb +6 -6
  13. data/example/connection.rb +18 -9
  14. data/example/daltonize8.rb +6 -6
  15. data/example/draw_lines.rb +30 -0
  16. data/example/example1.rb +4 -4
  17. data/example/example2.rb +6 -6
  18. data/example/example3.rb +5 -5
  19. data/example/example4.rb +2 -2
  20. data/example/example5.rb +4 -4
  21. data/example/inheritance_with_refcount.rb +35 -36
  22. data/example/progress.rb +3 -3
  23. data/example/thumb.rb +6 -6
  24. data/example/trim8.rb +1 -1
  25. data/example/watermark.rb +2 -2
  26. data/example/wobble.rb +1 -1
  27. data/lib/ruby-vips.rb +1 -1
  28. data/lib/vips.rb +121 -75
  29. data/lib/vips/blend_mode.rb +29 -25
  30. data/lib/vips/connection.rb +4 -4
  31. data/lib/vips/gobject.rb +18 -11
  32. data/lib/vips/gvalue.rb +54 -54
  33. data/lib/vips/image.rb +232 -155
  34. data/lib/vips/interpolate.rb +3 -2
  35. data/lib/vips/methods.rb +165 -15
  36. data/lib/vips/mutableimage.rb +154 -0
  37. data/lib/vips/object.rb +84 -85
  38. data/lib/vips/operation.rb +161 -82
  39. data/lib/vips/region.rb +6 -6
  40. data/lib/vips/source.rb +11 -12
  41. data/lib/vips/sourcecustom.rb +7 -8
  42. data/lib/vips/target.rb +12 -13
  43. data/lib/vips/targetcustom.rb +9 -10
  44. data/lib/vips/version.rb +1 -1
  45. data/ruby-vips.gemspec +26 -22
  46. metadata +28 -48
  47. data/.rubocop.yml +0 -22
  48. data/.rubocop_todo.yml +0 -473
  49. data/.travis.yml +0 -57
  50. data/install-vips.sh +0 -26
data/.travis.yml DELETED
@@ -1,57 +0,0 @@
1
- dist: xenial
2
-
3
- env:
4
- global:
5
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
6
- - VIPS_VERSION_MAJOR=8
7
- - VIPS_VERSION_MINOR=7
8
- - VIPS_VERSION_MICRO=2
9
- - PATH=$HOME/vips/bin:$PATH
10
- - LD_LIBRARY_PATH=$HOME/vips/lib:$LD_LIBRARY_PATH
11
- - PKG_CONFIG_PATH=$HOME/vips/lib/pkgconfig:$PKG_CONFIG_PATH
12
-
13
- addons:
14
- apt:
15
- packages:
16
- - libexpat1-dev
17
- - gettext
18
- - libglib2.0-dev
19
- - liborc-0.4-dev
20
- - libfftw3-dev
21
- - liblcms2-dev
22
- - libmagickwand-dev
23
- - libopenexr-dev
24
- - libcfitsio3-dev
25
- - libgif-dev
26
- - libgsf-1-dev
27
- - libmatio-dev
28
- - libopenslide-dev
29
- - libpango1.0-dev
30
- - libpoppler-glib-dev
31
- - librsvg2-dev
32
- - libwebp-dev
33
-
34
- cache:
35
- bundler: true
36
- directories:
37
- - $HOME/vips
38
-
39
- language: ruby
40
- rvm:
41
- - 2.0
42
- - 2.1
43
- - 2.2
44
- - 2.3
45
- - 2.4
46
- - 2.5
47
- - 2.6
48
- - 2.7
49
-
50
- script: bundle exec rake spec
51
-
52
- gemfile:
53
- - Gemfile
54
-
55
- before_install:
56
- - uname -a
57
- - bash install-vips.sh
data/install-vips.sh DELETED
@@ -1,26 +0,0 @@
1
- #!/bin/bash
2
-
3
- vips_site=https://github.com/libvips/libvips/releases/download
4
- version=$VIPS_VERSION_MAJOR.$VIPS_VERSION_MINOR.$VIPS_VERSION_MICRO
5
-
6
- set -e
7
-
8
- # do we already have the correct vips built? early exit if yes
9
- # we could check the configure params as well I guess
10
- if [ -d "$HOME/vips/bin" ]; then
11
- installed_version=$($HOME/vips/bin/vips --version)
12
- escaped_version="$VIPS_VERSION_MAJOR\.$VIPS_VERSION_MINOR\.$VIPS_VERSION_MICRO"
13
- echo "Need vips-$version"
14
- echo "Found $installed_version"
15
- if [[ "$installed_version" =~ ^vips-$escaped_version ]]; then
16
- echo "Using cached directory"
17
- exit 0
18
- fi
19
- fi
20
-
21
- rm -rf $HOME/vips
22
- wget $vips_site/v$version/vips-$version.tar.gz
23
- tar xf vips-$version.tar.gz
24
- cd vips-$version
25
- CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 ./configure --prefix=$HOME/vips $*
26
- make && make install