cups 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/cups.c +1 -1
- data/ext/extconf.rb +4 -4
- metadata +2 -2
data/ext/cups.c
CHANGED
@@ -153,7 +153,7 @@ static VALUE cups_print(VALUE self)
|
|
153
153
|
|
154
154
|
int encryption = (http_encryption_t)cupsEncryption();
|
155
155
|
http_t *http = httpConnectEncrypt (url, port, (http_encryption_t) encryption);
|
156
|
-
job_id = cupsPrintFile2(http, target, fname,
|
156
|
+
job_id = cupsPrintFile2(http, target, fname, title, num_options, options); // Do it. "rCups" should be the filename/path
|
157
157
|
//
|
158
158
|
// cupsFreeOptions(num_options, options);
|
159
159
|
|
data/ext/extconf.rb
CHANGED
@@ -5,18 +5,18 @@ unless have_library("cups") && find_executable("cups-config")
|
|
5
5
|
exit
|
6
6
|
end
|
7
7
|
|
8
|
-
def
|
8
|
+
def include_ipp_private_structures?
|
9
9
|
puts 'cups version:'
|
10
10
|
puts `cups-config --version`
|
11
|
-
`cups-config --version`.scan(/1.6/).size > 0
|
11
|
+
`cups-config --version`.scan(/1.(6|7)/).size > 0
|
12
12
|
end
|
13
13
|
|
14
14
|
cups_cflags = `cups-config --cflags`.chomp || ""
|
15
|
-
cups_cflags += ' -D_IPP_PRIVATE_STRUCTURES' if
|
15
|
+
cups_cflags += ' -D_IPP_PRIVATE_STRUCTURES' if include_ipp_private_structures?
|
16
16
|
cups_libs = `cups-config --libs`.chomp || ""
|
17
17
|
|
18
18
|
with_cflags(cups_cflags) {
|
19
19
|
with_ldflags(cups_libs) {
|
20
20
|
create_makefile("cups")
|
21
21
|
}
|
22
|
-
}
|
22
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cups
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2013-
|
15
|
+
date: 2013-12-08 00:00:00.000000000 Z
|
16
16
|
dependencies: []
|
17
17
|
description: ! ' Ruby CUPS provides a wrapper for the Common UNIX Printing System,
|
18
18
|
allowing rubyists to perform basic tasks like printer discovery, job submission
|