labrat 0.1.13 → 0.1.14

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
2
  SHA256:
3
- metadata.gz: 0e802b06cf5972204efb98df5db37f8fda029e3c38cf3e8374fd90dfb2189376
4
- data.tar.gz: 2ee7c88054a40f3b254eeec13cc35e521007386e94b1cd23c36cd8c55974003b
3
+ metadata.gz: f6d7ea2a07a4077450d70eea18beb9472f830866841e7c62f85cf917a61a6d82
4
+ data.tar.gz: 666cf99f5016218342cc7a9e8eed616f8b2cec00ced9b4b76753d3fff05602f8
5
5
  SHA512:
6
- metadata.gz: 97888d172c61536505bd8fb25eb9c72a8bd739579c4d5a2c85402db3f7f9b3c877747a9b6651b3c43cff1e432815376c4a0ed6a72d8fd691c042b041eef576e2
7
- data.tar.gz: afa1beada7375558d7cdcf44a550ea2d2b3404e2c4d01c0f171fa667549c10d22129e8a4c7037999118c3372b7c058b104ae76515be35ff5d8a6d2479711ec87
6
+ metadata.gz: 37705fd50acbadd2c6b68b6a91b6004b11b74763fc9f26cdd9baef29112e62d2075dd80ade5eb72ff7e36b32f96d415b610ef55f3faeb6084a299cb114cf566f
7
+ data.tar.gz: dde4ca8c27e70cffc3988fc09ecded937fc8f9c6ebdb9a783b663ae68b0ab110d0c28e017737051f2c32d1a2c01526063265661bf0df67f144a22dee2edb2bf4
data/Gemfile.lock CHANGED
@@ -4,6 +4,8 @@ PATH
4
4
  labrat (0.1.13)
5
5
  activesupport
6
6
  fat_core
7
+ matrix
8
+ methodize
7
9
  prawn (~> 2.0)
8
10
 
9
11
  GEM
@@ -16,17 +18,24 @@ GEM
16
18
  tzinfo (~> 2.0)
17
19
  zeitwerk (~> 2.3)
18
20
  ast (2.4.2)
19
- byebug (11.1.3)
20
21
  coderay (1.1.3)
21
22
  concurrent-ruby (1.1.9)
22
23
  damerau-levenshtein (1.3.3)
24
+ debug (1.4.0)
25
+ irb (>= 1.3.6)
26
+ reline (>= 0.2.7)
23
27
  diff-lcs (1.4.4)
24
28
  fat_core (4.9.2)
25
29
  activesupport
26
30
  damerau-levenshtein
27
31
  i18n (1.8.11)
28
32
  concurrent-ruby (~> 1.0)
33
+ io-console (0.5.11)
34
+ irb (1.4.1)
35
+ reline (>= 0.3.0)
36
+ matrix (0.4.2)
29
37
  method_source (1.0.0)
38
+ methodize (0.3.1)
30
39
  minitest (5.14.4)
31
40
  parallel (1.20.1)
32
41
  parser (3.0.2.0)
@@ -38,12 +47,11 @@ GEM
38
47
  pry (0.13.1)
39
48
  coderay (~> 1.1)
40
49
  method_source (~> 1.0)
41
- pry-byebug (3.9.0)
42
- byebug (~> 11.0)
43
- pry (~> 0.13.0)
44
50
  rainbow (3.0.0)
45
51
  rake (13.0.6)
46
52
  regexp_parser (2.1.1)
53
+ reline (0.3.1)
54
+ io-console (~> 0.5)
47
55
  rexml (3.2.5)
48
56
  rspec (3.10.0)
49
57
  rspec-core (~> 3.10.0)
@@ -88,9 +96,9 @@ PLATFORMS
88
96
  x86_64-linux
89
97
 
90
98
  DEPENDENCIES
99
+ debug (>= 1.0.0)
91
100
  labrat!
92
101
  pry (~> 0.13.0)
93
- pry-byebug (>= 3.9.0)
94
102
  rake (~> 13.0)
95
103
  rspec (~> 3.0)
96
104
  rubocop (~> 1.7)
@@ -99,4 +107,4 @@ DEPENDENCIES
99
107
  rubocop-shopify
100
108
 
101
109
  BUNDLED WITH
102
- 2.2.26
110
+ 2.3.4
data/README.org CHANGED
@@ -252,8 +252,8 @@ By default, =labrat= considers a page of labels to contain only one row and
252
252
  one column, that is, a single label per page. To set up a multi-label page,
253
253
  you have to describe the number of rows and columns and the amount of the gap
254
254
  between them. The number of "rows" is counted as the number of "horizontal"
255
- set of labels after taking the page orientation into account. Likewise, the
256
- number of columns is counted as the number of "vertical" set of labels after
255
+ sets of labels after taking the page orientation into account. Likewise, the
256
+ number of columns is counted as the number of "vertical" sets of labels after
257
257
  taking the page orientation into account
258
258
 
259
259
  - ~-R~, ~--rows=NUM~ :: The number of horizontal rows of labels on a page, taking
@@ -308,7 +308,7 @@ in-line changes of font styles.
308
308
  Despite our best efforts, the vagaries of printer hardware, print drivers, and
309
309
  cosmic rays, sometimes the text of the label is not positioned correctly
310
310
  within the printable area of the label. These options allow you to nudge the
311
- print area left or right, up or down a bit to compensate for any such
311
+ print area a bit, left or right, up or down, to compensate for any such
312
312
  anomalies.
313
313
 
