pjl 1.1 → 1.2.2

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
- SHA1:
3
- metadata.gz: 6e529424d3227987169bcd9a06cac0f672532d42
4
- data.tar.gz: 079f31b129672a1dbf6975a4c63a734cb999a31d
2
+ SHA256:
3
+ metadata.gz: 64da9b59d4edfc301648f7da605cc066b0240dc8472737738924e0e1e514eb75
4
+ data.tar.gz: 7c2e844b585114aabfb5e4145b29c8e2d3660f0eff54bbae805b4fdd44c99e09
5
5
  SHA512:
6
- metadata.gz: 02586fd7a02cdd59030f54c04a8a66b31954c445864255696a63c8cee756701be7897148a25cde4b719868a9f799951b5c1afc5c699dd96d2d028b05aaa1a51d
7
- data.tar.gz: cb1937fb2bb4cc2f3807e9c2eeac59140570cdfd3b676438dba1afc625ad8b33b014e488ca46b2a8b40f6a1fa093f8bd5698ab5c234294c38d3636b39259de2e
6
+ metadata.gz: 489963311a279752cb12df2478123a46fda84337b0c5f123e475fac985ed47b8bd142240cb0e4e3a450aff572d1ab5decff9a6fd5e84000ce94dbcb6af73604c
7
+ data.tar.gz: 16a1023f936fb4bac4895e534667fae6c39e96f6503daa887d3fe31638dcfde76f15016bb17ebee9113bc93264e3bb8cc05a7d02f4094f0cfc75f4cc1ab99816
@@ -1,4 +1,4 @@
1
- #!/usr/local/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  #
4
4
  # ifcanon -- input filter for Canon printer
@@ -19,13 +19,14 @@ class FileAppl < PjlAppl
19
19
  def run
20
20
  File.open output_path, "w" do |f|
21
21
  f.puts $stdin.read
22
+ f.chmod 0666
22
23
  end
23
24
  end
24
25
 
25
26
  private
26
27
 
27
28
  def output_path
28
- File.directory? OUTDIR or Dir.mkdir! OUTDIR
29
+ File.directory? OUTDIR or Dir.mkdir! OUTDIR, 0777
29
30
  timestamp = Time.now.strftime "%Y%m%d-%H%M%S"
30
31
  File.join OUTDIR, "lpd-job-#@login@#@host-#{timestamp}-#$$"
31
32
  end
@@ -1,4 +1,4 @@
1
- #!/usr/local/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  #
4
4
  # ifkyocera -- input filter kyocera printer
data/lib/pjl.rb CHANGED
@@ -121,5 +121,11 @@ module PJL
121
121
  puts cmd
122
122
  end
123
123
 
124
+ def system *args
125
+ unless super then
126
+ raise "#{args.first} terminated unsuccessful: #$?"
127
+ end
128
+ end
129
+
124
130
  end
125
131
 
@@ -5,7 +5,7 @@
5
5
  module PJL
6
6
 
7
7
  NAME = "pjl"
8
- VERSION = "1.1".freeze
8
+ VERSION = "1.2.2".freeze
9
9
 
10
10
  SUMMARY = "PJL generation"
11
11
 
@@ -13,7 +13,7 @@ module PJL
13
13
  Write PJL (Printer Job Language) commands from a Ruby program.
14
14
  EOT
15
15
 
16
- COPYRIGHT = "(C) 2013-2016 Bertram Scharpf"
16
+ COPYRIGHT = "(C) 2013-2018 Bertram Scharpf"
17
17
  LICENSE = "BSD-2-Clause"
18
18
  AUTHOR = "Bertram Scharpf <software@bertram-scharpf.de>"
19
19
  TEAM = [ "Bertram Scharpf"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pjl
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bertram Scharpf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-09 00:00:00.000000000 Z
11
+ date: 2019-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appl
@@ -24,8 +24,9 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- description: |
28
- Write PJL (Printer Job Language) commands from a Ruby program.
27
+ description: 'Write PJL (Printer Job Language) commands from a Ruby program.
28
+
29
+ '
29
30
  email: Bertram Scharpf <software@bertram-scharpf.de>
30
31
  executables: []
31
32
  extensions: []
@@ -68,8 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
69
  version: '0'
69
70
  requirements:
70
71
  - Some other tools from the same author
71
- rubyforge_project: NONE
72
- rubygems_version: 2.6.4
72
+ rubygems_version: 3.0.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: PJL generation