ruby-vips 2.0.13 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) 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 +44 -0
  7. data/Gemfile +3 -1
  8. data/README.md +45 -47
  9. data/Rakefile +13 -15
  10. data/TODO +19 -10
  11. data/VERSION +1 -1
  12. data/example/annotate.rb +7 -7
  13. data/example/connection.rb +26 -0
  14. data/example/daltonize8.rb +27 -29
  15. data/example/draw_lines.rb +30 -0
  16. data/example/example1.rb +5 -6
  17. data/example/example2.rb +11 -11
  18. data/example/example3.rb +9 -9
  19. data/example/example4.rb +8 -8
  20. data/example/example5.rb +8 -9
  21. data/example/inheritance_with_refcount.rb +203 -221
  22. data/example/progress.rb +30 -0
  23. data/example/thumb.rb +12 -14
  24. data/example/trim8.rb +7 -7
  25. data/example/watermark.rb +15 -36
  26. data/example/wobble.rb +25 -25
  27. data/lib/ruby-vips.rb +1 -1
  28. data/lib/vips.rb +473 -338
  29. data/lib/vips/access.rb +9 -9
  30. data/lib/vips/align.rb +7 -8
  31. data/lib/vips/angle.rb +8 -9
  32. data/lib/vips/angle45.rb +12 -13
  33. data/lib/vips/bandformat.rb +16 -18
  34. data/lib/vips/blend_mode.rb +36 -0
  35. data/lib/vips/coding.rb +11 -12
  36. data/lib/vips/compass_direction.rb +13 -14
  37. data/lib/vips/connection.rb +46 -0
  38. data/lib/vips/direction.rb +7 -8
  39. data/lib/vips/extend.rb +13 -14
  40. data/lib/vips/gobject.rb +111 -100
  41. data/lib/vips/gvalue.rb +243 -237
  42. data/lib/vips/image.rb +1501 -1338
  43. data/lib/vips/interesting.rb +10 -11
  44. data/lib/vips/interpolate.rb +50 -54
  45. data/lib/vips/interpretation.rb +25 -26
  46. data/lib/vips/kernel.rb +18 -19
  47. data/lib/vips/methods.rb +929 -309
  48. data/lib/vips/mutableimage.rb +154 -0
  49. data/lib/vips/object.rb +318 -208
  50. data/lib/vips/operation.rb +467 -320
  51. data/lib/vips/operationboolean.rb +10 -11
  52. data/lib/vips/operationcomplex.rb +8 -9
  53. data/lib/vips/operationcomplex2.rb +6 -7
  54. data/lib/vips/operationcomplexget.rb +7 -8
  55. data/lib/vips/operationmath.rb +14 -15
  56. data/lib/vips/operationmath2.rb +6 -7
  57. data/lib/vips/operationrelational.rb +11 -12
  58. data/lib/vips/operationround.rb +7 -8
  59. data/lib/vips/region.rb +73 -0
  60. data/lib/vips/size.rb +9 -10
  61. data/lib/vips/source.rb +88 -0
  62. data/lib/vips/sourcecustom.rb +89 -0
  63. data/lib/vips/target.rb +86 -0
  64. data/lib/vips/targetcustom.rb +77 -0
  65. data/lib/vips/version.rb +1 -2
  66. data/ruby-vips.gemspec +29 -20
  67. metadata +51 -40
  68. data/.travis.yml +0 -55
  69. data/install-vips.sh +0 -26
data/.travis.yml DELETED
@@ -1,55 +0,0 @@
1
- dist: trusty
2
- sudo: false
3
-
4
- env:
5
- global:
6
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
7
- - VIPS_VERSION_MAJOR=8
8
- - VIPS_VERSION_MINOR=6
9
- - VIPS_VERSION_MICRO=4
10
- - PATH=$HOME/vips/bin:$PATH
11
- - LD_LIBRARY_PATH=$HOME/vips/lib:$LD_LIBRARY_PATH
12
- - PKG_CONFIG_PATH=$HOME/vips/lib/pkgconfig:$PKG_CONFIG_PATH
13
-
14
- addons:
15
- apt:
16
- packages:
17
- - libexpat1-dev
18
- - gettext
19
- - libglib2.0-dev
20
- - liborc-0.4-dev
21
- - libfftw3-dev
22
- - liblcms2-dev
23
- - libmagickwand-dev
24
- - libopenexr-dev
25
- - libcfitsio3-dev
26
- - libgif-dev
27
- - libgsf-1-dev
28
- - libmatio-dev
29
- - libopenslide-dev
30
- - libpango1.0-dev
31
- - libpoppler-glib-dev
32
- - librsvg2-dev
33
- - libwebp-dev
34
-
35
- cache:
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
-
48
- script: "bundle exec rake"
49
-
50
- gemfile:
51
- - Gemfile
52
-
53
- before_install:
54
- - uname -a
55
- - bash install-vips.sh
data/install-vips.sh DELETED
@@ -1,26 +0,0 @@
1
- #!/bin/bash
2
-
3
- vips_site=https://github.com/jcupitt/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