ruby-vips 0.3.12 → 0.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +17 -13
- data/lib/vips/version.rb +1 -1
- data/lib/vips/writer.rb +10 -2
- data/ruby-vips.gemspec +9 -9
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4af218bf97030516ebd6863f9010ae5778fc24c
|
4
|
+
data.tar.gz: 04dd15fc41d79e27220906fd024e7504470cb42f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0df366592bbd14982d4a95afaa44c632827d25639c89f142886e8db1dadd17c4b6663ff2b60e1261820244317eed86be5c093e6d30b3accf3b55d5c7cb64c21
|
7
|
+
data.tar.gz: 5294e0acd1be165466767ac5bb4251bb4b15f8b912a3ac5c7144ad56d82497e67dc59f414b48e1be6b827e62950582500197754aebfcbc048ddc3f2e8a79be3d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -41,24 +41,28 @@ GEM
|
|
41
41
|
rake (10.2.2)
|
42
42
|
rdoc (3.12.2)
|
43
43
|
json (~> 1.4)
|
44
|
-
rspec (3.
|
45
|
-
rspec-core (~> 3.
|
46
|
-
rspec-expectations (~> 3.
|
47
|
-
rspec-mocks (~> 3.
|
48
|
-
rspec-core (3.
|
49
|
-
rspec-support (~> 3.
|
50
|
-
rspec-expectations (3.0
|
44
|
+
rspec (3.4.0)
|
45
|
+
rspec-core (~> 3.4.0)
|
46
|
+
rspec-expectations (~> 3.4.0)
|
47
|
+
rspec-mocks (~> 3.4.0)
|
48
|
+
rspec-core (3.4.1)
|
49
|
+
rspec-support (~> 3.4.0)
|
50
|
+
rspec-expectations (3.4.0)
|
51
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
|
-
rspec-support (~> 3.
|
53
|
-
rspec-mocks (3.
|
54
|
-
|
55
|
-
|
52
|
+
rspec-support (~> 3.4.0)
|
53
|
+
rspec-mocks (3.4.1)
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
55
|
+
rspec-support (~> 3.4.0)
|
56
|
+
rspec-support (3.4.1)
|
56
57
|
|
57
58
|
PLATFORMS
|
58
59
|
ruby
|
59
60
|
|
60
61
|
DEPENDENCIES
|
61
62
|
bundler (~> 1.0)
|
62
|
-
jeweler (~> 1.8
|
63
|
+
jeweler (~> 1.8)
|
63
64
|
rdoc (~> 3.12)
|
64
|
-
rspec
|
65
|
+
rspec (~> 3.4)
|
66
|
+
|
67
|
+
BUNDLED WITH
|
68
|
+
1.10.6
|
data/lib/vips/version.rb
CHANGED
data/lib/vips/writer.rb
CHANGED
@@ -14,14 +14,22 @@ module VIPS
|
|
14
14
|
# GCing before every write would have a horrible effect on performance, so
|
15
15
|
# as a compromise we GC every @@gc_interval writes
|
16
16
|
|
17
|
-
|
17
|
+
# ruby2.1 introduced a generational GC which can do a low-impact GC ... we
|
18
|
+
# behave differently for this
|
19
|
+
@@generational_gc = RUBY_ENGINE == "ruby" && RUBY_VERSION.to_f >= 2.1
|
20
|
+
|
21
|
+
@@gc_interval = if @@generational_gc then 10 else 100 end
|
18
22
|
@@gc_countdown = @@gc_interval
|
19
23
|
|
20
24
|
def write_gc(path)
|
21
25
|
@@gc_countdown -= 1
|
22
26
|
if @@gc_countdown < 0
|
23
27
|
@@gc_countdown = @@gc_interval
|
24
|
-
|
28
|
+
if @@generational_gc
|
29
|
+
GC.start full_mark: false, immediate_sweep: false
|
30
|
+
else
|
31
|
+
GC.start
|
32
|
+
end
|
25
33
|
end
|
26
34
|
|
27
35
|
write_internal path
|
data/ruby-vips.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: ruby-vips 0.3.
|
5
|
+
# stub: ruby-vips 0.3.13 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "ruby-vips"
|
10
|
-
s.version = "0.3.
|
10
|
+
s.version = "0.3.13"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["Timothy Elliott", "John Cupitt"]
|
15
|
-
s.date = "2016-01-
|
15
|
+
s.date = "2016-01-18"
|
16
16
|
s.description = "Ruby extension for the vips image processing library."
|
17
17
|
s.email = "jcupitt@gmail.com"
|
18
18
|
s.extensions = ["ext/extconf.rb"]
|
@@ -82,19 +82,19 @@ Gem::Specification.new do |s|
|
|
82
82
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
83
83
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
84
84
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
85
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8
|
86
|
-
s.add_development_dependency(%q<rspec>, ["
|
85
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
|
86
|
+
s.add_development_dependency(%q<rspec>, ["~> 3.4"])
|
87
87
|
else
|
88
88
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
89
89
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
90
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8
|
91
|
-
s.add_dependency(%q<rspec>, ["
|
90
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
91
|
+
s.add_dependency(%q<rspec>, ["~> 3.4"])
|
92
92
|
end
|
93
93
|
else
|
94
94
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
95
95
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
96
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8
|
97
|
-
s.add_dependency(%q<rspec>, ["
|
96
|
+
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
97
|
+
s.add_dependency(%q<rspec>, ["~> 3.4"])
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-vips
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timothy Elliott
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
@@ -45,28 +45,28 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.8
|
48
|
+
version: '1.8'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 1.8
|
55
|
+
version: '1.8'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
62
|
+
version: '3.4'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - "
|
67
|
+
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.4'
|
70
70
|
description: Ruby extension for the vips image processing library.
|
71
71
|
email: jcupitt@gmail.com
|
72
72
|
executables: []
|