zebra-zpl 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zebra/print_job.rb +4 -1
- data/lib/zebra/zpl/version.rb +1 -1
- data/zebra-zpl.gemspec +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11fd2f59e528085d07b09ee2edab0b96a8ee91e0
|
4
|
+
data.tar.gz: 55be58d0e727a0bd6ae36860dd7cdf0c71ed4a25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b40ba2d244d26b82de2bbfed051b405c4b114e27de1b6dcd4c8d02978d1ce4d9be3f9613b7aa3e7110448f9c74eee41c9c3e5d89047630d114a35224940b032
|
7
|
+
data.tar.gz: 4c3b07909071343f1a92322035596c6761ad5abde57f5664a01f314b2dff98f5ae431b8312538c8761854a80f26bc9b2ee528d57fd4778548bff67e591e52a06
|
data/lib/zebra/print_job.rb
CHANGED
@@ -28,8 +28,11 @@ module Zebra
|
|
28
28
|
# end
|
29
29
|
|
30
30
|
def send_to_printer(path)
|
31
|
-
puts "
|
31
|
+
puts "Sending job to #{printer} printer on #{remote_ip}"
|
32
|
+
# Try UNIX first
|
32
33
|
`lp -h #{@remote_ip} -d #{@printer} -o raw #{path}`
|
34
|
+
rescue # Must be Windows
|
35
|
+
`lpr -S #{@remote_ip} -P #{@printer} -o raw #{path}`
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
data/lib/zebra/zpl/version.rb
CHANGED
data/zebra-zpl.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["barnabasbulpett@gmail.com"]
|
11
11
|
spec.description = %q{Print labels using ZPL2 and Ruby}
|
12
12
|
spec.summary = %q{Simple DSL to create labels and send them to a Zebra printer using Ruby, ZPL2 and CUPS}
|
13
|
+
|
13
14
|
spec.homepage = "https://github.com/bbulpett/zebra-zpl"
|
14
15
|
spec.license = "MIT"
|
15
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zebra-zpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Barnabas Bulpett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cups
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
160
|
+
rubygems_version: 2.6.10
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Simple DSL to create labels and send them to a Zebra printer using Ruby,
|