ruby-vips 2.0.15 → 2.1.2

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 +39 -0
  7. data/Gemfile +3 -1
  8. data/README.md +42 -41
  9. data/Rakefile +13 -21
  10. data/TODO +14 -14
  11. data/VERSION +1 -1
  12. data/example/annotate.rb +6 -6
  13. data/example/connection.rb +26 -0
  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 +30 -0
  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 +191 -79
  29. data/lib/vips/blend_mode.rb +29 -25
  30. data/lib/vips/connection.rb +46 -0
  31. data/lib/vips/gobject.rb +27 -12
  32. data/lib/vips/gvalue.rb +62 -50
  33. data/lib/vips/image.rb +475 -256
  34. data/lib/vips/interpolate.rb +3 -2
  35. data/lib/vips/methods.rb +788 -121
  36. data/lib/vips/mutableimage.rb +173 -0
  37. data/lib/vips/object.rb +171 -54
  38. data/lib/vips/operation.rb +272 -117
  39. data/lib/vips/region.rb +73 -0
  40. data/lib/vips/source.rb +88 -0
  41. data/lib/vips/sourcecustom.rb +89 -0
  42. data/lib/vips/target.rb +86 -0
  43. data/lib/vips/targetcustom.rb +77 -0
  44. data/lib/vips/version.rb +1 -1
  45. data/ruby-vips.gemspec +26 -20
  46. metadata +39 -50
  47. data/.rubocop.yml +0 -22
  48. data/.rubocop_todo.yml +0 -515
  49. data/.travis.yml +0 -62
  50. data/install-vips.sh +0 -26
data/.travis.yml DELETED
@@ -1,62 +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
-
49
- script: bundle exec rake spec
50
-
51
- gemfile:
52
- - Gemfile
53
-
54
- before_install:
55
- - uname -a
56
- - bash install-vips.sh
57
-
58
- jobs:
59
- include:
60
- - stage: Lint
61
- rvm: 2.6
62
- script: bundle exec rake rubocop
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