ffi-extractor 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +1 -1
- data/ChangeLog.md +6 -0
- data/README.md +12 -2
- data/lib/ffi/extractor/metadata_processor.rb +1 -1
- data/lib/ffi/extractor/plugin_list.rb +1 -1
- data/lib/ffi/extractor/version.rb +1 -1
- data/spec/extractor_spec.rb +2 -2
- metadata +2 -2
data/.document
CHANGED
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -19,8 +19,6 @@ file-types.
|
|
19
19
|
|
20
20
|
libextractor is a part of the [GNU project](http://www.gnu.org/).
|
21
21
|
|
22
|
-
## Features
|
23
|
-
|
24
22
|
## Examples
|
25
23
|
|
26
24
|
require 'ffi/extractor'
|
@@ -42,6 +40,18 @@ libextractor is a part of the [GNU project](http://www.gnu.org/).
|
|
42
40
|
|
43
41
|
$ gem install ffi-extractor
|
44
42
|
|
43
|
+
### Fedora
|
44
|
+
|
45
|
+
$ sudo yum install libextractor libextractor-plugins
|
46
|
+
|
47
|
+
### Ubuntu
|
48
|
+
|
49
|
+
$ sudo apt-get install libextractor libextractor-plugins
|
50
|
+
|
51
|
+
### OSX
|
52
|
+
|
53
|
+
$ sudo brew install libextractor
|
54
|
+
|
45
55
|
## Copyright
|
46
56
|
|
47
57
|
ffi-extractor - Ruby FFI bindings for libextractor
|
@@ -26,7 +26,7 @@ module FFI
|
|
26
26
|
|
27
27
|
# Mapping of plugin paths to names
|
28
28
|
PLUGIN_NAMES = Hash.new do |plugin_names,plugin|
|
29
|
-
libname = File.basename(plugin
|
29
|
+
libname = File.basename(plugin,File.extname(plugin))
|
30
30
|
|
31
31
|
plugin_names[plugin] = libname.sub('libextractor_','').to_sym
|
32
32
|
end
|
data/spec/extractor_spec.rb
CHANGED
@@ -9,8 +9,8 @@ describe FFI::Extractor do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
describe "abort!" do
|
12
|
-
it "should throw :return" do
|
13
|
-
lambda { subject.abort! }.should throw_symbol
|
12
|
+
it "should throw :return, 1" do
|
13
|
+
lambda { subject.abort! }.should throw_symbol(:return, 1)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-extractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|