free-image 0.8.0 → 0.8.1

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: b3b86080d9ecef3964e1f148d0b5517d9cfc9e36
4
- data.tar.gz: 86ba6e1536e31528ae94bb0430fef9071b38c692
3
+ metadata.gz: a9f36ed2647539a5ba56d2da70ec62510c3eb6aa
4
+ data.tar.gz: a6a8779dadb279b6a7da0bcbbc8b506a5cf4ed23
5
5
  SHA512:
6
- metadata.gz: c498cd00028fdc2611a9a6e5131a66345c7105e8883822fbbda0e16efef0707df4f1d5d95623d0da2237aeeeba4f9f541622bf197bfb46f9f85663f44e45c03d
7
- data.tar.gz: a74bfae40be0c7ed74d39274a6770c6529410230ffba9428a7a0db5d21140c78ab3c41e6e7245e7a639ca58494852d693a57a3eaa97382097056b1456b82c23e
6
+ metadata.gz: c06e7d5e731aa6c33b29e30b7fd7b351cd497971675e457551f62396ed056727b06d054cc8275ca48411852e44f683f180fa8b0d94aec9c073dc0fb7f663bd8b
7
+ data.tar.gz: f66c4942c017c8baf51734e7309ac3a58c5f87bbc60f2d59ea8675cf9ba9dd89394b3c0b2f2141544a484c13c52e17037f67b55964d74102346a7366477a1ab0
data/HISTORY CHANGED
@@ -1,5 +1,10 @@
1
1
  = Release History
2
2
 
3
+ == 0.8.1 / 2016-6-1
4
+ * Remove FreeImage_HasRGBMasks since it not publicly exposed
5
+ * Don't crash if FreeImage_GetMemorySize doesn't exist
6
+
7
+
3
8
  == 0.8.0 / 2016-5-31
4
9
  * Return correct bytes from memory pointer (Charlie Savage)
5
10
  * Return correct image type from memory pointer (Charlie Savage)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'free-image'
5
- spec.version = '0.8.0'
5
+ spec.version = '0.8.1'
6
6
  spec.summary = 'Ruby Bindings for the Free Image Library'
7
7
  spec.description = <<-EOS
8
8
  FreeImage is an Open Source library project for developers who would like to support
@@ -23,9 +23,6 @@ module FreeImage
23
23
  #DLL_API unsigned DLL_CALLCONV FreeImage_GetDIBSize(FIBITMAP *dib);
24
24
  attach_function('FreeImage_GetDIBSize', [:pointer], :ulong)
25
25
 
26
- #FreeImage_GetMemorySize DLL_API unsigned DLL_CALLCONV FreeImage_GetMemorySize(FIBITMAP *dib);
27
- attach_function('FreeImage_GetMemorySize', [:pointer], :ulong)
28
-
29
26
  #DLL_API unsigned DLL_CALLCONV FreeImage_GetDotsPerMeterX(FIBITMAP *dib);
30
27
  attach_function('FreeImage_GetDotsPerMeterX', [:pointer], :ulong)
31
28
 
@@ -78,7 +75,8 @@ module FreeImage
78
75
  attach_function('FreeImage_SetBackgroundColor', [:pointer, :pointer], FreeImage::Boolean)
79
76
 
80
77
  begin
81
- attach_function('FreeImage_HasRGBMasks', [:pointer], FreeImage::Boolean)
78
+ #FreeImage_GetMemorySize DLL_API unsigned DLL_CALLCONV FreeImage_GetMemorySize(FIBITMAP *dib);
79
+ attach_function('FreeImage_GetMemorySize', [:pointer], :ulong)
82
80
  rescue FFI::NotFoundError
83
81
  # nothing to do
84
82
  end
@@ -205,12 +203,6 @@ module FreeImage
205
203
  result
206
204
  end
207
205
 
208
- def has_rgb_masks
209
- result = FreeImage.FreeImage_HasRGBMasks(self)
210
- FreeImage.check_last_error
211
- result
212
- end
213
-
214
206
  # Returns the height of the bitmap in pixel units
215
207
  def height
216
208
  result = FreeImage.FreeImage_GetHeight(self)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: free-image
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi