vips 8.12.2 → 8.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/{development.yml → test.yaml} +2 -3
- data/lib/vips/version.rb +1 -1
- data/lib/vips.rb +2 -2
- data/vips.gemspec +6 -11
- metadata +12 -28
- data/.standard.yml +0 -17
- data/.travis.yml +0 -57
- data/Rakefile +0 -33
- data/TODO +0 -43
- data/ext/Rakefile +0 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6bd237512aae93032374986191fee161225257023c6a25a94a0d3fb9ca94c73
|
4
|
+
data.tar.gz: baf2e85497526b4247f1fdf6b0853241860c6fd1ec7d1002e10a623b5fd66b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c26a85f2626c1c4da2a7221c12d7eb8298ada48cdf2fbbc387ad280e550ad59129de9658c0af4c87be6f6282cefaaeef967fc26b1baba7c69d80f085cdbb9be5
|
7
|
+
data.tar.gz: 2aea627d161349dd7c5bb765118e1689b7b0fa9a09768f5442b8aa8edfd9825f43dca035cbc15693a6fe8d7e2fdc17434c1f833631a341ac2be5341b1d705334
|
@@ -1,4 +1,4 @@
|
|
1
|
-
name:
|
1
|
+
name: Test
|
2
2
|
|
3
3
|
on: [push, pull_request]
|
4
4
|
|
@@ -47,8 +47,7 @@ jobs:
|
|
47
47
|
run: |
|
48
48
|
sudo apt-get update -qq -o Acquire::Retries=3
|
49
49
|
sudo apt-get install --fix-missing -qq -o Acquire::Retries=3 libvips
|
50
|
-
bundle exec rake ext
|
51
50
|
|
52
51
|
- name: Run tests
|
53
52
|
timeout-minutes: 5
|
54
|
-
run: ${{matrix.env}} bundle exec
|
53
|
+
run: ${{matrix.env}} bundle exec rspec
|
data/lib/vips/version.rb
CHANGED
data/lib/vips.rb
CHANGED
@@ -27,7 +27,7 @@ def library_name(name, abi_number)
|
|
27
27
|
if FFI::Platform.windows?
|
28
28
|
"lib#{name}-#{abi_number}.dll"
|
29
29
|
elsif FFI::Platform.mac?
|
30
|
-
"lib#{name}.#{abi_number}
|
30
|
+
"lib#{name}.#{abi_number}"
|
31
31
|
else
|
32
32
|
"lib#{name}.so.#{abi_number}"
|
33
33
|
end
|
@@ -570,7 +570,7 @@ require "vips/gvalue"
|
|
570
570
|
module Vips
|
571
571
|
extend FFI::Library
|
572
572
|
|
573
|
-
ffi_lib
|
573
|
+
ffi_lib library_name("vips", 42)
|
574
574
|
|
575
575
|
LOG_DOMAIN = "VIPS"
|
576
576
|
GLib.set_log_domain LOG_DOMAIN
|
data/vips.gemspec
CHANGED
@@ -5,7 +5,6 @@ Gem::Specification.new do |spec|
|
|
5
5
|
spec.name = "vips"
|
6
6
|
spec.version = Vips::VERSION
|
7
7
|
spec.authors = ["John Cupitt", "Samuel Williams"]
|
8
|
-
spec.email = ["jcupitt@gmail.com", "samuel.williams@oriontransfer.co.nz"]
|
9
8
|
|
10
9
|
spec.summary = "Vips is a high-performance image manipulation library."
|
11
10
|
spec.description = "Provides pre-compiled binaries for libvips."
|
@@ -20,16 +19,12 @@ Gem::Specification.new do |spec|
|
|
20
19
|
|
21
20
|
spec.required_ruby_version = ">= 2.1"
|
22
21
|
|
23
|
-
spec.extensions = %w[ext/Rakefile]
|
22
|
+
# spec.extensions = %w[ext/Rakefile]
|
24
23
|
|
25
|
-
spec.add_runtime_dependency "ffi", "~> 1.12"
|
24
|
+
spec.add_runtime_dependency "ffi", ["~> 1.12"]
|
26
25
|
|
27
|
-
spec.add_development_dependency "rake", "~>
|
28
|
-
spec.add_development_dependency "rspec", "~> 3.3"
|
29
|
-
spec.add_development_dependency "yard", "~> 0.9.11"
|
30
|
-
spec.add_development_dependency "bundler", ">= 1.0"
|
31
|
-
|
32
|
-
if Gem.ruby_version >= Gem::Version.new("2.2")
|
33
|
-
spec.add_development_dependency "standard"
|
34
|
-
end
|
26
|
+
spec.add_development_dependency "rake", ["~> 12.0"]
|
27
|
+
spec.add_development_dependency "rspec", ["~> 3.3"]
|
28
|
+
spec.add_development_dependency "yard", ["~> 0.9.11"]
|
29
|
+
spec.add_development_dependency "bundler", [">= 1.0", "< 3"]
|
35
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vips
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Cupitt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-02-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '12.0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '12.0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,6 +74,9 @@ dependencies:
|
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '1.0'
|
77
|
+
- - "<"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '3'
|
77
80
|
type: :development
|
78
81
|
prerelease: false
|
79
82
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -81,40 +84,22 @@ dependencies:
|
|
81
84
|
- - ">="
|
82
85
|
- !ruby/object:Gem::Version
|
83
86
|
version: '1.0'
|
84
|
-
-
|
85
|
-
name: standard
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
87
|
+
- - "<"
|
96
88
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
89
|
+
version: '3'
|
98
90
|
description: Provides pre-compiled binaries for libvips.
|
99
91
|
email:
|
100
|
-
- jcupitt@gmail.com
|
101
|
-
- samuel.williams@oriontransfer.co.nz
|
102
92
|
executables: []
|
103
|
-
extensions:
|
104
|
-
- ext/Rakefile
|
93
|
+
extensions: []
|
105
94
|
extra_rdoc_files: []
|
106
95
|
files:
|
107
96
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
108
|
-
- ".github/workflows/
|
97
|
+
- ".github/workflows/test.yaml"
|
109
98
|
- ".gitignore"
|
110
|
-
- ".standard.yml"
|
111
|
-
- ".travis.yml"
|
112
99
|
- ".yardopts"
|
113
100
|
- CHANGELOG.md
|
114
101
|
- Gemfile
|
115
102
|
- README.md
|
116
|
-
- Rakefile
|
117
|
-
- TODO
|
118
103
|
- example/annotate.rb
|
119
104
|
- example/connection.rb
|
120
105
|
- example/daltonize8.rb
|
@@ -130,7 +115,6 @@ files:
|
|
130
115
|
- example/trim8.rb
|
131
116
|
- example/watermark.rb
|
132
117
|
- example/wobble.rb
|
133
|
-
- ext/Rakefile
|
134
118
|
- lib/vips.rb
|
135
119
|
- lib/vips/access.rb
|
136
120
|
- lib/vips/align.rb
|
@@ -189,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
173
|
- !ruby/object:Gem::Version
|
190
174
|
version: '0'
|
191
175
|
requirements: []
|
192
|
-
rubygems_version: 3.
|
176
|
+
rubygems_version: 3.5.5
|
193
177
|
signing_key:
|
194
178
|
specification_version: 4
|
195
179
|
summary: Vips is a high-performance image manipulation library.
|
data/.standard.yml
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
fix: false # default: false
|
2
|
-
parallel: true # default: false
|
3
|
-
format: progress # default: Standard::Formatter
|
4
|
-
ruby_version: 2.0 # default: RUBY_VERSION
|
5
|
-
default_ignores: false # default: true
|
6
|
-
|
7
|
-
ignore: # default: []
|
8
|
-
- '**/*':
|
9
|
-
- Standard/SemanticBlocks
|
10
|
-
- 'lib/vips/methods.rb'
|
11
|
-
- '{lib,example}/**/*':
|
12
|
-
- Lint/IneffectiveAccessModifier
|
13
|
-
- Lint/RescueException
|
14
|
-
- Style/GlobalVars
|
15
|
-
- 'spec/**/*':
|
16
|
-
- Lint/BinaryOperatorWithIdenticalOperands
|
17
|
-
- 'vendor/**/*'
|
data/.travis.yml
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
dist: xenial
|
3
|
-
cache: bundler
|
4
|
-
|
5
|
-
addons:
|
6
|
-
apt:
|
7
|
-
packages:
|
8
|
-
- libexpat1-dev
|
9
|
-
- gettext
|
10
|
-
- libglib2.0-dev
|
11
|
-
- liborc-0.4-dev
|
12
|
-
- libfftw3-dev
|
13
|
-
- liblcms2-dev
|
14
|
-
- libmagickwand-dev
|
15
|
-
- libopenexr-dev
|
16
|
-
- libcfitsio3-dev
|
17
|
-
- libgif-dev
|
18
|
-
- libgsf-1-dev
|
19
|
-
- libmatio-dev
|
20
|
-
- libopenslide-dev
|
21
|
-
- libpango1.0-dev
|
22
|
-
- libpoppler-glib-dev
|
23
|
-
- librsvg2-dev
|
24
|
-
- libwebp-dev
|
25
|
-
homebrew:
|
26
|
-
packages:
|
27
|
-
- glib
|
28
|
-
- libffi
|
29
|
-
- libexif
|
30
|
-
update: true
|
31
|
-
|
32
|
-
cache:
|
33
|
-
bundler: true
|
34
|
-
directories: $HOME/vips/ext
|
35
|
-
|
36
|
-
matrix:
|
37
|
-
include:
|
38
|
-
- rvm: 2.4
|
39
|
-
- rvm: 2.5
|
40
|
-
- rvm: 2.6
|
41
|
-
- rvm: 2.6
|
42
|
-
os: osx
|
43
|
-
env: PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
|
44
|
-
- rvm: 2.7
|
45
|
-
- rvm: truffleruby
|
46
|
-
- rvm: jruby-head
|
47
|
-
- rvm: ruby-head
|
48
|
-
allow_failures:
|
49
|
-
- rvm: truffleruby
|
50
|
-
- rvm: ruby-head
|
51
|
-
- rvm: jruby-head
|
52
|
-
|
53
|
-
before_script:
|
54
|
-
- bundle exec rake ext
|
55
|
-
|
56
|
-
script:
|
57
|
-
- bundle exec rake
|
data/Rakefile
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
|
-
|
3
|
-
begin
|
4
|
-
Bundler.setup(:default, :development)
|
5
|
-
rescue Bundler::BundlerError => e
|
6
|
-
warn e.message
|
7
|
-
warn "Run `bundle install` to install missing gems"
|
8
|
-
exit e.status_code
|
9
|
-
end
|
10
|
-
|
11
|
-
require "rake"
|
12
|
-
|
13
|
-
require "rspec/core"
|
14
|
-
require "rspec/core/rake_task"
|
15
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
16
|
-
spec.pattern = FileList["spec/**/*_spec.rb"]
|
17
|
-
end
|
18
|
-
|
19
|
-
task default: :spec
|
20
|
-
|
21
|
-
task :ext do
|
22
|
-
Dir.chdir "ext" do
|
23
|
-
sh "rake"
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
|
-
unless RUBY_PLATFORM.include?("java")
|
28
|
-
require "github/markup"
|
29
|
-
require "yard"
|
30
|
-
require "yard/rake/yardoc_task"
|
31
|
-
|
32
|
-
YARD::Rake::YardocTask.new
|
33
|
-
end
|
data/TODO
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# Notes
|
2
|
-
|
3
|
-
- We should support complex constants, eg:
|
4
|
-
|
5
|
-
Complex(1, 2)
|
6
|
-
=> (1+2i)
|
7
|
-
|
8
|
-
# Common operations
|
9
|
-
|
10
|
-
- Lint.
|
11
|
-
|
12
|
-
bundle exec standardrb
|
13
|
-
|
14
|
-
- Reinstall local copy of gem after a change.
|
15
|
-
|
16
|
-
bundle exec rake install
|
17
|
-
|
18
|
-
- Run test suite.
|
19
|
-
|
20
|
-
bundle exec rake
|
21
|
-
|
22
|
-
- Version bump.
|
23
|
-
|
24
|
-
edit lib/vips/version.rb
|
25
|
-
edit VERSION
|
26
|
-
|
27
|
-
- Regenerate autodocs.
|
28
|
-
|
29
|
-
cd lib/vips
|
30
|
-
ruby > methods.rb
|
31
|
-
require "vips"; Vips::Yard.generate
|
32
|
-
^D
|
33
|
-
|
34
|
-
- Regenerate docs.
|
35
|
-
|
36
|
-
bundle exec rake yard
|
37
|
-
|
38
|
-
- Push new gem to rubygems, tag repository with version.
|
39
|
-
|
40
|
-
bundle exec rake release
|
41
|
-
|
42
|
-
You'll be asked for a otp from authy / google authenticator / etc.
|
43
|
-
|
data/ext/Rakefile
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
|
2
|
-
require_relative '../lib/vips/version'
|
3
|
-
|
4
|
-
version = Vips::VERSION[/\d+\.\d+\.\d+/]
|
5
|
-
archive_path = "vips-#{version}.tar.gz"
|
6
|
-
source_path = "vips-#{version}"
|
7
|
-
prefix = ENV['PREFIX'] || File.dirname(__dir__)
|
8
|
-
|
9
|
-
task :fetch do
|
10
|
-
url = "https://github.com/libvips/libvips/releases/download/v#{version}/#{archive_path}"
|
11
|
-
|
12
|
-
unless File.exist? archive_path
|
13
|
-
sh "wget #{url} -O #{archive_path}"
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
task :extract do
|
18
|
-
unless File.exist? source_path
|
19
|
-
sh "tar -xvf #{archive_path}"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
task :build do
|
24
|
-
Dir.chdir source_path do
|
25
|
-
sh "./configure --prefix=#{prefix} --exec-prefix=#{prefix}"
|
26
|
-
sh "make install"
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
task :clean do
|
31
|
-
FileUtils.rm_rf archive_path
|
32
|
-
FileUtils.rm_rf source_path
|
33
|
-
end
|
34
|
-
|
35
|
-
task :default => [:fetch, :extract, :build]
|