barby-pdf417 0.1.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gemtest +0 -0
- data/CHANGELOG.rdoc +3 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +37 -0
- data/README.rdoc +8 -0
- data/Rakefile +91 -0
- data/ext/java/pdf417/Pdf417lib.java +1471 -0
- data/ext/pdf417/Makefile +220 -0
- data/ext/pdf417/extconf.rb +4 -0
- data/ext/pdf417/pdf417.c +281 -0
- data/ext/pdf417/pdf417.h +23 -0
- data/ext/pdf417/pdf417lib.c +829 -0
- data/ext/pdf417/pdf417lib.h +91 -0
- data/ext/pdf417/pdf417libimp.h +514 -0
- data/lib/barby/barby-pdf417.jar +0 -0
- data/lib/barby/barcode/pdf_417.rb +88 -0
- metadata +192 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 16ada18639197ce18085fe42ac46742b1543dbe5
|
4
|
+
data.tar.gz: 1e0eb86c0995c0ceac804f46f0fcb387d68190ae
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: af705759a76d7f62775474599ce087fe4551771b0cd1603da111b404b594ed0c383f6f135a0deb0f28eeaafdabc664ed34d4585e40599b3692e8285d1b7556f4
|
7
|
+
data.tar.gz: bede7999b463682aaf09359c38d91932c8de48ec2d2da04f8479b39552f74a31d29c448b0eb0e8ea23f7efcd1dea7f5c60028d7aefb25b50c1265d018686e64d
|
data/.gemtest
ADDED
File without changes
|
data/CHANGELOG.rdoc
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
# DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
|
4
|
+
|
5
|
+
source "https://rubygems.org/"
|
6
|
+
|
7
|
+
gem "mini_portile", "~>0.5.0"
|
8
|
+
|
9
|
+
gem "rdoc", "~>4.0", :group => [:development, :test]
|
10
|
+
gem "hoe-bundler", ">=1.1", :group => [:development, :test]
|
11
|
+
gem "hoe-debugging", ">=1.0.3", :group => [:development, :test]
|
12
|
+
gem "hoe-gemspec", ">=1.0", :group => [:development, :test]
|
13
|
+
gem "hoe-git", ">=1.4", :group => [:development, :test]
|
14
|
+
gem "minitest", "~>2.2.2", :group => [:development, :test]
|
15
|
+
gem "rake", ">=0.9", :group => [:development, :test]
|
16
|
+
gem "rake-compiler", "~>0.8.0", :group => [:development, :test]
|
17
|
+
gem "hoe", "~>3.7", :group => [:development, :test]
|
18
|
+
|
19
|
+
# vim: syntax=ruby
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
hoe (3.7.1)
|
5
|
+
rake (>= 0.8, < 11.0)
|
6
|
+
hoe-bundler (1.2.0)
|
7
|
+
hoe (>= 2.2.0)
|
8
|
+
hoe-debugging (1.1.1)
|
9
|
+
hoe-gemspec (1.0.0)
|
10
|
+
hoe (>= 2.2.0)
|
11
|
+
hoe-git (1.5.0)
|
12
|
+
hoe (>= 2.2.0)
|
13
|
+
json (1.8.1)
|
14
|
+
json (1.8.1-java)
|
15
|
+
mini_portile (0.5.2)
|
16
|
+
minitest (2.2.2)
|
17
|
+
rake (10.1.0)
|
18
|
+
rake-compiler (0.8.3)
|
19
|
+
rake
|
20
|
+
rdoc (4.0.1)
|
21
|
+
json (~> 1.4)
|
22
|
+
|
23
|
+
PLATFORMS
|
24
|
+
java
|
25
|
+
ruby
|
26
|
+
|
27
|
+
DEPENDENCIES
|
28
|
+
hoe (~> 3.7)
|
29
|
+
hoe-bundler (>= 1.1)
|
30
|
+
hoe-debugging (>= 1.0.3)
|
31
|
+
hoe-gemspec (>= 1.0)
|
32
|
+
hoe-git (>= 1.4)
|
33
|
+
mini_portile (~> 0.5.0)
|
34
|
+
minitest (~> 2.2.2)
|
35
|
+
rake (>= 0.9)
|
36
|
+
rake-compiler (~> 0.8.0)
|
37
|
+
rdoc (~> 4.0)
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
require 'rubygems'
|
3
|
+
|
4
|
+
gem 'hoe'
|
5
|
+
require 'hoe'
|
6
|
+
Hoe.plugin :debugging
|
7
|
+
Hoe.plugin :git
|
8
|
+
Hoe.plugin :gemspec
|
9
|
+
Hoe.plugin :bundler
|
10
|
+
Hoe.add_include_dirs '.'
|
11
|
+
|
12
|
+
def java?
|
13
|
+
/java/ === RUBY_PLATFORM
|
14
|
+
end
|
15
|
+
|
16
|
+
HOE = Hoe.spec 'barby-pdf417' do
|
17
|
+
developer 'Felix Bellanger', 'felix.bellanger@gmail.com'
|
18
|
+
|
19
|
+
self.readme_file = ['README', ENV['HLANG'], 'rdoc'].compact.join('.')
|
20
|
+
self.history_file = ['CHANGELOG', ENV['HLANG'], 'rdoc'].compact.join('.')
|
21
|
+
|
22
|
+
self.extra_rdoc_files = FileList['*.rdoc','ext/pdf417/*.c']
|
23
|
+
|
24
|
+
self.clean_globs += [
|
25
|
+
'barby-pdf417.gemspec',
|
26
|
+
'lib/barby/barby-pdf417.{bundle,jar,rb,so}'
|
27
|
+
]
|
28
|
+
|
29
|
+
self.extra_dev_deps += [
|
30
|
+
["hoe-bundler", ">= 1.1"],
|
31
|
+
["hoe-debugging", ">= 1.0.3"],
|
32
|
+
["hoe-gemspec", ">= 1.0"],
|
33
|
+
["hoe-git", ">= 1.4"],
|
34
|
+
["minitest", "~> 2.2.2"],
|
35
|
+
["rake", ">= 0.9"],
|
36
|
+
["rake-compiler", "~> 0.8.0"],
|
37
|
+
]
|
38
|
+
|
39
|
+
if java?
|
40
|
+
self.spec_extras = { :platform => 'java' }
|
41
|
+
else
|
42
|
+
self.spec_extras = {
|
43
|
+
:extensions => ["ext/pdf417/extconf.rb"],
|
44
|
+
:required_ruby_version => '>= 1.9.2'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
self.version = '0.1.0'
|
49
|
+
self.licenses = ['MIT']
|
50
|
+
|
51
|
+
self.testlib = :minitest
|
52
|
+
end
|
53
|
+
|
54
|
+
# ----------------------------------------
|
55
|
+
|
56
|
+
def add_file_to_gem relative_path
|
57
|
+
target_path = File.join gem_build_path, relative_path
|
58
|
+
target_dir = File.dirname(target_path)
|
59
|
+
mkdir_p target_dir unless File.directory?(target_dir)
|
60
|
+
rm_f target_path
|
61
|
+
ln relative_path, target_path
|
62
|
+
HOE.spec.files += [relative_path]
|
63
|
+
end
|
64
|
+
|
65
|
+
def gem_build_path
|
66
|
+
File.join 'pkg', HOE.spec.full_name
|
67
|
+
end
|
68
|
+
|
69
|
+
if java?
|
70
|
+
require "rake/javaextensiontask"
|
71
|
+
Rake::JavaExtensionTask.new("barby-pdf417", HOE.spec) do |ext|
|
72
|
+
jruby_home = RbConfig::CONFIG['prefix']
|
73
|
+
ext.ext_dir = 'ext/java'
|
74
|
+
ext.lib_dir = 'lib/barby'
|
75
|
+
jars = ["#{jruby_home}/lib/jruby.jar"] + FileList['lib/*.jar']
|
76
|
+
ext.classpath = jars.map { |x| File.expand_path x }.join ':'
|
77
|
+
end
|
78
|
+
|
79
|
+
task gem_build_path => [:compile] do
|
80
|
+
add_file_to_gem 'lib/barby/barby-pdf417.jar'
|
81
|
+
end
|
82
|
+
else
|
83
|
+
require "rake/extensiontask"
|
84
|
+
|
85
|
+
HOE.spec.files.reject! { |f| f =~ %r{\.(java|jar)$} }
|
86
|
+
|
87
|
+
Rake::ExtensionTask.new("barby-pdf417", HOE.spec) do |ext|
|
88
|
+
ext.lib_dir = File.join(*['lib', 'barby', ENV['FAT_DIR']].compact)
|
89
|
+
ext.config_options << ENV['EXTOPTS']
|
90
|
+
end
|
91
|
+
end
|