barcode1dtools 1.0.2.0 → 1.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/barcode1dtools.rb +0 -2
- data/lib/barcode1dtools/code93.rb +2 -0
- data/lib/barcode1dtools/upc_supplemental_2.rb +2 -2
- metadata +29 -55
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ee427efefe92f857fe20f69c78939eeac2758511
|
4
|
+
data.tar.gz: d70599b376bab9d01ae59d3c3dc90d19c15379b5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 887995bd6108f697672e879f75bc40f2d7c139ca1875c56ad249c030f698ffe653d792b3a53e32ff3cbc4a397fcf1c513572be7c159d955b30106ffd2c12710a
|
7
|
+
data.tar.gz: d9fd53b322bb9849e21e00bf374b46f9f7d5de80ecf2d5d9299a7e76e05342b1363f8b9fe278494d85ed5e96d98afa3f0b7a25363ec35e5d421904bbfcb3a2b8
|
data/lib/barcode1dtools.rb
CHANGED
@@ -211,8 +211,6 @@ module Barcode1DTools
|
|
211
211
|
rle_str.tr('123456789', 'nwwwwwwww').tr('wn', wn_pair(options))
|
212
212
|
end
|
213
213
|
|
214
|
-
private
|
215
|
-
|
216
214
|
# Get an "wn" pair from the options
|
217
215
|
def wn_pair(options = {})
|
218
216
|
(options[:w_character] || 'w') + (options[:n_character] || 'n')
|
@@ -21,7 +21,7 @@ module Barcode1DTools
|
|
21
21
|
# pattern = bc.bars
|
22
22
|
# rle_pattern = bc.rle
|
23
23
|
# width = bc.width
|
24
|
-
# check_digit = Barcode1DTools::
|
24
|
+
# check_digit = Barcode1DTools::UPC_Supplemental_2.generate_check_digit_for(num)
|
25
25
|
#
|
26
26
|
# == Other Information
|
27
27
|
# This type of barcode consists of 2 digits, and a check digit
|
@@ -66,7 +66,7 @@ module Barcode1DTools
|
|
66
66
|
# UPC-A is 95 units wide, so the gap is 24 units wide. The
|
67
67
|
# supplemental barcode is 20 units wide. The author hasn't viewed
|
68
68
|
# the specification, but note that the UPC (and more generally EAN)
|
69
|
-
# barcode system never a bar or space of more than four units
|
69
|
+
# barcode system never include a bar or space of more than four units
|
70
70
|
# width. Given that, the gap should likely be at last 10 units
|
71
71
|
# wide.
|
72
72
|
|
metadata
CHANGED
@@ -1,42 +1,30 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: barcode1dtools
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
- 0
|
11
|
-
version: 1.0.2.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2.1
|
12
5
|
platform: ruby
|
13
|
-
authors:
|
6
|
+
authors:
|
14
7
|
- Michael Chaney
|
15
8
|
autorequire:
|
16
9
|
bindir: bin
|
17
10
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2012-10-03 00:00:00 -05:00
|
20
|
-
default_executable:
|
11
|
+
date: 2012-10-03 00:00:00.000000000 Z
|
21
12
|
dependencies: []
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
\t
|
28
|
-
|
29
|
-
|
30
|
-
\t generates and decodes the patterns; actual display or reading from a\n\
|
31
|
-
\t device must be implemented by the programmer.\n"
|
13
|
+
description: "\t Barcode1D is a pure Ruby gem for handling many kinds of\n\t 1-dimensional
|
14
|
+
barcodes. Implemented are Code 128, Code 3 of 9, Code\n\t 93, Code 11, Codabar,
|
15
|
+
Interleaved 2 of 5, COOP 2 of 5, Matrix 2 of\n\t 5, Industrial 2 of 5, IATA 2 of
|
16
|
+
5, PostNet, Plessey, MSI (Modified\n\t Plessey), EAN-13, EAN-8, UPC-A, UPC-E, UPC
|
17
|
+
Supplemental 2, and UPC\n\t Supplemental 5. Patterns are created in either a simple
|
18
|
+
format of\n\t bars and spaces or as a run-length encoded string. This only\n\t
|
19
|
+
generates and decodes the patterns; actual display or reading from a\n\t device
|
20
|
+
must be implemented by the programmer.\n"
|
32
21
|
email: mdchaney@michaelchaney.com
|
33
22
|
executables: []
|
34
|
-
|
35
23
|
extensions: []
|
36
|
-
|
37
24
|
extra_rdoc_files: []
|
38
|
-
|
39
|
-
|
25
|
+
files:
|
26
|
+
- MIT-LICENSE
|
27
|
+
- lib/barcode1dtools.rb
|
40
28
|
- lib/barcode1dtools/codabar.rb
|
41
29
|
- lib/barcode1dtools/code11.rb
|
42
30
|
- lib/barcode1dtools/code128.rb
|
@@ -56,8 +44,6 @@ files:
|
|
56
44
|
- lib/barcode1dtools/upc_e.rb
|
57
45
|
- lib/barcode1dtools/upc_supplemental_2.rb
|
58
46
|
- lib/barcode1dtools/upc_supplemental_5.rb
|
59
|
-
- lib/barcode1dtools.rb
|
60
|
-
- MIT-LICENSE
|
61
47
|
- test/test_barcode1d.rb
|
62
48
|
- test/test_barcode1dcodabar.rb
|
63
49
|
- test/test_barcode1dcode11.rb
|
@@ -78,44 +64,32 @@ files:
|
|
78
64
|
- test/test_barcode1dupce.rb
|
79
65
|
- test/test_barcode1dupcsupp2.rb
|
80
66
|
- test/test_barcode1dupcsupp5.rb
|
81
|
-
has_rdoc: true
|
82
67
|
homepage: http://rubygems.org/gems/barcode1dtools
|
83
|
-
licenses:
|
68
|
+
licenses:
|
84
69
|
- MIT
|
85
70
|
- GPL-2
|
71
|
+
metadata: {}
|
86
72
|
post_install_message:
|
87
73
|
rdoc_options: []
|
88
|
-
|
89
|
-
require_paths:
|
74
|
+
require_paths:
|
90
75
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
|
93
|
-
requirements:
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
94
78
|
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
hash: 59
|
97
|
-
segments:
|
98
|
-
- 1
|
99
|
-
- 8
|
100
|
-
- 6
|
79
|
+
- !ruby/object:Gem::Version
|
101
80
|
version: 1.8.6
|
102
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
-
|
104
|
-
requirements:
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
105
83
|
- - ">="
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
108
|
-
segments:
|
109
|
-
- 0
|
110
|
-
version: "0"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
111
86
|
requirements: []
|
112
|
-
|
113
87
|
rubyforge_project:
|
114
|
-
rubygems_version:
|
88
|
+
rubygems_version: 2.2.2
|
115
89
|
signing_key:
|
116
|
-
specification_version:
|
90
|
+
specification_version: 4
|
117
91
|
summary: Pattern generators for 1D barcodes
|
118
|
-
test_files:
|
92
|
+
test_files:
|
119
93
|
- test/test_barcode1d.rb
|
120
94
|
- test/test_barcode1dcodabar.rb
|
121
95
|
- test/test_barcode1dcode11.rb
|