pdf417 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2e829427497f29a0b97801db21c7a69a800146d2
4
+ data.tar.gz: 7d931d10a7ad3eb93c30bec695135bfd2a61eb48
5
+ SHA512:
6
+ metadata.gz: 4593189492fc7404b8367df45aa0c9880948d5e3a089eb2a094fafba15aea8813f3ecac0631cf32d4816e2728749eeea768d04c7ec5c9e1a16ab4783fde875a2
7
+ data.tar.gz: d3931448f8d561e3c7518701c5ec505cd96671ae4e46bb9d37bff6439b3b66c793a7b9d053b6cc662eb842be7b943905df9a2a0f03310f9d3bae5b4702e73b60
data/.gitignore CHANGED
@@ -1,14 +1,24 @@
1
1
  *.sw?
2
2
  .DS_Store
3
- coverage
4
3
  rdoc
5
- pkg
6
4
  *~
7
5
  ext/pdf417/*.dll
8
6
  lib/pdf417/*.so
7
+ ext/pdf417/*.so
9
8
  lib/pdf417/*.bundle
9
+ ext/pdf417/*.bundle
10
10
  lib/pdf417/*.o
11
+ ext/pdf417/*.o
11
12
  lib/pdf417/Makefile
13
+ ext/pdf417/Makefile
12
14
  stash
13
15
  .rake_tasks
14
- tmp
16
+ /.bundle/
17
+ /.yardoc
18
+ /Gemfile.lock
19
+ /_yardoc/
20
+ /coverage/
21
+ /doc/
22
+ /pkg/
23
+ /spec/reports/
24
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # A sample Gemfile
2
+ source "https://rubygems.org"
3
+
4
+ group :test do
5
+ gem 'shoulda', :require => false
6
+ end
7
+
8
+
9
+ gemspec
data/Rakefile CHANGED
@@ -1,66 +1,20 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
3
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "pdf417"
8
- gem.summary = %Q{A Ruby wrapper for the PDF417 barcode library}
9
- gem.description = %Q{Generate a series of codewords or a binary blob for PDF417 barcodes}
10
- gem.email = "j.prior@asee.org"
11
- gem.homepage = "http://github.com/asee/pdf417"
12
- gem.authors = ["jamesprior"]
13
- gem.extensions << 'ext/pdf417/extconf.rb'
14
- gem.require_paths << 'ext'
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- rescue LoadError
18
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
19
8
  end
20
9
 
21
- require 'rake/testtask'
22
- Rake::TestTask.new(:test) do |test|
23
- test.libs << 'lib' << 'test'
24
- test.pattern = 'test/**/*_test.rb'
25
- test.verbose = true
26
- end
27
-
28
- begin
29
- require 'rcov/rcovtask'
30
- Rcov::RcovTask.new do |test|
31
- test.libs << 'test'
32
- test.pattern = 'test/**/*_test.rb'
33
- test.verbose = true
34
- end
35
- rescue LoadError
36
- task :rcov do
37
- abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
38
- end
39
- end
40
-
41
- task :test => :check_dependencies
42
-
43
10
  task :default => :test
44
11
 
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
47
- if File.exist?('VERSION')
48
- version = File.read('VERSION')
49
- else
50
- version = ""
51
- end
52
-
53
- rdoc.rdoc_dir = 'rdoc'
54
- rdoc.title = "pdf417 #{version}"
55
- rdoc.rdoc_files.include('README*')
56
- rdoc.rdoc_files.include('lib/**/*.rb')
57
- rdoc.rdoc_files.include("*.rdoc")
58
- rdoc.rdoc_files.include("ext/pdf417/*.c")
59
- end
60
-
61
12
  desc 'rebuilds the pdf417 library'
62
13
  task :build_extension do
63
14
  pwd = `pwd`
64
15
  system "cd ext/pdf417 && make clean"
65
16
  system "cd ext/pdf417 && ruby extconf.rb && make"
