ruby-vips 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  # master
2
2
 
3
+ # Version 0.3.8
4
+
5
+ * add VIPS::thread_shutdown(), must be called on foreign thread exit [John Cupitt]
6
+
3
7
  # Version 0.3.7
4
8
 
5
9
  * update build dependencies [John Cupitt]
@@ -83,6 +83,28 @@ vips_s_debug_info(VALUE obj)
83
83
  return Qnil;
84
84
  }
85
85
 
86
+ /*
87
+ * call-seq:
88
+ * VIPS.thread_shutdown -> string
89
+ *
90
+ * Free any thread-private data and flush any profiling information.
91
+ *
92
+ * This function needs to be called when a thread that has been using vips
93
+ * exits. It is called for you by vips_shutdown() and for any threads created
94
+ * by vips_g_thread_new().
95
+ *
96
+ * You will need to call it from threads created in other ways. If you do
97
+ * not call it, vips will generate an error message.
98
+ *
99
+ * May be called many times.
100
+ */
101
+ static VALUE
102
+ vips_s_thread_shutdown(VALUE obj)
103
+ {
104
+ vips_thread_shutdown();
105
+ return Qnil;
106
+ }
107
+
86
108
  /*
87
109
  * Build a call to im_init_world() and pass command line options to vips. This
88
110
  * sets some library wide options.
@@ -149,6 +171,8 @@ Init_vips_ext()
149
171
 
150
172
  rb_define_singleton_method(mVIPS, "debug_info", vips_s_debug_info, 0);
151
173
 
174
+ rb_define_singleton_method(mVIPS, "thread_shutdown", vips_s_thread_shutdown, 0);
175
+
152
176
  /* Vips Library version string */
153
177
  rb_define_const(mVIPS, "LIB_VERSION", vips_s_version_string());
154
178
 
@@ -1,3 +1,3 @@
1
1
  module VIPS
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ruby-vips"
8
- s.version = "0.3.7"
8
+ s.version = "0.3.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Timothy Elliott", "John Cupitt"]
12
- s.date = "2014-02-04"
12
+ s.date = "2014-05-11"
13
13
  s.description = "Ruby extension for the vips image processing library."
14
14
  s.email = "jcupitt@gmail.com"
15
15
  s.extensions = ["ext/extconf.rb"]
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.7
4
+ version: 0.3.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-04 00:00:00.000000000 Z
13
+ date: 2014-05-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdoc
@@ -153,7 +153,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  segments:
155
155
  - 0
156
- hash: 5021383321152209
156
+ hash: 608630802592582756
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  none: false
159
159
  requirements: