zbar 0.2.2 → 0.3.0
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 +7 -0
- data/.travis.yml +11 -11
- data/Gemfile +7 -6
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/zbar/lib.rb +3 -1
- data/lib/zbar/processor.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- data/spec/zbar/image_spec.rb +6 -6
- data/spec/zbar/jpeg_spec.rb +6 -6
- data/spec/zbar/library_version_spec.rb +9 -9
- data/spec/zbar/processor_spec.rb +17 -17
- data/spec/zbar_spec.rb +3 -3
- data/zbar.gemspec +27 -23
- metadata +54 -54
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b8160eaff56757ec9c5b54c24779777d9591c7ed
|
4
|
+
data.tar.gz: ce3c5834bc210d0fe90c6a058f37999f85a0925d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 46cc77ec28f21fba5fda5baf717459fcf8c5f70fcb0f763c7579ac9afad1a23d9f63d1958271015e02631f5f5567d57f42ea46fdb8ca246a0a872e6eccecc1cc
|
7
|
+
data.tar.gz: e2927458f89dab6a8457e6b87a07295812b7ee2fb8509296cd20a93c2d08758f8b3cab7c0d21cda51577528f6f6c2d38cae84bca86eaa1dbe98cce76bb8a0fd3
|
data/.travis.yml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
|
1
|
+
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.0.0
|
4
|
-
- 1.9.3
|
5
|
-
- 1.9.2
|
6
|
-
- jruby-18mode
|
7
|
-
- jruby-19mode
|
8
|
-
- rbx-18mode
|
9
|
-
- rbx-19mode
|
10
3
|
- ruby-head
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
4
|
+
- 2.4
|
5
|
+
- 2.2
|
6
|
+
- 2.3
|
7
|
+
- 2.1
|
8
|
+
- 2.0
|
9
|
+
- jruby
|
10
|
+
matrix:
|
11
|
+
allow_failures:
|
12
|
+
- rvm: ruby-head
|
13
|
+
- rvm: jruby
|
14
14
|
before_install:
|
15
15
|
- sudo apt-get install libzbar-dev
|
data/Gemfile
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
group :development do
|
4
|
-
gem "rspec", "~>
|
5
|
-
gem "rspec", "~> 2
|
6
|
-
gem "rdoc", "~>
|
7
|
-
gem "bundler", "~> 1.
|
8
|
-
gem "jeweler", "~> 1
|
4
|
+
gem "rspec", "~> 3.7"
|
5
|
+
gem "rspec-its", "~> 1.2"
|
6
|
+
gem "rdoc", "~> 5.1"
|
7
|
+
gem "bundler", "~> 1.16"
|
8
|
+
gem "jeweler", "~> 2.1"
|
9
|
+
gem "rake", "~> 12.2"
|
9
10
|
end
|
10
11
|
|
11
|
-
gem "ffi", "
|
12
|
+
gem "ffi", "~> 1.0"
|
data/README.rdoc
CHANGED
@@ -11,7 +11,7 @@ Ruby bindings for ZBar, a barcode recognition library.
|
|
11
11
|
|
12
12
|
require 'zbar'
|
13
13
|
|
14
|
-
ZBar::Image.from_jpeg(File.
|
14
|
+
ZBar::Image.from_jpeg(File.binread('test.jpg')).process
|
15
15
|
=> [#<Zbar::Symbol:0x10147c668
|
16
16
|
@addon="",
|
17
17
|
@data="9876543210128",
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/lib/zbar/lib.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
module ZBar
|
2
2
|
extend FFI::Library
|
3
3
|
|
4
|
+
search_string = '/{opt,usr}/{,local/}lib{,64}/{,x86_64-linux-gnu/,i386-linux-gnu/}libzbar.{dylib,so*}'
|
4
5
|
paths =
|
5
6
|
Array(
|
6
7
|
ENV['ZBAR_LIB'] ||
|
7
|
-
Dir[
|
8
|
+
Dir[search_string]
|
8
9
|
)
|
9
10
|
begin
|
10
11
|
ffi_lib(*paths)
|
11
12
|
rescue LoadError => le
|
12
13
|
raise LoadError, [
|
13
14
|
"Didn't find libzbar on your system",
|
15
|
+
"Searched in \"#{search_string}\"",
|
14
16
|
"Please install zbar (http://zbar.sourceforge.net/) or set ZBAR_LIB if it's in a weird place",
|
15
17
|
"FFI::Library::ffi_lib() failed with error: #{le}"
|
16
18
|
].join("\n")
|
data/lib/zbar/processor.rb
CHANGED
@@ -4,7 +4,7 @@ module ZBar
|
|
4
4
|
# Accepts a hash of configurations
|
5
5
|
def initialize(config = nil)
|
6
6
|
# This function used to accept an integer refering to the number of threads
|
7
|
-
if config.kind_of?(
|
7
|
+
if config.kind_of?(Integer)
|
8
8
|
config = { :threads => config }
|
9
9
|
end
|
10
10
|
|
@@ -110,4 +110,4 @@ module ZBar
|
|
110
110
|
out
|
111
111
|
end
|
112
112
|
end
|
113
|
-
end
|
113
|
+
end
|
data/spec/spec_helper.rb
CHANGED
data/spec/zbar/image_spec.rb
CHANGED
@@ -35,23 +35,23 @@ describe ZBar::Image do
|
|
35
35
|
it "delegates to the passed processor" do
|
36
36
|
processor = double("processor")
|
37
37
|
expected_result = Object.new
|
38
|
-
processor.
|
38
|
+
expect(processor).to receive(:process).with(subject).and_return(expected_result)
|
39
39
|
|
40
|
-
subject.process(processor).
|
40
|
+
expect(subject.process(processor)).to eq(expected_result)
|
41
41
|
end
|
42
42
|
|
43
43
|
it "instantiates a new processor with no arguments" do
|
44
44
|
processor = double("processor")
|
45
|
-
processor.
|
46
|
-
ZBar::Processor.
|
45
|
+
expect(processor).to receive(:process)
|
46
|
+
expect(ZBar::Processor).to receive(:new).with(no_args).and_return(processor)
|
47
47
|
subject.process
|
48
48
|
end
|
49
49
|
|
50
50
|
it "instantiates a new processor with configuration" do
|
51
51
|
config_hash = { :foo => :bar }
|
52
52
|
processor = double("processor")
|
53
|
-
processor.
|
54
|
-
ZBar::Processor.
|
53
|
+
expect(processor).to receive(:process)
|
54
|
+
expect(ZBar::Processor).to receive(:new).with(config_hash).and_return(processor)
|
55
55
|
subject.process(config_hash)
|
56
56
|
end
|
57
57
|
end
|
data/spec/zbar/jpeg_spec.rb
CHANGED
@@ -5,31 +5,31 @@ describe ZBar::JPEG do
|
|
5
5
|
|
6
6
|
describe "available?" do
|
7
7
|
specify "should be a boolean" do
|
8
|
-
(!!subject.available?).
|
8
|
+
expect(!!subject.available?).to eq(subject.available?)
|
9
9
|
end
|
10
10
|
|
11
11
|
specify "should memoize the result" do
|
12
12
|
result = Object.new
|
13
13
|
subject.instance_variable_set(:@available, result)
|
14
|
-
subject.available
|
14
|
+
expect(subject.available?).to eq(result)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
18
|
describe "bugged?" do
|
19
19
|
specify "should be a boolean" do
|
20
|
-
(!!subject.bugged?).
|
20
|
+
expect(!!subject.bugged?).to eq(subject.bugged?)
|
21
21
|
end
|
22
22
|
|
23
23
|
specify "should memoize the result" do
|
24
24
|
result = Object.new
|
25
25
|
subject.instance_variable_set(:@bugged, result)
|
26
|
-
subject.bugged
|
26
|
+
expect(subject.bugged?).to eq(result)
|
27
27
|
end
|
28
28
|
|
29
29
|
specify "should be false if JPEG support is unavailable" do
|
30
30
|
subject.instance_variable_set(:@bugged, nil)
|
31
|
-
subject.
|
32
|
-
subject.bugged
|
31
|
+
expect(subject).to receive(:available?).and_return(false)
|
32
|
+
expect(subject.bugged?).to eq(false)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -11,9 +11,9 @@ describe ZBar::LibraryVersion do
|
|
11
11
|
|
12
12
|
describe "to_s" do
|
13
13
|
subject { library_version.to_s }
|
14
|
-
it {
|
14
|
+
it { is_expected.to be_kind_of String }
|
15
15
|
it "is formatted as major.minor" do
|
16
|
-
|
16
|
+
is_expected.to eq("#{major}.#{minor}")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -22,19 +22,19 @@ describe ZBar::LibraryVersion do
|
|
22
22
|
let(:bigger_minor) { described_class.new(major, minor + 1)}
|
23
23
|
let(:equal) { described_class.new(major, minor)}
|
24
24
|
|
25
|
-
it {
|
25
|
+
it { is_expected.to be_kind_of Comparable }
|
26
26
|
|
27
27
|
it "compares minors" do
|
28
|
-
library_version.
|
29
|
-
bigger_minor.
|
28
|
+
expect(library_version).to be < bigger_minor
|
29
|
+
expect(bigger_minor).to be > library_version
|
30
30
|
end
|
31
31
|
it "compares majors" do
|
32
|
-
library_version.
|
33
|
-
bigger_major.
|
32
|
+
expect(library_version).to be < bigger_major
|
33
|
+
expect(bigger_major).to be > library_version
|
34
34
|
end
|
35
35
|
it "compares equally" do
|
36
|
-
library_version.
|
37
|
-
equal.
|
36
|
+
expect(library_version).to eq(equal)
|
37
|
+
expect(equal).to eq(library_version)
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/spec/zbar/processor_spec.rb
CHANGED
@@ -3,12 +3,12 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
|
3
3
|
describe ZBar::Processor do
|
4
4
|
describe "new" do
|
5
5
|
it "calls ZBar.zbar_processor_create" do
|
6
|
-
ZBar.
|
6
|
+
expect(ZBar).to receive(:zbar_processor_create).and_call_original
|
7
7
|
described_class.new
|
8
8
|
end
|
9
9
|
|
10
10
|
it "calls ZBar.zbar_processor_init" do
|
11
|
-
ZBar.
|
11
|
+
expect(ZBar).to receive(:zbar_processor_init).and_call_original
|
12
12
|
described_class.new
|
13
13
|
end
|
14
14
|
|
@@ -27,20 +27,20 @@ describe ZBar::Processor do
|
|
27
27
|
|
28
28
|
describe "#zbar_config=" do
|
29
29
|
it "calls ZBar.zbar_parse_config" do
|
30
|
-
ZBar.
|
30
|
+
expect(ZBar).to receive(:zbar_parse_config).with("disable", anything(), anything(), anything()).and_call_original
|
31
31
|
subject.zbar_config = "disable"
|
32
32
|
end
|
33
33
|
|
34
34
|
it "calls ZBar.zbar_processor_set_config" do
|
35
|
-
ZBar.
|
35
|
+
expect(ZBar).to receive(:zbar_processor_set_config).and_call_original
|
36
36
|
subject.zbar_config = "disable"
|
37
37
|
end
|
38
38
|
|
39
39
|
it "calls itself repeatedly when given an array" do
|
40
40
|
args = ["foo", :bar, 1]
|
41
|
-
subject.
|
41
|
+
expect(subject).to receive(:zbar_config=).with(args).and_call_original
|
42
42
|
args.each { |arg|
|
43
|
-
subject.
|
43
|
+
expect(subject).to receive(:zbar_config=).with(arg)
|
44
44
|
}
|
45
45
|
subject.zbar_config = args
|
46
46
|
end
|
@@ -56,22 +56,22 @@ describe ZBar::Processor do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
it "raises ArgumentError for \"foo bar baz\"" do
|
59
|
-
|
59
|
+
expect {
|
60
60
|
subject.zbar_config = "foo bar baz"
|
61
|
-
}.
|
61
|
+
}.to raise_error ArgumentError
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
65
|
describe "#symbology=" do
|
66
66
|
it "delegates to #symbologies=" do
|
67
|
-
subject.
|
67
|
+
expect(subject).to receive(:symbologies=).with(['foo'])
|
68
68
|
subject.symbology = 'foo'
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
72
|
describe "#symbologies=" do
|
73
73
|
it "enables the selected symbologies" do
|
74
|
-
subject.
|
74
|
+
expect(subject).to receive(:zbar_config=).with(["disable", "foo.enable", "bar.enable"])
|
75
75
|
subject.symbologies = ['foo', :bar]
|
76
76
|
end
|
77
77
|
end
|
@@ -86,27 +86,27 @@ describe ZBar::Processor do
|
|
86
86
|
|
87
87
|
it "finds the expected symbol" do
|
88
88
|
symbols = subject
|
89
|
-
symbols.size.
|
89
|
+
expect(symbols.size).to eq(1)
|
90
90
|
|
91
91
|
symbol = symbols[0]
|
92
|
-
symbol.
|
93
|
-
symbol.data.
|
94
|
-
symbol.symbology.
|
92
|
+
expect(symbol).to be_kind_of ZBar::Symbol
|
93
|
+
expect(symbol.data).to eq("9876543210128")
|
94
|
+
expect(symbol.symbology).to eq("EAN-13")
|
95
95
|
end
|
96
96
|
|
97
97
|
context "when all symbologies are disabled" do
|
98
98
|
let(:config) { { :symbologies => [] } }
|
99
|
-
it {
|
99
|
+
it { is_expected.to be_empty }
|
100
100
|
end
|
101
101
|
|
102
102
|
context "when only a wrong symbology is enabled" do
|
103
103
|
let(:config) { { :symbology => :qrcode } }
|
104
|
-
it {
|
104
|
+
it { is_expected.to be_empty }
|
105
105
|
end
|
106
106
|
|
107
107
|
context "when the correct symbology is enabled" do
|
108
108
|
let(:config) { { :symbologies => ["qrcode", :ean13] } }
|
109
|
-
it {
|
109
|
+
it { is_expected.not_to be_empty }
|
110
110
|
end
|
111
111
|
end
|
112
112
|
end
|
data/spec/zbar_spec.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
2
|
|
3
3
|
describe ZBar do
|
4
|
-
it {
|
4
|
+
it { is_expected.to be_kind_of Module }
|
5
5
|
|
6
6
|
describe "library_version" do
|
7
7
|
it "calls zbar_version(uint*, uint*)" do
|
8
|
-
ZBar.
|
8
|
+
expect(ZBar).to receive(:zbar_version).with(anything, anything).and_return(0)
|
9
9
|
ZBar.library_version
|
10
10
|
end
|
11
11
|
|
12
12
|
it "returns LibraryVersion" do
|
13
|
-
ZBar.library_version.
|
13
|
+
expect(ZBar.library_version).to be_kind_of ZBar::LibraryVersion
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/zbar.gemspec
CHANGED
@@ -2,14 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: zbar 0.3.0 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
8
|
s.name = "zbar"
|
8
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
11
13
|
s.authors = ["Will Glynn"]
|
12
|
-
s.date = "
|
14
|
+
s.date = "2017-11-05"
|
13
15
|
s.description = "Ruby bindings for ZBar, a barcode recognition library. Uses FFI to interact with the underlying C library, but has no other dependencies."
|
14
16
|
s.email = "will@willglynn.com"
|
15
17
|
s.extra_rdoc_files = [
|
@@ -45,35 +47,37 @@ Gem::Specification.new do |s|
|
|
45
47
|
]
|
46
48
|
s.homepage = "http://github.com/willglynn/ruby-zbar"
|
47
49
|
s.post_install_message = "\nzbar: This gem depends on the \"zbar\" C library.\n If it's not installed, `require \"zbar\"` will fail.\n\n"
|
48
|
-
s.
|
49
|
-
s.rubygems_version = "1.8.25"
|
50
|
+
s.rubygems_version = "2.4.8"
|
50
51
|
s.summary = "Ruby bindings for ZBar, a barcode recognition library"
|
51
52
|
|
52
53
|
if s.respond_to? :specification_version then
|
53
|
-
s.specification_version =
|
54
|
+
s.specification_version = 4
|
54
55
|
|
55
56
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
56
|
-
s.add_runtime_dependency(%q<ffi>, ["
|
57
|
-
s.add_development_dependency(%q<rspec>, ["~>
|
58
|
-
s.add_development_dependency(%q<rspec>, ["~> 2
|
59
|
-
s.add_development_dependency(%q<rdoc>, ["~>
|
60
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.
|
61
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1
|
57
|
+
s.add_runtime_dependency(%q<ffi>, ["~> 1.0"])
|
58
|
+
s.add_development_dependency(%q<rspec>, ["~> 3.7"])
|
59
|
+
s.add_development_dependency(%q<rspec-its>, ["~> 1.2"])
|
60
|
+
s.add_development_dependency(%q<rdoc>, ["~> 5.1"])
|
61
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.16"])
|
62
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.1"])
|
63
|
+
s.add_development_dependency(%q<rake>, ["~> 12.2"])
|
62
64
|
else
|
63
|
-
s.add_dependency(%q<ffi>, ["
|
64
|
-
s.add_dependency(%q<rspec>, ["~>
|
65
|
-
s.add_dependency(%q<rspec>, ["~> 2
|
66
|
-
s.add_dependency(%q<rdoc>, ["~>
|
67
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
68
|
-
s.add_dependency(%q<jeweler>, ["~> 1
|
65
|
+
s.add_dependency(%q<ffi>, ["~> 1.0"])
|
66
|
+
s.add_dependency(%q<rspec>, ["~> 3.7"])
|
67
|
+
s.add_dependency(%q<rspec-its>, ["~> 1.2"])
|
68
|
+
s.add_dependency(%q<rdoc>, ["~> 5.1"])
|
69
|
+
s.add_dependency(%q<bundler>, ["~> 1.16"])
|
70
|
+
s.add_dependency(%q<jeweler>, ["~> 2.1"])
|
71
|
+
s.add_dependency(%q<rake>, ["~> 12.2"])
|
69
72
|
end
|
70
73
|
else
|
71
|
-
s.add_dependency(%q<ffi>, ["
|
72
|
-
s.add_dependency(%q<rspec>, ["~>
|
73
|
-
s.add_dependency(%q<rspec>, ["~> 2
|
74
|
-
s.add_dependency(%q<rdoc>, ["~>
|
75
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
76
|
-
s.add_dependency(%q<jeweler>, ["~> 1
|
74
|
+
s.add_dependency(%q<ffi>, ["~> 1.0"])
|
75
|
+
s.add_dependency(%q<rspec>, ["~> 3.7"])
|
76
|
+
s.add_dependency(%q<rspec-its>, ["~> 1.2"])
|
77
|
+
s.add_dependency(%q<rdoc>, ["~> 5.1"])
|
78
|
+
s.add_dependency(%q<bundler>, ["~> 1.16"])
|
79
|
+
s.add_dependency(%q<jeweler>, ["~> 2.1"])
|
80
|
+
s.add_dependency(%q<rake>, ["~> 12.2"])
|
77
81
|
end
|
78
82
|
end
|
79
83
|
|
metadata
CHANGED
@@ -1,112 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Will Glynn
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-11-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: ffi
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.0
|
19
|
+
version: '1.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.0
|
26
|
+
version: '1.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
33
|
+
version: '3.7'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
version: '3.7'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name: rspec
|
42
|
+
name: rspec-its
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2
|
47
|
+
version: '1.2'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2
|
54
|
+
version: '1.2'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rdoc
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- - ~>
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
61
|
+
version: '5.1'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- - ~>
|
66
|
+
- - "~>"
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version: '
|
68
|
+
version: '5.1'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: bundler
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- - ~>
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
version: '1.
|
75
|
+
version: '1.16'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- - ~>
|
80
|
+
- - "~>"
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version: '1.
|
82
|
+
version: '1.16'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: jeweler
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.1'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.1'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
100
102
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
103
|
+
version: '12.2'
|
102
104
|
type: :development
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
|
-
- - ~>
|
108
|
+
- - "~>"
|
108
109
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
110
|
+
version: '12.2'
|
110
111
|
description: Ruby bindings for ZBar, a barcode recognition library. Uses FFI to interact
|
111
112
|
with the underlying C library, but has no other dependencies.
|
112
113
|
email: will@willglynn.com
|
@@ -116,9 +117,9 @@ extra_rdoc_files:
|
|
116
117
|
- LICENSE
|
117
118
|
- README.rdoc
|
118
119
|
files:
|
119
|
-
- .document
|
120
|
-
- .rspec
|
121
|
-
- .travis.yml
|
120
|
+
- ".document"
|
121
|
+
- ".rspec"
|
122
|
+
- ".travis.yml"
|
122
123
|
- Gemfile
|
123
124
|
- LICENSE
|
124
125
|
- README.rdoc
|
@@ -143,30 +144,29 @@ files:
|
|
143
144
|
- zbar.gemspec
|
144
145
|
homepage: http://github.com/willglynn/ruby-zbar
|
145
146
|
licenses: []
|
146
|
-
|
147
|
-
|
147
|
+
metadata: {}
|
148
|
+
post_install_message: |2+
|
149
|
+
|
150
|
+
zbar: This gem depends on the "zbar" C library.
|
151
|
+
If it's not installed, `require "zbar"` will fail.
|
152
|
+
|
148
153
|
rdoc_options: []
|
149
154
|
require_paths:
|
150
155
|
- lib
|
151
156
|
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
-
none: false
|
153
157
|
requirements:
|
154
|
-
- -
|
158
|
+
- - ">="
|
155
159
|
- !ruby/object:Gem::Version
|
156
160
|
version: '0'
|
157
|
-
segments:
|
158
|
-
- 0
|
159
|
-
hash: 2616840748018373836
|
160
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
162
|
requirements:
|
163
|
-
- -
|
163
|
+
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version:
|
168
|
+
rubygems_version: 2.4.8
|
169
169
|
signing_key:
|
170
|
-
specification_version:
|
170
|
+
specification_version: 4
|
171
171
|
summary: Ruby bindings for ZBar, a barcode recognition library
|
172
172
|
test_files: []
|