66
17
  end
18
+
19
+
20
+ task :test => [:build_extension]
@@ -53,12 +53,16 @@ void Init_pdf417() {
53
53
  * Returns an array of integers showing the codewords
54
54
  */
55
55
  static VALUE rb_pdf417_lib_encode_text(VALUE self, VALUE text) {
56
+
57
+ Check_Type(text, T_STRING);
58
+
56
59
  VALUE list;
57
60
  int k;
58
61
 
59
62
  pdf417param p;
60
63
  pdf417init(&p);
61
64
  p.text = StringValuePtr(text);
65
+ p.lenText = (int)RSTRING_LEN(text);
62
66
  fetchCodewords(&p);
63
67
  if (p.error) {
64
68
  pdf417free(&p);
@@ -116,8 +120,11 @@ static VALUE rb_pdf417_lib_codewords(VALUE self) {
116
120
 
117
121
 
118
122
  text = rb_iv_get(self, "@text");
123
+ Check_Type(text, T_STRING);
124
+
119
125
  pdf417init(&p);
120
126
  p.text = StringValuePtr(text);
127
+ p.lenText = (int)RSTRING_LEN(text);
121
128
  fetchCodewords(&p);
122
129
  if (p.error) {
123
130
  pdf417free(&p);
@@ -155,11 +162,14 @@ static VALUE rb_pdf417_lib_to_blob(VALUE self) {
155
162
  code_rows = rb_iv_get(self, "@code_rows");
156
163
  code_cols = rb_iv_get(self, "@code_cols");
157
164
 
165
+ Check_Type(text, T_STRING);
166
+
158
167
  // re-set our internal variables
159
168
  pdf417init(ptr);
160
169
 
161
170
  // Always set the text, can't really go wrong here
162
171
  ptr->text = StringValuePtr(text);
172
+ ptr->lenText = (int)RSTRING_LEN(text);
163
173
 
164
174
  // Start setting them based off of what we got
165
175
  if ( TYPE(generation_options) == T_FIXNUM ){
@@ -839,7 +839,9 @@ void paintCode(pPdf417param p) {
839
839
  if (tot > MAX_DATA_CODEWORDS + 2) {
840
840
  tot = getMaxSquare(p);
841
841
  }
842
- p->errorLevel = maxPossibleErrorLevel(tot - p->lenCodewords);
842
+ if (!(p->options & PDF417_USE_ERROR_LEVEL)) {
843
+ p->errorLevel = maxPossibleErrorLevel(tot - p->lenCodewords);
844
+ }
843
845
  lenErr = 2 << p->errorLevel;
844
846
  pad = tot - lenErr - p->lenCodewords;
845
847
  pp.cwPtr = p->lenCodewords;
@@ -160,7 +160,11 @@ class PDF417
160
160
  raise GenerationError, "Could not generate bitmap error: #{options.join(', ')}"
161
161
  end
162
162
  else
163
- @codewords = lib.codewords
163
+ if lib.raw_codewords.is_a?(Array)
164
+ @codewords = lib.raw_codewords
165
+ else
166
+ @codewords = lib.codewords
167
+ end
164
168
  @bit_columns = lib.bit_columns
165
169
  @bit_rows = ((lib.bit_columns - 1) / 8) + 1
166
170
  @bit_length = lib.bit_length
@@ -197,7 +201,7 @@ class PDF417
197
201
  self.encoding.each{|x| puts x.gsub("0"," ")}
198
202
  end
199
203
 
200
- def to_png(opts = {})
204
+ def to_chunky_png(opts = {})
201
205
  require 'chunky_png' unless defined?(ChunkyPNG)
202
206
 
203
207
  self.generate! if @blob.nil?
@@ -225,7 +229,11 @@ class PDF417
225
229
  y += opts[:y_scale]
226
230
  x = opts[:margin]
227
231
  end
228
- canvas.to_datastream.to_s
232
+ canvas
233
+ end
234
+
235
+ def to_png(opts = {})
236
+ to_chunky_png(opts).to_datastream.to_s
229
237
  end
230
238
 
231
239
 
@@ -0,0 +1,3 @@
1
+ module PDF417
2
+ VERSION = "1.0.0"
3
+ end
@@ -1,47 +1,27 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'pdf417/version'
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pdf417}
8
- s.version = "0.2.0"
8
+ s.version = PDF417::VERSION
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jamesprior"]
12
12
  s.date = %q{2011-07-25}
13
13
  s.description = %q{Generate a series of codewords or a binary blob for PDF417 barcodes}
14
14
  s.email = %q{j.prior@asee.org}
15
- s.extensions = ["ext/pdf417/extconf.rb", "ext/pdf417/extconf.rb"]
15
+ s.extensions = ["ext/pdf417/extconf.rb"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.rdoc"
19
19
  ]
20
- s.files = [
21
- ".document",
22
- ".gitignore",
23
- "LICENSE",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "ext/pdf417/Makefile",
28
- "ext/pdf417/extconf.rb",
29
- "ext/pdf417/pdf417.c",
30
- "ext/pdf417/pdf417.h",
31
- "ext/pdf417/pdf417lib.c",
32
- "ext/pdf417/pdf417lib.h",
33
- "ext/pdf417/pdf417libimp.h",
34
- "lib/pdf417.rb",
35
- "lib/pdf417/lib.rb",
36
- "pdf417.gemspec",
37
- "script/console",
38
- "test/pdf417/lib_test.rb",
39
- "test/pdf417_test.rb",
40
- "test/test_helper.rb"
41
- ]
20
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+
42
22
  s.homepage = %q{http://github.com/asee/pdf417}
43
23
  s.rdoc_options = ["--charset=UTF-8"]
44
- s.require_paths = ["lib", "ext", "ext"]
24
+ s.require_paths = ["lib", "ext"]
45
25
  s.rubygems_version = %q{1.5.3}
46
26
  s.summary = %q{A Ruby wrapper for the PDF417 barcode library}
47
27
  s.test_files = [
@@ -58,5 +38,10 @@ Gem::Specification.new do |s|
58
38
  end
59
39
  else
60
40
  end
41
+
42
+ s.add_development_dependency "bundler", "~> 1.11"
43
+ s.add_development_dependency "rake", "~> 10.0"
44
+ s.add_development_dependency "minitest", "~> 5.0"
45
+
61
46
  end
62
47
 
@@ -1,6 +1,6 @@
1
1
  require 'test_helper'
2
2
 
3
- class PDF417::Lib::LibTest < Test::Unit::TestCase
3
+ class PDF417::Lib::LibTest < Minitest::Test
4
4
 
5
5
  should "initialize text" do
6
6
  b = PDF417::Lib.new("fred")
@@ -51,5 +51,19 @@ class PDF417::Lib::LibTest < Test::Unit::TestCase
51
51
  assert b.codewords.is_a?(Array)
52
52
  end
53
53
 
54
+ should "encode a complete ruby string with null bytes" do
55
+ data_without_null_byptes = ['01', '01']
56
+ without_null_bytes = PDF417::Lib.encode_text([data_without_null_byptes.join].pack("H*"))
57
+
58
+ data_with_null_byptes = ['01', '01', '00', '00', '00', '00']
59
+ with_null_bytes = PDF417::Lib.encode_text([data_with_null_byptes.join].pack("H*"))
60
+
61
+ refute_equal with_null_bytes, without_null_bytes
62
+ end
63
+
64
+ should "not fail with empty text" do
65
+ assert_equal [], PDF417::Lib.encode_text("")
66
+ end
67
+
54
68
 
55
69
  end
@@ -5,7 +5,7 @@ end
5
5
 
6
6
  require 'test_helper'
7
7
 
8
- class Pdf417Test < Test::Unit::TestCase
8
+ class Pdf417Test < Minitest::Test
9
9
 
10
10
  should "initialize text as an attr" do
11
11
  b = PDF417.new(:text => "fred")
@@ -59,8 +59,10 @@ class Pdf417Test < Test::Unit::TestCase
59
59
  b = PDF417.new
60
60
  b.raw_codewords = [4, 815, 514, 119]
61
61
  assert_equal [4, 815, 514, 119], b.codewords
62
- assert_nothing_raised do
62
+ begin
63
63
  b.to_blob
64
+ rescue Exception => e
65
+ assert false, "Expected nothing raised, instead got #{e.message}"
64
66
  end
65
67
  assert_barcode b
66
68
  end
@@ -73,58 +75,58 @@ class Pdf417Test < Test::Unit::TestCase
73
75
  end
74
76
 
75
77
  should "have a blob" do
76
- assert_not_nil @barcode.blob
77
- assert_not_nil @barcode.to_blob
78
+ refute_nil @barcode.blob
79
+ refute_nil @barcode.to_blob
78
80
  assert_barcode @barcode
79
81
  end
80
82
 
81
83
  should "know bit columns" do
82
- assert_not_nil @barcode.bit_columns
84
+ refute_nil @barcode.bit_columns
83
85
  end
84
86
 
85
87
  should "know bit rows" do
86
- assert_not_nil @barcode.bit_rows
88
+ refute_nil @barcode.bit_rows
87
89
  end
88
90
 
89
91
  should "know bit length" do
90
- assert_not_nil @barcode.bit_length
92
+ refute_nil @barcode.bit_length
91
93
  end
92
94
 
93
95
  should "know rows" do
94
- assert_not_nil @barcode.rows
96
+ refute_nil @barcode.rows
95
97
  end
96
98
 
97
99
  should "know cols" do
98
- assert_not_nil @barcode.cols
100
+ refute_nil @barcode.cols
99
101
  end
100
102
 
101
103
  should "know error level" do
102
- assert_not_nil @barcode.error_level
104
+ refute_nil @barcode.error_level
103
105
  end
104
106
 
105
107
  should "know aspect ratio" do
106
- assert_not_nil @barcode.aspect_ratio
108
+ refute_nil @barcode.aspect_ratio
107
109
  end
108
110
 
109
111
  should "know y height" do
110
- assert_not_nil @barcode.y_height
112
+ refute_nil @barcode.y_height
111
113
  end
112
114
 
113
115
  should "regenerate after rows changed" do
114
116
  @barcode.rows = 10
115
- assert_not_equal @blob, @barcode.to_blob
117
+ refute_equal @blob, @barcode.to_blob
116
118
  assert_barcode @barcode
117
119
  end
118
120
 
119
121
  should "regenerate after cols changed" do
120
122
  @barcode.cols = 10
121
- assert_not_equal @blob, @barcode.to_blob
123
+ refute_equal @blob, @barcode.to_blob
122
124
  assert_barcode @barcode
123
125
  end
124
126
 
125
127
  should "regenerate after error level changed" do
126
128
  @barcode.error_level = 7
127
- assert_not_equal @blob, @barcode.to_blob
129
+ refute_equal @blob, @barcode.to_blob
128
130
  assert_barcode_start_sequence @barcode
129
131
  assert_barcode_end_sequence @barcode
130
132
  end
@@ -132,7 +134,7 @@ class Pdf417Test < Test::Unit::TestCase
132
134
  should "regenerate after raw codewords changed" do
133
135
  @barcode.raw_codewords = @barcode.codewords + [245, 123]
134
136
  @barcode.raw_codewords[0] = @barcode.raw_codewords.length
135
- assert_not_equal @blob, @barcode.to_blob
137
+ refute_equal @blob, @barcode.to_blob
136
138
  assert_barcode @barcode
137
139
  end
138
140
 
@@ -145,7 +147,7 @@ class Pdf417Test < Test::Unit::TestCase
145
147
  @barcode.error_level = 3
146
148
  @blob = @barcode.to_blob
147
149
  @barcode.aspect_ratio = 1000
148
- assert_not_equal @blob, @barcode.to_blob
150
+ refute_equal @blob, @barcode.to_blob
149
151
  assert_barcode_start_sequence @barcode
150
152
  assert_barcode_end_sequence @barcode
151
153
  end
@@ -154,7 +156,7 @@ class Pdf417Test < Test::Unit::TestCase
154
156
  should "know max rows after generating out of bounds" do
155
157
  b = PDF417.new(:rows => 10000, :text => "test")
156
158
  b.generate!
157
- assert_not_equal 10000, b.rows
159
+ refute_equal 10000, b.rows
158
160
  end
159
161
 
160
162
 
@@ -1,36 +1,26 @@
1
1
 
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'ext'))
4
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
+ # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+ # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'ext'))
4
+ # $LOAD_PATH.unshift(File.dirname(__FILE__))
5
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
6
+ $LOAD_PATH.unshift File.expand_path('../../ext', __FILE__)
5
7
  require 'pdf417'
6
-
7
- require 'rubygems'
8
- require 'test/unit'
8
+ require 'minitest/autorun'
9
9
  require 'shoulda'
10
- require 'ruby-debug'
11
-
12
10
 
13
- class Test::Unit::TestCase
14
- end
15
11
 
16
12
  def assert_barcode(barcode, msg = nil)
17
- full_message = build_message(msg, "? should have a valid PDF417 start and end sequence for each row", barcode)
18
- assert_block(full_message) do
19
- barcode.encoding.any? && barcode.encoding.all?{|x| x.start_with?("11111111010101000") && x.end_with?("111111101000101001") }
20
- end
13
+ full_message = message(msg) { "Expected #{mu_pp(barcode)} to have a valid PDF417 start and end sequence for each row" }
14
+ assert (barcode.encoding.any? && barcode.encoding.all?{|x| x.start_with?("11111111010101000") && x.end_with?("111111101000101001") }), full_message
21
15
  end
22
16
 
23
17
  def assert_barcode_start_sequence(barcode, msg = nil)
24
- full_message = build_message(msg, "? should have a valid PDF417 start sequence for each row", barcode)
25
- assert_block(full_message) do
26
- barcode.encoding.any? && barcode.encoding.all?{|x| x.start_with?("11111111010101000")}
27
- end
18
+ full_message = message(msg) { "Expected #{mu_pp(barcode)} to have a valid PDF417 start sequence for each row" }
19
+ assert (barcode.encoding.any? && barcode.encoding.all?{|x| x.start_with?("11111111010101000")}), full_message
28
20
  end
29
21
 
30
22
 
31
23
  def assert_barcode_end_sequence(barcode, msg = nil)
32
- full_message = build_message(msg, "? should have a valid PDF417 end sequence for each row", barcode)
33
- assert_block(full_message) do
34
- barcode.encoding.any? && barcode.encoding.all?{|x| x.end_with?("111111101000101001") }
35
- end
24
+ full_message = message(msg) { "Expected #{mu_pp(barcode)} to have a valid PDF417 end sequence for each row" }
25
+ assert (barcode.encoding.any? && barcode.encoding.all?{|x| x.end_with?("111111101000101001") }), full_message
36
26
  end
metadata CHANGED
@@ -1,42 +1,73 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pdf417
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - jamesprior
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-07-25 00:00:00 -05:00
19
- default_executable:
20
- dependencies: []
21
-
11
+ date: 2011-07-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
22
55
  description: Generate a series of codewords or a binary blob for PDF417 barcodes
23
56
  email: j.prior@asee.org
24
57
  executables: []
25
-
26
- extensions:
58
+ extensions:
27
59
  - ext/pdf417/extconf.rb
28
- - ext/pdf417/extconf.rb
29
- extra_rdoc_files:
60
+ extra_rdoc_files:
30
61
  - LICENSE
31
62
  - README.rdoc
32
- files:
33
- - .document
34
- - .gitignore
63
+ files:
64
+ - ".document"
65
+ - ".gitignore"
66
+ - Gemfile
35
67
  - LICENSE
36
68
  - README.rdoc
37
69
  - Rakefile
38
70
  - VERSION
39
- - ext/pdf417/Makefile
40
71
  - ext/pdf417/extconf.rb
41
72
  - ext/pdf417/pdf417.c
42
73
  - ext/pdf417/pdf417.h
@@ -45,48 +76,39 @@ files:
45
76
  - ext/pdf417/pdf417libimp.h
46
77
  - lib/pdf417.rb
47
78
  - lib/pdf417/lib.rb
79
+ - lib/pdf417/version.rb
48
80
  - pdf417.gemspec
49
81
  - script/console
50
82
  - test/pdf417/lib_test.rb
51
83
  - test/pdf417_test.rb
52
84
  - test/test_helper.rb
53
- has_rdoc: true
54
85
  homepage: http://github.com/asee/pdf417
55
86
  licenses: []
56
-
87
+ metadata: {}
57
88
  post_install_message:
58
- rdoc_options:
59
- - --charset=UTF-8
60
- require_paths:
89
+ rdoc_options:
90
+ - "--charset=UTF-8"
91
+ require_paths:
61
92
  - lib
62
93
  - ext
63
- - ext
64
- required_ruby_version: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
67
96
  - - ">="
68
- - !ruby/object:Gem::Version
69
- hash: 3
70
- segments:
71
- - 0
72
- version: "0"
73
- required_rubygems_version: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
76
101
  - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- version: "0"
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
82
104
  requirements: []
83
-
84
105
  rubyforge_project:
85
- rubygems_version: 1.5.3
106
+ rubygems_version: 2.2.2
86
107
  signing_key:
87
108
  specification_version: 3
88
109
  summary: A Ruby wrapper for the PDF417 barcode library
89
- test_files:
110
+ test_files:
90
111
  - test/pdf417/lib_test.rb
91
112
  - test/pdf417_test.rb
92
113
  - test/test_helper.rb
114
+ has_rdoc:
@@ -1,157 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- #### Start of system configuration section. ####
5
-
6
- srcdir = .
7
- topdir = /opt/rubyEE/lib/ruby/1.8/i686-darwin10.3.0
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- exec_prefix = $(prefix)
11
- prefix = $(DESTDIR)/opt/rubyEE
12
- sharedstatedir = $(prefix)/com
13
- mandir = $(datarootdir)/man
14
- psdir = $(docdir)
15
- oldincludedir = $(DESTDIR)/usr/include
16
- localedir = $(datarootdir)/locale
17
- bindir = $(exec_prefix)/bin
18
- libexecdir = $(exec_prefix)/libexec
19
- sitedir = $(libdir)/ruby/site_ruby
20
- htmldir = $(docdir)
21
- vendorarchdir = $(vendorlibdir)/$(sitearch)
22
- includedir = $(prefix)/include
23
- infodir = $(datarootdir)/info
24
- vendorlibdir = $(vendordir)/$(ruby_version)
25
- sysconfdir = $(prefix)/etc
26
- libdir = $(exec_prefix)/lib
27
- sbindir = $(exec_prefix)/sbin
28
- rubylibdir = $(libdir)/ruby/$(ruby_version)
29
- docdir = $(datarootdir)/doc/$(PACKAGE)
30
- dvidir = $(docdir)
31
- vendordir = $(libdir)/ruby/vendor_ruby
32
- datarootdir = $(prefix)/share
33
- pdfdir = $(docdir)
34
- archdir = $(rubylibdir)/$(arch)
35
- sitearchdir = $(sitelibdir)/$(sitearch)
36
- datadir = $(datarootdir)
37
- localstatedir = $(prefix)/var
38
- sitelibdir = $(sitedir)/$(ruby_version)
39
-
40
- CC = gcc
41
- LIBRUBY = $(LIBRUBY_A)
42
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
43
- LIBRUBYARG_SHARED =
44
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
45
-
46
- RUBY_EXTCONF_H =
47
- CFLAGS = -fno-common -g -O2 -pipe -fno-common $(cflags)
48
- INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
49
- DEFS =
50
- CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags)
51
- CXXFLAGS = $(CFLAGS)
52
- ldflags = -L.
53
- dldflags =
54
- archflag =
55
- DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
56
- LDSHARED = cc -dynamic -bundle -undefined suppress -flat_namespace
57
- AR = ar
58
- EXEEXT =
59
-
60
- RUBY_INSTALL_NAME = ruby
61
- RUBY_SO_NAME = ruby
62
- arch = i686-darwin10.3.0
63
- sitearch = i686-darwin10.3.0
64
- ruby_version = 1.8
65
- ruby = /opt/rubyEE/bin/ruby
66
- RUBY = $(ruby)
67
- RM = rm -f
68
- MAKEDIRS = mkdir -p
69
- INSTALL = /usr/bin/install -c
70
- INSTALL_PROG = $(INSTALL) -m 0755
71
- INSTALL_DATA = $(INSTALL) -m 644
72
- COPY = cp
73
-
74
- #### End of system configuration section. ####
75
-
76
- preload =
77
-
78
- libpath = . $(libdir)
79
- LIBPATH = -L. -L$(libdir)
80
- DEFFILE =
81
-
82
- CLEANFILES = mkmf.log
83
- DISTCLEANFILES =
84
-
85
- extout =
86
- extout_prefix =
87
- target_prefix =
88
- LOCAL_LIBS =
89
- LIBS = -ldl -lobjc
90
- SRCS = pdf417.c pdf417lib.c
91
- OBJS = pdf417.o pdf417lib.o
92
- TARGET = pdf417
93
- DLLIB = $(TARGET).bundle
94
- EXTSTATIC =
95
- STATIC_LIB =
96
-
97
- BINDIR = $(bindir)
98
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
99
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
100
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
101
-
102
- TARGET_SO = $(DLLIB)
103
- CLEANLIBS = $(TARGET).bundle $(TARGET).il? $(TARGET).tds $(TARGET).map
104
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
105
-
106
- all: $(DLLIB)
107
- static: $(STATIC_LIB)
108
-
109
- clean:
110
- @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
111
-
112
- distclean: clean
113
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
114
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
115
-
116
- realclean: distclean
117
- install: install-so install-rb
118
-
119
- install-so: $(RUBYARCHDIR)
120
- install-so: $(RUBYARCHDIR)/$(DLLIB)
121
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
122
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
123
- install-rb: pre-install-rb install-rb-default
124
- install-rb-default: pre-install-rb-default
125
- pre-install-rb: Makefile
126
- pre-install-rb-default: Makefile
127
- $(RUBYARCHDIR):
128
- $(MAKEDIRS) $@
129
-
130
- site-install: site-install-so site-install-rb
131
- site-install-so: install-so
132
- site-install-rb: install-rb
133
-
134
- .SUFFIXES: .c .m .cc .cxx .cpp .C .o
135
-
136
- .cc.o:
137
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
138
-
139
- .cxx.o:
140
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
141
-
142
- .cpp.o:
143
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
144
-
145
- .C.o:
146
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
147
-
148
- .c.o:
149
- $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
150
-
151
- $(DLLIB): $(OBJS) Makefile
152
- @-$(RM) $@
153
- $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
154
-
155
-
156
-
157
- $(OBJS): ruby.h defines.h