thecore_print_commons 0.1.13 → 0.1.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a6222c67470fd3bec7f955d0bc7f58579a3ac70
4
- data.tar.gz: be01aebb50eec29d7ca370140778f937226f3d9d
3
+ metadata.gz: 1d1c4fde6510449123598ceac273c7e84e38d89d
4
+ data.tar.gz: e094b9cec1b650395fcb28468ad5ad87cfd4e8dc
5
5
  SHA512:
6
- metadata.gz: 83eeaf6bfd6f8fffb8a4dc0a461a21b267dbbd601c6dbfb438616ec3be804aa27949297fa223aaa3ca5330c283026f3fb29b252d114823f3b7f4ea8ac2c9de3f
7
- data.tar.gz: 4d60f5533e6a590022ed5ee2e09392989867e6a216a1165958123f5b4cadd03ef0f2ae997eb72e59fc64752834a487759225bcf95393e9eb0d30b775652d04d7
6
+ metadata.gz: 0444b8d5eae6036694195dd01b338995db7026580a41b76851e0a3fdfc8552d7f2c8e00b5b9dc3288424b210ebca6e046686a52e9d393206af0609100633d995
7
+ data.tar.gz: 33964dccec1fd51ae351ff0e93ae45e95fe73bd79687d6a9358be74a71202ea83750f6beee0de2adc384ee4a6bc896c84629912eb6cd4d97b53b9559f03e0692
@@ -8,9 +8,11 @@ class PrintWorker
8
8
  # printer.close
9
9
  # else
10
10
  print_file = "/tmp/print-#{printer_cups_name}-#{Time.now.strftime '%Y%m%d%H%M%S%L'}"
11
+ puts "Creating temp file: #{print_file}"
11
12
  IO.write(print_file, text)
12
13
  # CupsPrinter.new printer_cups_name, hostname: Settings.ns(:printer_commons).cups_server
13
14
  # printer.print_data text, 'text/plain', hostname: Settings.ns(:printer_commons).cups_server
15
+ puts "Printing with lp command on #{printer_cups_name} of #{Settings.ns(:printer_commons).cups_server} "
14
16
  `lp -d "#{printer_cups_name}" -h "#{Settings.ns(:printer_commons).cups_server}" -o raw "#{print_file}"`
15
17
  File.delete print_file
16
18
  # end
@@ -1,3 +1,3 @@
1
1
  module ThecorePrintCommons
2
- VERSION = '0.1.13'.freeze
2
+ VERSION = '0.1.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_print_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni