udrs 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00cc7b3c48709ff730512c5d007687d3d223abc8
4
- data.tar.gz: 6dffbd95c32da4ad34c21d8980052272ffdec3c3
3
+ metadata.gz: 3d3374519f2ed65a926b1a97bd86b802b1768b74
4
+ data.tar.gz: 23dd10b0b2cc0198ef2c0f57ab2f063e912fd7a3
5
5
  SHA512:
6
- metadata.gz: aa93bccad200693c67a47bbb79f11def51367f14fb09d0ea3445bdc3a053e5419c0615cd185ee7728abb4ac4ff7b96e4644da2a907a4d53b8dbbefb61ac79dc9
7
- data.tar.gz: 4877b5f4d4ce04b87dd7f9dad8b7b31751094bfc9202de3677afc33e16c916c3069d4938824a5514052376919eede02535aa9ea885f7df07c2ff955ebbefe286
6
+ metadata.gz: 8c9f73a59c69fe4e7a6db65d28ef36baa6e9c8cef9f47e378fca833bf24aec3170923ba0faf53615290c211b22c1b7ab5a917a550f44292c3e3ce28621c0e865
7
+ data.tar.gz: 280bb5ea53a41c35cb105830983689cb89b97098639bc0f6b7b01428ff38f06c8cd9ed2c6961bfdabc54b6ec51185107f3fc63e849693411d5a870a56380bfa7
@@ -45,13 +45,13 @@ module UDRS
45
45
  apply_bold(false)
46
46
  apply_underline(:off)
47
47
 
48
+ # Open the cash drawer
49
+ @buffer << "#{ESC}p#{0.chr}#{100.chr}#{100.chr}"
50
+
48
51
  # Render the items
49
52
  render_item(container)
50
53
  render_page_end(nil)
51
54
 
52
- # Open the cash drawer
53
- @buffer << "#{ESC}p#{0.chr}#{100.chr}#{100.chr}"
54
-
55
55
  # Replace special characters
56
56
  buffer = @buffer.dup
57
57
  CHARACTER_MAP.each do |char_orig, char_new|
@@ -113,7 +113,7 @@ module UDRS
113
113
  get_pl_ph = proc do |*params|
114
114
  # From the docs:
115
115
  # pL, pH specify the number of parameters after pH as (pL + pH*256)
116
- return [params.size % 256, params.size / 256]
116
+ next [params.size % 256, params.size / 256]
117
117
  end
118
118
 
119
119
  # The way to build a single line/setting of the code
@@ -8,8 +8,6 @@ require 'barby/outputter/prawn_outputter'
8
8
  module UDRS
9
9
  module Renderers
10
10
  class PDFRenderer < Base
11
- FORMAT_TIME = '%A %-d %B %Y %H:%M (%P)'
12
-
13
11
  def render(container)
14
12
  # Create the pdf
15
13
  @pdf = Prawn::Document.new
data/lib/udrs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Udrs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michon van Dooren