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 CHANGED
@@ -1,3 +1,3 @@
1
1
  -
2
2
  ChangeLog.md
3
- LICENSE.txt
3
+ COPYING.txt
@@ -1,3 +1,9 @@
1
+ ### 0.1.1 / 2012-09-21
2
+
3
+ * Fixed a bug in {FFI::Extractor::PluginList#add}, when called with an unknown
4
+ plugin for the first time.
5
+ * Improved installation instructions.
6
+
1
7
  ### 0.1.0 / 2012-08-11
2
8
 
3
9
  * Initial release:
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).chomp(File.extname(plugin))
29
+ libname = File.basename(plugin,File.extname(plugin))
30
30
 
31
31
  plugin_names[plugin] = libname.sub('libextractor_','').to_sym
32
32
  end
@@ -33,7 +33,7 @@ module FFI
33
33
  # @param [FFI::Pointer] ptr
34
34
  # The pointer to the list.
35
35
  #
36
- def initialize(ptr=nil)
36
+ def initialize(ptr=FFI::Pointer.new(0))
37
37
  @ptr = ptr
38
38
  end
39
39
 
@@ -21,6 +21,6 @@
21
21
  module FFI
22
22
  module Extractor
23
23
  # ffi-extractor version
24
- VERSION = "0.1.0"
24
+ VERSION = "0.1.1"
25
25
  end
26
26
  end
@@ -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 :return
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.0
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-08-12 00:00:00.000000000 Z
12
+ date: 2012-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi