ffi-gmagick 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/ffi-gmagick.gemspec +1 -0
- data/lib/ffi/gmagick/version.rb +1 -1
- data/lib/ffi/gmagick.rb +2 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abe17dd4cc8354185ab09ce7e2e73d26fa93b0eb
|
4
|
+
data.tar.gz: 4b7445e775478169e76e5f7ddb599c0e7a73c5b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/ffi/gmagick/version.rb
CHANGED
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.
|
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
|