forked from smparkes/zxing.rb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzxing.rb.gemspec
33 lines (25 loc) · 893 Bytes
/
zxing.rb.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- mode: ruby; encoding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'zxing/version'
java = RUBY_PLATFORM =~ /java/
macruby = defined?(RUBY_ENGINE) && RUBY_ENGINE == "macruby"
Gem::Specification.new do |s|
s.name = "zxing.rb"
s.version = ZXing::VERSION
s.authors = ["Frank Wang"]
s.email = ["[email protected]"]
s.description = "An interface to the zxing decoder libraries. Supports zxing C++ under ruby 2.0.0."
s.files = Dir.glob("{lib,spec}/**/*") + %w(README.rdoc CHANGELOG.rdoc)
s.extra_rdoc_files = ["README.rdoc"]
s.homepage = "http://github.com/smparkes/zxing.rb"
s.rdoc_options = ["--main", "README.rdoc"]
s.require_paths = ["lib"]
s.summary = "Ruby interface to zxing.rb"
if !java && !macruby
s.add_dependency('ffi', '~>1.1.5')
end
if !java
s.add_dependency('rmagick')
end
end