zbar 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/zbar/lib.rb +13 -1
  3. data/zbar.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -1,6 +1,18 @@
1
1
  module ZBar
2
2
  extend FFI::Library
3
- ffi_lib 'zbar'
3
+
4
+ paths =
5
+ Array(
6
+ ENV['ZBAR_LIB'] ||
7
+ Dir['/{opt,usr}/{,local/}lib{,64}/libzbar.{dylib,so*}']
8
+ )
9
+ begin
10
+ ffi_lib(*paths)
11
+ rescue LoadError => le
12
+ raise LoadError,
13
+ "didn't find libzbar on your system. " +
14
+ "Please install zbar (http://zbar.sourceforge.net/)"
15
+ end
4
16
 
5
17
  attach_function :zbar_symbol_get_type, [:pointer], :int
6
18
  attach_function :zbar_symbol_get_data, [:pointer], :string
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{zbar}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Will Glynn"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Will Glynn