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 +4 -4
- data/lib/udrs/renderers/escp_renderer.rb +2 -4
- data/lib/udrs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2208a37caa9a03f24e0267951dec69de7a3d76ed
|
4
|
+
data.tar.gz: e551ad03d1ec54006215c008d81bb75e54ad12f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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
|
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
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.
|
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-
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: attribute_predicates
|