udrs 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: e4794ca81b2f3ee52215f6f3f87b2cb74cc0f21e
4
- data.tar.gz: 03107ce7b20b089c42b1a6f4e1f09ce44ba4814f
3
+ metadata.gz: 2208a37caa9a03f24e0267951dec69de7a3d76ed
4
+ data.tar.gz: e551ad03d1ec54006215c008d81bb75e54ad12f7
5
5
  SHA512:
6
- metadata.gz: c2500cb3ff03644a35b1427f548530456b2fe9aa2a4cd79382f0738d35da0745dea0b4bf84ea63f58542bed56048638453c56475fb99b874c3c9de313e19ca0c
7
- data.tar.gz: 439e27fa7ea467a13c5dd6fca3915459e4f17257893fe7e01783596639cb9d484f18950e1f81b502cfed3c900cf4cc5a08be28a043d38ba0c50deb8a3a1b7f43
6
+ metadata.gz: b00c97b6fbd1e135ac26090fc1617168bd7241d55c06bf666d7273801bf46d80d98ec62a1eba9ed1bc9314798ef6061978fd3d8e6f8af456f668f45d092f17f3
7
+ data.tar.gz: f0ab7a675e488536985b2982601a9824267257c3a712c97124496752301887278643944e54629f1c716f2d64f42d413c00b799250ed68301f0ce6c8b554ffca4
@@ -49,7 +49,7 @@ module UDRS
49
49
  @buffer << "#{ESC}p#{0.chr}#{100.chr}#{100.chr}"
50
50
 
51
51
  # Render the items
52
- @last_item = :page_end
52
+ @last_added = :page_end
53
53
  render_item(container)
54
54
  render_page_end(nil)
55
55
 
@@ -69,10 +69,8 @@ module UDRS
69
69
  ##############################
70
70
 
71
71
  def render_page_end(page_end)
72
- return if @last_item == :page_end
73
-
74
72
  # Cut the paper at page end
75
- @buffer << "\n\n\n\n\n\x1DV1\n"
73
+ @buffer << "\n\n\n\n\n#{GS}V#{1.chr}" unless @last_added == :page_end
76
74
 
77
75
  @last_item = :page_end
78
76
  end
data/lib/udrs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Udrs
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michon van Dooren
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-22 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: attribute_predicates