zpl-transformer 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 90540d561ecdad6ac549056e73e4d442c06be23b
4
- data.tar.gz: e5b8310eeade5270de26ff90cbc7b8756c3ff1fe
2
+ SHA256:
3
+ metadata.gz: 4e23fcefad60e96255d1e259576e0c67571ab97d3896ba27d29a059961993c7f
4
+ data.tar.gz: 3485c2f1bec85c879e758579892b99b29938b4e0a7c8d75f8ea71a7a608d4c3e
5
5
  SHA512:
6
- metadata.gz: b8e603cacc349e32c7fff32306a4a7ad4ceb9c13230454f460c91db6e7f54f06de1770734f77539046901fa8202e3a1174170bec1fc9122bb2a95498ac28bd3f
7
- data.tar.gz: 42738573dd5cd741bb954a159889bc65e186e8a611438ea3bd091197a33cf80fdf74e072fdb71ed28242404eeaa6ec13a05b54264b52dbda2a0a5c831fdae6c7
6
+ metadata.gz: b21723ceaac4193f7c7a70754a5e108804533877c00e71cb6c70adfeead0b930e16c4cec2d12e2400cf984b57fe1d77fe85e11ef81d216b5be7e2f640c8ab371
7
+ data.tar.gz: 3d2c29f5fc6830dff43738a63f036e13d3cf800d3895b266285b3f3f2680654d369e61e5f22bf0b7f4e32bfc13e214a1938327e569ea56dba0f1630d25be9255
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ - Add scaling for FT command
6
+
3
7
  ## 0.3.1
4
8
 
5
9
  - Fix Reader when next '^' is not a command
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zpl-transformer (0.3.1)
4
+ zpl-transformer (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -44,6 +44,7 @@ List of commands that can be scaled currently:
44
44
  - `^GB` - Graphic Box
45
45
  - `^BC` - Code 128 Bar Code (Subsets A, B, and C)
46
46
  - `^PW` - Print Width
47
+ - `^FT` - Field Typeset
47
48
 
48
49
  These commands have at least one argument that is a coordinate (in dots) and need to be recalculated (scaled).
49
50
  The non-coordinate arguments and all other commands not listed above are not touched and left as is.
@@ -59,6 +59,14 @@ module Zpl::Transformer
59
59
  #
60
60
  # Param 0: label width in dots
61
61
  "PW" => [0],
62
+
63
+ # ^FT - Field Typeset
64
+ # This command sets relative position to LabelHome (which can be set by ^LH)
65
+ #
66
+ # Param 0: x-axis location in dots
67
+ # Param 1: y-axis location in dots
68
+ # Param 3: justification (enum)
69
+ "FT" => [0, 1],
62
70
  }
63
71
 
64
72
  def map_cmd(cmd)
@@ -1,3 +1,3 @@
1
1
  module Zpl
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zpl-transformer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit de Chezelles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-02 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,8 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubyforge_project:
106
- rubygems_version: 2.5.1
105
+ rubygems_version: 3.0.3
107
106
  signing_key:
108
107
  specification_version: 4
109
108
  summary: Simple gem to scale ZPL label