zebra-epl 0.0.5 → 0.0.6

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.
@@ -62,7 +62,7 @@ module Zebra
62
62
  def persist
63
63
  tempfile = Tempfile.new "zebra_label"
64
64
  dump_contents tempfile
65
- tempfile.rewind
65
+ tempfile.close
66
66
  @tempfile = tempfile
67
67
  tempfile
68
68
  end
@@ -1,5 +1,5 @@
1
1
  module Zebra
2
2
  module Epl
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
@@ -16,12 +16,7 @@ module Zebra
16
16
 
17
17
  def print(label)
18
18
  tempfile = label.persist
19
-
20
- begin
21
- send_to_printer tempfile.path
22
- ensure
23
- tempfile.close
24
- end
19
+ send_to_printer tempfile.path
25
20
  end
26
21
 
27
22
  private
@@ -107,11 +107,6 @@ describe Zebra::Epl::Label do
107
107
  label.persist.should == tempfile
108
108
  end
109
109
 
110
- it "dumps its contents to the tempfile" do
111
- tempfile.should_receive(:rewind)
112
- label.persist
113
- end
114
-
115
110
  it "sets the `tempfile` attribute" do
116
111
  label.persist
117
112
  label.tempfile.should == tempfile
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zebra-epl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-08 00:00:00.000000000 Z
12
+ date: 2014-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cups
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  segments:
162
162
  - 0
163
163
  version: '0'
164
- hash: -988489516192615375
164
+ hash: 571588056673620876
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements:
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  segments:
171
171
  - 0
172
172
  version: '0'
173
- hash: -988489516192615375
173
+ hash: 571588056673620876
174
174
  requirements: []
175
175
  rubyforge_project:
176
176
  rubygems_version: 1.8.24