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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc46d8bad7bdd686a69c0da9fb009c27afd4c66b
4
- data.tar.gz: 827afdfb3a22897c2b65c85b31535760e8dc450a
3
+ metadata.gz: d4af218bf97030516ebd6863f9010ae5778fc24c
4
+ data.tar.gz: 04dd15fc41d79e27220906fd024e7504470cb42f
5
5
  SHA512:
6
- metadata.gz: fa458e1470eb0e7196ce1eb9ddb0c182366a72299acd01edd4dcf283c0a04ba0df6705ee0da15494ae1be1cde0e2a9d6bcdfa2fe13bfeeb432f7963929388bf1
7
- data.tar.gz: 4c107f40deace0d32bb530d81ec6b9d70578d50589805b5fc8ecb9b33495fe96401b1b0327b5877e88c93565c19b07ab8ba26b9fa26ee18220ab3876712258d6
6
+ metadata.gz: e0df366592bbd14982d4a95afaa44c632827d25639c89f142886e8db1dadd17c4b6663ff2b60e1261820244317eed86be5c093e6d30b3accf3b55d5c7cb64c21
7
+ data.tar.gz: 5294e0acd1be165466767ac5bb4251bb4b15f8b912a3ac5c7144ad56d82497e67dc59f414b48e1be6b827e62950582500197754aebfcbc048ddc3f2e8a79be3d
@@ -1,5 +1,9 @@
1
1
  # master
2
2
 
3
+ # Version 0.3.13
4
+
5
+ * don't use generational GC options on old Rubys [John Cupitt]
6
+
3
7
  # Version 0.3.12
4
8
 
5
9
  * incremental GC every 10 writes [felixbuenemann]
@@ -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.0.0)
45
- rspec-core (~> 3.0.0)
46
- rspec-expectations (~> 3.0.0)
47
- rspec-mocks (~> 3.0.0)
48
- rspec-core (3.0.2)
49
- rspec-support (~> 3.0.0)
50
- rspec-expectations (3.0.2)
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.0.0)
53
- rspec-mocks (3.0.2)
54
- rspec-support (~> 3.0.0)
55
- rspec-support (3.0.2)
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.3)
63
+ jeweler (~> 1.8)
63
64
  rdoc (~> 3.12)
64
- rspec
65
+ rspec (~> 3.4)
66
+
67
+ BUNDLED WITH
68
+ 1.10.6
@@ -1,3 +1,3 @@
1
1
  module VIPS
2
- VERSION = "0.3.12"
2
+ VERSION = "0.3.13"
3
3
  end
@@ -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
- @@gc_interval = 10
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
- GC.start full_mark: false, immediate_sweep: false
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
@@ -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.12 ruby lib
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.12"
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-17"
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.3"])
86
- s.add_development_dependency(%q<rspec>, [">= 0"])
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.3"])
91
- s.add_dependency(%q<rspec>, [">= 0"])
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.3"])
97
- s.add_dependency(%q<rspec>, [">= 0"])
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.12
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-17 00:00:00.000000000 Z
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.3
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.3
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: '0'
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: '0'
69
+ version: '3.4'
70
70
  description: Ruby extension for the vips image processing library.
71
71
  email: jcupitt@gmail.com
72
72
  executables: []