314
314
  - ~-x, --delta-x=DIM~ :: Left-right adjustment (positive moves right, negative
@@ -322,10 +322,11 @@ The following options control the processing of labels by =labrat=.
322
322
  *** Starting label
323
323
  When printing onto a multi-label page, some of the labels may have already
324
324
  been used. In that case, the ~--start-label~ option allows you to tell
325
- =labrat= to start printing at some later label on the page. The label
326
- positions are numbered from 1 up to the number of labels per page (i.e., rows
327
- times columns) from left to right and down the page. If you want to print a
328
- sheet that shows the label numbers, see the ~-T~ template option below.
325
+ =labrat= to start printing at some later label on the first page. This option
326
+ has no impact on pages after the first. The label positions are numbered from
327
+ 1 up to the number of labels per page (i.e., rows times columns) from left to
328
+ right and down the page. If you want to print a sheet that shows the label
329
+ numbers, see the ~-T~ template option below.
329
330
 
330
331
  - ~-S NUM~, ~--start-label=NUM~ :: Start printing at label number NUM (starting
331
332
  at 1, left-to-right, top-to-bottom) within first page only. Later pages
data/labrat.gemspec CHANGED
@@ -8,7 +8,24 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Daniel E. Doherty"]
9
9
  spec.email = ["ded-labrat@ddoherty.net"]
10
10
 
11
- spec.summary = "Simple command-line label printer."
11
+ spec.summary = "Command-line and Emacs label print software."
12
+ spec.description = <<~DESC
13
+
14
+ Labrat is a linux command-line program for quickly printing labels. Labrat uses
15
+ the wonderful Prawn gem to generate PDF files with label formatting in mind. With
16
+ labrat properly configured, printing a label is as simple as:
17
+
18
+ $ labrat 'Income Taxes 2021++Example Maker, Inc.'
19
+
20
+ And you will get a two-line file-folder label with the text centered. It can
21
+ print on dymo label printer rolls or Avery sheet labels. It knows the layout of
22
+ most Avery label types.
23
+
24
+ For Emacs users, labrat includes elisp code for invoking labrat from within a
25
+ buffer, providing a quick way to print labels.
26
+
27
+ DESC
28
+
12
29
  spec.homepage = "http://github.com/ddoherty03/labrat"
13
30
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
14
31
 
@@ -25,15 +42,17 @@ Gem::Specification.new do |spec|
25
42
  spec.executables = spec.files.grep(%r{\Abin/labrat}) { |f| File.basename(f) }
26
43
  spec.require_paths = ["lib"]
27
44
  spec.post_install_message = 'To install config and label database files, run [sudo] labrat-install.'
45
+ spec.add_dependency "matrix"
28
46
  spec.add_dependency "prawn", "~> 2.0"
29
47
  spec.add_dependency "activesupport"
48
+ spec.add_dependency "methodize"
30
49
  spec.add_dependency "fat_core"
31
50
 
32
51
  # Note: pry-byebug requires that pry be within the '0.13.0' version box.
33
52
  spec.add_development_dependency 'rake'
34
53
  spec.add_development_dependency 'rspec'
35
54
  spec.add_development_dependency 'pry', '~> 0.13.0'
36
- spec.add_development_dependency 'pry-byebug', '>= 3.9.0'
55
+ spec.add_development_dependency 'debug', '>= 1.0.0'
37
56
  spec.add_development_dependency 'rubocop-performance'
38
57
  spec.add_development_dependency 'rubocop-shopify'
39
58
  spec.add_development_dependency 'rubocop-rspec'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Labrat
4
- VERSION = "0.1.13"
4
+ VERSION = "0.1.14"
5
5
  end
data/lib/labrat.rb CHANGED
@@ -7,6 +7,7 @@ require 'prawn'
7
7
  require 'prawn/measurement_extensions'
8
8
  require 'optparse'
9
9
  require 'yaml'
10
+ require 'methodize'
10
11
  require 'pp'
11
12
 
12
13
  require_relative "labrat/version"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: labrat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel E. Doherty
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: matrix
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: prawn
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +52,20 @@ dependencies:
38
52
  - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: methodize
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: fat_core
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -95,19 +123,19 @@ dependencies:
95
123
  - !ruby/object:Gem::Version
96
124
  version: 0.13.0
97
125
  - !ruby/object:Gem::Dependency
98
- name: pry-byebug
126
+ name: debug
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
129
  - - ">="
102
130
  - !ruby/object:Gem::Version
103
- version: 3.9.0
131
+ version: 1.0.0
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
136
  - - ">="
109
137
  - !ruby/object:Gem::Version
110
- version: 3.9.0
138
+ version: 1.0.0
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: rubocop-performance
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +178,21 @@ dependencies:
150
178
  - - ">="
151
179
  - !ruby/object:Gem::Version
152
180
  version: '0'
153
- description:
181
+ description: |2+
182
+
183
+ Labrat is a linux command-line program for quickly printing labels. Labrat uses
184
+ the wonderful Prawn gem to generate PDF files with label formatting in mind. With
185
+ labrat properly configured, printing a label is as simple as:
186
+
187
+ $ labrat 'Income Taxes 2021++Example Maker, Inc.'
188
+
189
+ And you will get a two-line file-folder label with the text centered. It can
190
+ print on dymo label printer rolls or Avery sheet labels. It knows the layout of
191
+ most Avery label types.
192
+
193
+ For Emacs users, labrat includes elisp code for invoking labrat from within a
194
+ buffer, providing a quick way to print labels.
195
+
154
196
  email:
155
197
  - ded-labrat@ddoherty.net
156
198
  executables:
@@ -212,8 +254,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
254
  - !ruby/object:Gem::Version
213
255
  version: '0'
214
256
  requirements: []
215
- rubygems_version: 3.2.3
216
- signing_key:
257
+ rubygems_version: 3.3.3
258
+ signing_key:
217
259
  specification_version: 4
218
- summary: Simple command-line label printer.
260
+ summary: Command-line and Emacs label print software.
219
261
  test_files: []