zebra-zpl 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +83 -79
  3. data/README.md +442 -442
  4. data/lib/zebra/zpl/barcode.rb +124 -124
  5. data/lib/zebra/zpl/barcode_type.rb +38 -38
  6. data/lib/zebra/zpl/font.rb +48 -48
  7. data/lib/zebra/zpl/graphic.rb +93 -93
  8. data/lib/zebra/zpl/label.rb +89 -89
  9. data/lib/zebra/zpl/text.rb +82 -82
  10. data/lib/zebra/zpl/version.rb +5 -5
  11. metadata +5 -59
  12. data/.gitignore +0 -19
  13. data/.rspec +0 -2
  14. data/CONTRIBUTING.md +0 -49
  15. data/Gemfile +0 -10
  16. data/Guardfile +0 -11
  17. data/LICENSE_ORIGINAL.txt +0 -22
  18. data/Rakefile +0 -1
  19. data/docs/example.rb +0 -290
  20. data/docs/images/barcode.png +0 -0
  21. data/docs/images/datamatrix.png +0 -0
  22. data/docs/images/earth.jpg +0 -0
  23. data/docs/images/graphics.png +0 -0
  24. data/docs/images/image.png +0 -0
  25. data/docs/images/image_inverted.png +0 -0
  26. data/docs/images/image_manipulation.png +0 -0
  27. data/docs/images/images.png +0 -0
  28. data/docs/images/justification.png +0 -0
  29. data/docs/images/qrcode.png +0 -0
  30. data/docs/images/rotation.png +0 -0
  31. data/docs/images/text.png +0 -0
  32. data/spec/fixtures/default.jpg +0 -0
  33. data/spec/spec_helper.rb +0 -24
  34. data/spec/zebra/print_job_spec.rb +0 -31
  35. data/spec/zebra/zpl/barcode_spec.rb +0 -270
  36. data/spec/zebra/zpl/box_spec.rb +0 -67
  37. data/spec/zebra/zpl/character_set_spec.rb +0 -100
  38. data/spec/zebra/zpl/comment_spec.rb +0 -18
  39. data/spec/zebra/zpl/datamatrix_spec.rb +0 -124
  40. data/spec/zebra/zpl/graphics_spec.rb +0 -227
  41. data/spec/zebra/zpl/image_spec.rb +0 -146
  42. data/spec/zebra/zpl/label_spec.rb +0 -110
  43. data/spec/zebra/zpl/pdf417_spec.rb +0 -108
  44. data/spec/zebra/zpl/qrcode_spec.rb +0 -101
  45. data/spec/zebra/zpl/text_spec.rb +0 -109
  46. data/spec/zebra/zpl/zpl_spec.rb +0 -5
  47. data/zebra-zpl.gemspec +0 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c81ca79584b9114a968e839e885f5a486180b851dcc8cfa56c30c81e171ac93
4
- data.tar.gz: 28ba010e016b9b73883671b248527166e5d1d879cbc24b444534285ce324a183
3
+ metadata.gz: a0e6a41ee71b32b72138d0fb8b73c81a296ca0eddaf8965b62c69cd4932b79ba
4
+ data.tar.gz: d3ccd975007859b9eb4e9761daf261c3f8cfe7e1cf16209feedc080b8893ccc5
5
5
  SHA512:
