ffi-gmagick 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c44392e5977b3e429dc8c977131f5223cf391554
4
- data.tar.gz: 4e169e7a89e4ece9154c8a930cdf53ad50104870
3
+ metadata.gz: abe17dd4cc8354185ab09ce7e2e73d26fa93b0eb
4
+ data.tar.gz: 4b7445e775478169e76e5f7ddb599c0e7a73c5b4
5
5
  SHA512:
6
- metadata.gz: a28e768fd12e76ccc36f0d193b54f5010e660add60ba10a241a65e70f8d21327ee490681e93a924fbb8254c72b932054d5d931917c94ab89de8d5227351f55e8
7
- data.tar.gz: 598a9f18be1265c25ec7a23ce90d6dfc5c30ec68ab59f5db41d82f8f3790939217c9619d4056aa48171d6d2368cb07dcc44779fe49278030ed0b2cf037d88187
6
+ metadata.gz: 65975926b3060f06a5b9b1a27030fbf3003931ebb2f505c60713cf87017e271964f389659a0fd91f0a8a3048c107e180b1026586eae668f1a72c098004e09faa
7
+ data.tar.gz: 3c1bdc3584a9768ee8950f509336a4f4a08378de901f6087dcf4e56e7ebeba73ebd8aaf5696decb93fbed148d78a5569bfbe180a88194cbf91b68a084f6628be
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  FFI wrapper for the GraphicsMagick image processing library.
4
4
 
5
+ _**NOTE: This library probably has memory leaks that you might need to be aware of. You have been warned!**_
6
+
7
+ [![Code Climate](https://codeclimate.com/github/rnhurt/ffi-gmagick.png)](https://codeclimate.com/github/rnhurt/ffi-gmagick)
8
+
5
9
  ## Introduction
6
10
 
7
11
  This Gem provides an FFI wrapper for the GraphicsMagick image processing library. All of the
@@ -10,8 +14,6 @@ the command line interfaces. These are great Gems but I needed to work with ima
10
14
  and not hit the hard drive at all. So, I created this Gem to allow me to work with images
11
15
  completely in RAM without touching the file system at all.
12
16
 
13
- [![Build Status](https://travis-ci.org/rnhurt/ffi-gmagick.png)](https://travis-ci.org/rnhurt/ffi-gmagick)
14
-
15
17
  ## Installation
16
18
 
17
19
  Add this line to your application's Gemfile:
data/ffi-gmagick.gemspec CHANGED
@@ -27,4 +27,5 @@ Gem::Specification.new do |spec|
27
27
 
28
28
  spec.add_development_dependency "bundler", "~> 1.3"
29
29
  spec.add_development_dependency "rake"
30
+ spec.add_development_dependency 'ffi', '~> 1.9'
30
31
  end
@@ -1,5 +1,5 @@
1
1
  module FFI
2
2
  module GMagick
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/lib/ffi/gmagick.rb CHANGED
@@ -20,7 +20,8 @@ module FFI
20
20
  #
21
21
  module GMagick
22
22
  extend FFI::Library
23
- ffi_lib "GraphicsMagickWand"
23
+ ffi_lib "GraphicsMagickWand" if RUBY_PLATFORM =~ /darwin/
24
+ ffi_lib "GraphicsMagickWand.so.2" if RUBY_PLATFORM =~ /linux/
24
25
 
25
26
  enum :interlace_type, [:UndefinedInterlace, :NoInterlace, :LineInterlace, :PlaneInterlace, :PartitionInterlace]
26
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-gmagick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Hurt
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ffi
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.9'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.9'
55
69
  description: |-
56
70
  This is not a simple 'Ruby'-like implementation. It is more of a
57
71
  raw 'C' implementation. As such, it may be a bit more difficult to