barby 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +42 -9
  2. data/lib/barby.rb +0 -1
  3. data/lib/barby/version.rb +1 -1
  4. metadata +2 -2
data/README CHANGED
@@ -1,11 +1,14 @@
1
- Barby is a Ruby barcode generator. It does not depend on other libraries
2
- (for the core functionality) and is easily extentable.
1
+ Barby is a Ruby library that generates barcodes in a variety of symbologies.
2
+ Its functionality is split into barcode and "outputter" objects. Barcode
3
+ objects turn data into a binary representation for a given symbology.
4
+ Outputters then take this representation and turns it into images, PDF, etc.
3
5
 
4
- The barcode objects are separated from the process of generating graphical
5
- (or other) representations. A barcode's only responsibility is to provide
6
- a string representation consisting of 1s and 0s representing bars and spaces.
7
- This string can then be used to generate (for example) an image with the
8
- RMagickOutputter, or an ASCII string such as the one below.
6
+ You can easily add a symbology without having to worry about graphical
7
+ representation. If it can be represented as the usual 1D or 2D matrix of
8
+ lines or squares, outputters will do that for you.
9
+
10
+ Likewise, you can easily add an outputter for a format that doesn't have one
11
+ yet, and it will work with all existing symbologies.
9
12
 
10
13
  See Barby::Barcode and Barby::Outputter for more information.
11
14
 
@@ -14,7 +17,7 @@ See Barby::Barcode and Barby::Outputter for more information.
14
17
 
15
18
  barcode = Barby::Code128B.new('BARBY')
16
19
 
17
- puts barcode.to_ascii
20
+ puts barcode.to_ascii #Implicitly uses the AsciiOutputter
18
21
 
19
22
  ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ##
20
23
  ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ##
@@ -26,4 +29,34 @@ See Barby::Barcode and Barby::Outputter for more information.
26
29
  ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ##
27
30
  ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ##
28
31
  ## # # # # ## # # ## ## # ### # # ## ### ## # ## ### ### ## ### # ##
29
- B A R B Y
32
+ B A R B Y
33
+
34
+
35
+ Supported symbologies:
36
+
37
+ * Code 25
38
+ * Interleaved
39
+ * IATA
40
+ * Code 39
41
+ * Code 93
42
+ * Code 128
43
+ * GS1 128
44
+ * EAN-13
45
+ * Bookland
46
+ * UPC-A
47
+ * EAN-8
48
+ * UPC/EAN supplemental, 2 & 5 digits
49
+
50
+ * QR Code
51
+ * DataMatrix (Semacode)
52
+ * PDF417 (requires JRuby)
53
+
54
+
55
+ Formats supported by outputters:
56
+
57
+ * Text (mostly for testing)
58
+ * PNG, JPEG, GIF
59
+ * PS, EPS
60
+ * SVG
61
+ * PDF
62
+ * HTML
@@ -10,7 +10,6 @@ require 'barby/barcode/ean_13'
10
10
  require 'barby/barcode/ean_8'
11
11
  require 'barby/barcode/upc_supplemental'
12
12
  require 'barby/barcode/bookland'
13
- require 'barby/barcode/qr_code'
14
13
  require 'barby/barcode/code_25'
15
14
  require 'barby/barcode/code_25_interleaved'
16
15
  require 'barby/barcode/code_25_iata'
@@ -2,7 +2,7 @@ module Barby #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- TINY = 4
5
+ TINY = 5
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: barby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.4
5
+ version: 0.4.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tore Darell
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-13 00:00:00 Z
13
+ date: 2011-08-18 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: Barby creates barcodes.