6
- metadata.gz: f00081f07a064a4d1aa713acfc2848944687da7c0132329789352a13c7b289067f23633fc774eb319b14340e9574e23b938a5f5442de49e8c29523776494bb1c
7
- data.tar.gz: c5bb6bdef3609db120b5f8805c7bce83c28220d58485dd1255ce49ec34085557041fd2e1975069bab897b5d5f802841a841f2def3a72d1bde87b12431bdc1f05
6
+ metadata.gz: a92d9ee70b4bc632a9718d9c2376c7f6d8dd3c8250bac1da3bbc2bba136606e99f56dd7dc498a20e6398c06d57012bcffe2b738568fbcbe2882fa1091dd3796f
7
+ data.tar.gz: 450067b5646e3905d09a9a84dbf3b839d2a4e4cb2a3053938cfdf17a6a87f99ab633f333e1ff752f50e019e85c1eccc810cbc8cd9958e5effc905d3bd37dd714
data/CHANGELOG.md CHANGED
@@ -1,79 +1,83 @@
1
- ### 1.1.4 (10/08/2022)
2
-
3
- * [#81](https://github.com/bbulpett/zebra-zpl/pull/81): Added D font type. Added `label_shift` configurable attribute - [@vkhalzov](https://github.com/vkhalzov)
4
- * [#80](https://github.com/bbulpett/zebra-zpl/pull/80): Improvements to barcode usage - [@DmytroVasin](https://github.com/DmytroVasin)
5
- * [#79](https://github.com/bbulpett/zebra-zpl/pull/79): Change appearance of bold text setting - [@DmytroVasin](https://github.com/DmytroVasin)
6
- * [#78](https://github.com/bbulpett/zebra-zpl/pull/78): Fix of a test in image node - [@DmytroVasin](https://github.com/DmytroVasin)
7
- * [#77](https://github.com/bbulpett/zebra-zpl/pull/77): Add `reverse_print` setting for `Zpl::Text` node. Fix mistake with redefining of the default font. Removed unused methods - [@DmytroVasin](https://github.com/DmytroVasin)
8
-
9
- ### 1.1.3 (10/05/2020)
10
-
11
- * [#70](https://github.com/bbulpett/zebra-zpl/pull/70): Update max print speed from 6 to 14 - [@eke-bb](https://github.com/eke-bb)
12
-
13
- ### 1.1.2 (02/25/2019)
14
-
15
- * [#63](https://github.com/bbulpett/zebra-zpl/pull/63): Un-restrict font size - [@mtking2](https://github.com/mtking2)
16
- * [#62](https://github.com/bbulpett/zebra-zpl/pull/62): Add print service option for print jobs (`lp`/`rlpr`) - [@LagTag](https://github.com/LagTag)
17
-
18
- ### 1.1.1 (12/19/2019)
19
-
20
- * [#58](https://github.com/bbulpett/zebra-zpl/pull/58): Add access to source `Img2Zpl::Image` object - [@mtking2](https://github.com/mtking2)
21
-
22
- ### 1.1.0 (11/04/2019)
23
-
24
- * [#54](https://github.com/bbulpett/zebra-zpl/pull/54): Fix height bug with ^B commands - [@mtking2](https://github.com/mtking2)
25
- * [#53](https://github.com/bbulpett/zebra-zpl/pull/53): Added support for symbol types, fixed other bugs with the `Graphic` class, updated specs - [@mtking2](https://github.com/mtking2)
26
- * [#50](https://github.com/bbulpett/zebra-zpl/pull/50): Add support for image elements by incorporating the [img2zpl](https://github.com/mtking2/img2zpl) gem - [@mtking2](https://github.com/mtking2)
27
- * [#49](https://github.com/bbulpett/zebra-zpl/pull/49): Fixed bug with `Barcode`'s `^BY` command. Added UPCA, UPCE, & EAN13 types - [@mtking2](https://github.com/mtking2)
28
- * [#48](https://github.com/bbulpett/zebra-zpl/pull/48): Fixed bug breaking `Text` elements. Added rspecs for `Datamatrix` - [@mtking2](https://github.com/mtking2)
29
- * [#45](https://github.com/bbulpett/zebra-zpl/pull/45): Add CHANGELOG & update README - [@mtking2](https://github.com/mtking2)
30
- * [#44](https://github.com/bbulpett/zebra-zpl/pull/44): Update README & add more docs - [@mtking2](https://github.com/mtking2)
31
- * [#43](https://github.com/bbulpett/zebra-zpl/pull/43): Add ZPL comment element - [@LagTag](https://github.com/LagTag)
32
- * [#42](https://github.com/bbulpett/zebra-zpl/pull/42): Consolidate Graphic Elements to One Class. Deprecate `Box` class - [@LagTag](https://github.com/LagTag)
33
- * [#41](https://github.com/bbulpett/zebra-zpl/pull/41): Ability to pass ZPL string to PrintJob - [@LagTag](https://github.com/LagTag)
34
- * [#40](https://github.com/bbulpett/zebra-zpl/pull/40): Bold Text - [@LagTag](https://github.com/LagTag)
35
- * [#39](https://github.com/bbulpett/zebra-zpl/pull/39): Fix specs + minor maintenance - [@mtking2](https://github.com/mtking2)
36
- * [#36](https://github.com/bbulpett/zebra-zpl/pull/36): Add Datamatrix - [@rafaelmf3](https://github.com/rafaelmf3)
37
- * [#33](https://github.com/bbulpett/zebra-zpl/pull/33): Remove the hardcoded attributes for the box element - [@LagTag](https://github.com/LagTag)
38
- * [#32](https://github.com/bbulpett/zebra-zpl/pull/32): Added diagonal line graphic (^GD) - [@LagTag](https://github.com/LagTag)
39
- * [#31](https://github.com/bbulpett/zebra-zpl/pull/31): Added Circle Graphic (^GC) - [@LagTag](https://github.com/LagTag)
40
- * [#29](https://github.com/bbulpett/zebra-zpl/pull/29): Removed hard coded attributes in Text Element - [@LagTag](https://github.com/LagTag)
41
- * [#27](https://github.com/bbulpett/zebra-zpl/pull/27): Added pdf417 support - [@LagTag](https://github.com/LagTag)
42
- * [#25](https://github.com/bbulpett/zebra-zpl/pull/25): Don't Overwrite Element Widths - [@LagTag](https://github.com/LagTag)
43
-
44
- ### 1.0.5 (2018/10/25)
45
-
46
- * [#22](https://github.com/bbulpett/zebra-zpl/pull/22): update label print density range from 0-6 to 0-15 - [@steve-abrams](https://github.com/steve-abrams)
47
- * [#21](https://github.com/bbulpett/zebra-zpl/pull/21): Support QR codes (fixed) - [@mtking2](https://github.com/mtking2)
48
- * [#20](https://github.com/bbulpett/zebra-zpl/pull/20): Fix incorrect raw flag - [@mtking2](https://github.com/mtking2)
49
-
50
- ### 1.0.4 (2017/10/27)
51
-
52
- * [#15](https://github.com/bbulpett/zebra-zpl/pull/15): Raw ZPL support - [@bbulpett](https://github.com/bbulpett)
53
-
54
- ### 1.0.3 (2017/06/12)
55
-
56
- * [#14](https://github.com/bbulpett/zebra-zpl/pull/14): Version bump to 1.0.3 - [@bbulpett](https://github.com/bbulpett)
57
- * [#13](https://github.com/bbulpett/zebra-zpl/pull/13): Windows Printing Support - [@mtking2](https://github.com/mtking2)
58
-
59
- ### 1.0.2 (2017/04/27)
60
-
61
- * [ead84a4](https://github.com/bbulpett/zebra-zpl/commit/ead84a4170f291e9a121263ac0ce577b9b5b21ba): Revert to Unix-only `lp` - [@bbulpett](https://github.com/bbulpett)
62
-
63
- ### 1.0.1 (2017/04/26)
64
-
65
- * [b5e3f3e](https://github.com/bbulpett/zebra-zpl/commit/b5e3f3ea41960ce953073dcf1b09c28047a17b0d): Attempt `lpr` for Windows if Unix `lp` fails - [@bbulpett](https://github.com/bbulpett)
66
- * [3858b33](https://github.com/bbulpett/zebra-zpl/commit/3858b332491d7afe34277d43530e0da7462da2b1): Use SSL for homepage in gemspec - [@bbulpett](https://github.com/bbulpett)
67
-
68
- ### 1.0.0 (2017/04/26)
69
-
70
- * [#10](https://github.com/bbulpett/zebra-zpl/pull/10): Add side margins - [@bbulpett](https://github.com/bbulpett)
71
- * [#9](https://github.com/bbulpett/zebra-zpl/pull/9): Add padding to sides for text blocks - [@bbulpett](https://github.com/bbulpett)
72
- * [#8](https://github.com/bbulpett/zebra-zpl/pull/8): Add rotation to zpl builders - [@bbulpett](https://github.com/bbulpett)
73
- * [#7](https://github.com/bbulpett/zebra-zpl/pull/7): Add international text support and apply label width to zpl builder methods - [@bbulpett](https://github.com/bbulpett)
74
- * [#6](https://github.com/bbulpett/zebra-zpl/pull/6): Font modifications - [@bbulpett](https://github.com/bbulpett)
75
- * [#5](https://github.com/bbulpett/zebra-zpl/pull/5): Restore barcode functionality - [@bbulpett](https://github.com/bbulpett)
76
- * [#4](https://github.com/bbulpett/zebra-zpl/pull/4): Orientation module - [@bbulpett](https://github.com/bbulpett)
77
- * [#3](https://github.com/bbulpett/zebra-zpl/pull/3): Restore zpl barcode logic - [@bbulpett](https://github.com/bbulpett)
78
- * [#2](https://github.com/bbulpett/zebra-zpl/pull/2): ZPL barcodes tested and working - [@bbulpett](https://github.com/bbulpett)
79
- * [#1](https://github.com/bbulpett/zebra-zpl/pull/1): Convert zpl method, class, and file namings - [@bbulpett](https://github.com/bbulpett)
1
+ ### 1.1.5 (2026/04/05)
2
+
3
+ * [#86](https://github.com/bbulpett/zebra-zpl/pull/86): Reduce gem size by excluding test files - [@yuri-zubov](https://github.com/yuri-zubov)
4
+
5
+ ### 1.1.4 (2022/10/08)
6
+
7
+ * [#81](https://github.com/bbulpett/zebra-zpl/pull/81): Added D font type. Added `label_shift` configurable attribute - [@vkhalzov](https://github.com/vkhalzov)
8
+ * [#80](https://github.com/bbulpett/zebra-zpl/pull/80): Improvements to barcode usage - [@DmytroVasin](https://github.com/DmytroVasin)
9
+ * [#79](https://github.com/bbulpett/zebra-zpl/pull/79): Change appearance of bold text setting - [@DmytroVasin](https://github.com/DmytroVasin)
10
+ * [#78](https://github.com/bbulpett/zebra-zpl/pull/78): Fix of a test in image node - [@DmytroVasin](https://github.com/DmytroVasin)
11
+ * [#77](https://github.com/bbulpett/zebra-zpl/pull/77): Add `reverse_print` setting for `Zpl::Text` node. Fix mistake with redefining of the default font. Removed unused methods - [@DmytroVasin](https://github.com/DmytroVasin)
12
+
13
+ ### 1.1.3 (2020/10/05)
14
+
15
+ * [#70](https://github.com/bbulpett/zebra-zpl/pull/70): Update max print speed from 6 to 14 - [@eke-bb](https://github.com/eke-bb)
16
+
17
+ ### 1.1.2 (2019/02/25)
18
+
19
+ * [#63](https://github.com/bbulpett/zebra-zpl/pull/63): Un-restrict font size - [@mtking2](https://github.com/mtking2)
20
+ * [#62](https://github.com/bbulpett/zebra-zpl/pull/62): Add print service option for print jobs (`lp`/`rlpr`) - [@LagTag](https://github.com/LagTag)
21
+
22
+ ### 1.1.1 (2019/12/19)
23
+
24
+ * [#58](https://github.com/bbulpett/zebra-zpl/pull/58): Add access to source `Img2Zpl::Image` object - [@mtking2](https://github.com/mtking2)
25
+
26
+ ### 1.1.0 (2019/11/04)
27
+
28
+ * [#54](https://github.com/bbulpett/zebra-zpl/pull/54): Fix height bug with ^B commands - [@mtking2](https://github.com/mtking2)
29
+ * [#53](https://github.com/bbulpett/zebra-zpl/pull/53): Added support for symbol types, fixed other bugs with the `Graphic` class, updated specs - [@mtking2](https://github.com/mtking2)
30
+ * [#50](https://github.com/bbulpett/zebra-zpl/pull/50): Add support for image elements by incorporating the [img2zpl](https://github.com/mtking2/img2zpl) gem - [@mtking2](https://github.com/mtking2)
31
+ * [#49](https://github.com/bbulpett/zebra-zpl/pull/49): Fixed bug with `Barcode`'s `^BY` command. Added UPCA, UPCE, & EAN13 types - [@mtking2](https://github.com/mtking2)
32
+ * [#48](https://github.com/bbulpett/zebra-zpl/pull/48): Fixed bug breaking `Text` elements. Added rspecs for `Datamatrix` - [@mtking2](https://github.com/mtking2)
33
+ * [#45](https://github.com/bbulpett/zebra-zpl/pull/45): Add CHANGELOG & update README - [@mtking2](https://github.com/mtking2)
34
+ * [#44](https://github.com/bbulpett/zebra-zpl/pull/44): Update README & add more docs - [@mtking2](https://github.com/mtking2)
35
+ * [#43](https://github.com/bbulpett/zebra-zpl/pull/43): Add ZPL comment element - [@LagTag](https://github.com/LagTag)
36
+ * [#42](https://github.com/bbulpett/zebra-zpl/pull/42): Consolidate Graphic Elements to One Class. Deprecate `Box` class - [@LagTag](https://github.com/LagTag)
37
+ * [#41](https://github.com/bbulpett/zebra-zpl/pull/41): Ability to pass ZPL string to PrintJob - [@LagTag](https://github.com/LagTag)
38
+ * [#40](https://github.com/bbulpett/zebra-zpl/pull/40): Bold Text - [@LagTag](https://github.com/LagTag)
39
+ * [#39](https://github.com/bbulpett/zebra-zpl/pull/39): Fix specs + minor maintenance - [@mtking2](https://github.com/mtking2)
40
+ * [#36](https://github.com/bbulpett/zebra-zpl/pull/36): Add Datamatrix - [@rafaelmf3](https://github.com/rafaelmf3)
41
+ * [#33](https://github.com/bbulpett/zebra-zpl/pull/33): Remove the hardcoded attributes for the box element - [@LagTag](https://github.com/LagTag)
42
+ * [#32](https://github.com/bbulpett/zebra-zpl/pull/32): Added diagonal line graphic (^GD) - [@LagTag](https://github.com/LagTag)
43
+ * [#31](https://github.com/bbulpett/zebra-zpl/pull/31): Added Circle Graphic (^GC) - [@LagTag](https://github.com/LagTag)
44
+ * [#29](https://github.com/bbulpett/zebra-zpl/pull/29): Removed hard coded attributes in Text Element - [@LagTag](https://github.com/LagTag)
45
+ * [#27](https://github.com/bbulpett/zebra-zpl/pull/27): Added pdf417 support - [@LagTag](https://github.com/LagTag)
46
+ * [#25](https://github.com/bbulpett/zebra-zpl/pull/25): Don't Overwrite Element Widths - [@LagTag](https://github.com/LagTag)
47
+
48
+ ### 1.0.5 (2018/10/25)
49
+
50
+ * [#22](https://github.com/bbulpett/zebra-zpl/pull/22): update label print density range from 0-6 to 0-15 - [@steve-abrams](https://github.com/steve-abrams)
51
+ * [#21](https://github.com/bbulpett/zebra-zpl/pull/21): Support QR codes (fixed) - [@mtking2](https://github.com/mtking2)
52
+ * [#20](https://github.com/bbulpett/zebra-zpl/pull/20): Fix incorrect raw flag - [@mtking2](https://github.com/mtking2)
53
+
54
+ ### 1.0.4 (2017/10/27)
55
+
56
+ * [#15](https://github.com/bbulpett/zebra-zpl/pull/15): Raw ZPL support - [@bbulpett](https://github.com/bbulpett)
57
+
58
+ ### 1.0.3 (2017/06/12)
59
+
60
+ * [#14](https://github.com/bbulpett/zebra-zpl/pull/14): Version bump to 1.0.3 - [@bbulpett](https://github.com/bbulpett)
61
+ * [#13](https://github.com/bbulpett/zebra-zpl/pull/13): Windows Printing Support - [@mtking2](https://github.com/mtking2)
62
+
63
+ ### 1.0.2 (2017/04/27)
64
+
65
+ * [ead84a4](https://github.com/bbulpett/zebra-zpl/commit/ead84a4170f291e9a121263ac0ce577b9b5b21ba): Revert to Unix-only `lp` - [@bbulpett](https://github.com/bbulpett)
66
+
67
+ ### 1.0.1 (2017/04/26)
68
+
69
+ * [b5e3f3e](https://github.com/bbulpett/zebra-zpl/commit/b5e3f3ea41960ce953073dcf1b09c28047a17b0d): Attempt `lpr` for Windows if Unix `lp` fails - [@bbulpett](https://github.com/bbulpett)
70
+ * [3858b33](https://github.com/bbulpett/zebra-zpl/commit/3858b332491d7afe34277d43530e0da7462da2b1): Use SSL for homepage in gemspec - [@bbulpett](https://github.com/bbulpett)
71
+
72
+ ### 1.0.0 (2017/04/26)
73
+
74
+ * [#10](https://github.com/bbulpett/zebra-zpl/pull/10): Add side margins - [@bbulpett](https://github.com/bbulpett)
75
+ * [#9](https://github.com/bbulpett/zebra-zpl/pull/9): Add padding to sides for text blocks - [@bbulpett](https://github.com/bbulpett)
76
+ * [#8](https://github.com/bbulpett/zebra-zpl/pull/8): Add rotation to zpl builders - [@bbulpett](https://github.com/bbulpett)
77
+ * [#7](https://github.com/bbulpett/zebra-zpl/pull/7): Add international text support and apply label width to zpl builder methods - [@bbulpett](https://github.com/bbulpett)
78
+ * [#6](https://github.com/bbulpett/zebra-zpl/pull/6): Font modifications - [@bbulpett](https://github.com/bbulpett)
79
+ * [#5](https://github.com/bbulpett/zebra-zpl/pull/5): Restore barcode functionality - [@bbulpett](https://github.com/bbulpett)
80
+ * [#4](https://github.com/bbulpett/zebra-zpl/pull/4): Orientation module - [@bbulpett](https://github.com/bbulpett)
81
+ * [#3](https://github.com/bbulpett/zebra-zpl/pull/3): Restore zpl barcode logic - [@bbulpett](https://github.com/bbulpett)
82
+ * [#2](https://github.com/bbulpett/zebra-zpl/pull/2): ZPL barcodes tested and working - [@bbulpett](https://github.com/bbulpett)
83
+ * [#1](https://github.com/bbulpett/zebra-zpl/pull/1): Convert zpl method, class, and file namings - [@bbulpett](https://github.com/bbulpett)