sapos-print 1.0.4 → 1.0.5

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
  SHA256:
3
- metadata.gz: a5ae50c99358e7e570f090331cebf43325b47db304130f515ea43dd7ef645059
4
- data.tar.gz: baf953a2bcadfde4bd77f6a92a0bc79711ce2d30ef93fb4341e6d3b48060e64f
3
+ metadata.gz: 2203b37a5896bdfef0ef71bd913dfd1a461fd9c5ee4c7a87205d864043aa1a7b
4
+ data.tar.gz: 5b241d186803fa7d09814390fa8b941b2e943d22c6be18b2c057a1d6b739d298
5
5
  SHA512:
6
- metadata.gz: 6f52dda19cfd1b5b8929a47557244677a1ccc9b694002bc6cd6f2045b92f1b650b8047745857a792f3cc84e1cd253d6a019141e092182e44bfd8d19bdd2a65b9
7
- data.tar.gz: 8fa1b168173d8356e013920a6ae0a291dd6c456faf298e0b5261c8e521ff86e8b9389ca3d6da9ca0eb9d093d542df5cfa2b15291c2b30b613396cab78d2d0681
6
+ metadata.gz: c8d56b32df32d081146bec0cf5195d2df5c19596c90e84677275f2c4c37d2b8950c359dc6474e4489dc8d89f0352a630f818fd5f608efbe196a492db2c59f184
7
+ data.tar.gz: 52b50bdcc53db8ea52df802e14ce6d86863d5ca073fa50da38860cc188495e6b8422c1ce07634e0a3387ccc69beb2d4ae2bad35e1ed8b194d1af6e527d7c83cc
@@ -89,7 +89,9 @@ module Sapos
89
89
  return true
90
90
 
91
91
  when 'windows'
92
- command = "COPY "+'"'+opts[:file].to_s.gsub("/","\\")+'"'+'"\\\\%COMPUTERNAME%\\'+@config.printer
92
+ #command = "copy" + ' "' + filename + '" ' + '"\\\\%COMPUTERNAME%\\'+"TM"
93
+ filename = opts[:file].to_s.gsub("/","\\")
94
+ command = "COPY " + '"' + filename + '" ' + '"\\\\%COMPUTERNAME%\\' + @config.printer
93
95
  #command = "copy #{opts[:file]} "+'"\\\\%COMPUTERNAME%\\'+@config.printer
94
96
  if !system(command)
95
97
  puts "Not executed"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sapos
4
4
  module Print
5
- VERSION = "1.0.4"
5
+ VERSION = "1.0.5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sapos-print
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josef Sauter