thorsson_cups 0.0.17 → 0.0.18
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.
- data/ext/cups.c +2 -1
- metadata +2 -2
data/ext/cups.c
CHANGED
|
@@ -58,6 +58,7 @@ static VALUE job_init(int argc, VALUE* argv, VALUE self)
|
|
|
58
58
|
rb_scan_args(argc, argv, "12", &filename, &printer, &job_options);
|
|
59
59
|
|
|
60
60
|
rb_iv_set(self, "@filename", filename);
|
|
61
|
+
rb_iv_set(self, "@url_path", rb_str_new2(cupsServer()));
|
|
61
62
|
|
|
62
63
|
if (NIL_P(job_options)) {
|
|
63
64
|
rb_iv_set(self, "@job_options", rb_hash_new());
|
|
@@ -154,7 +155,7 @@ static VALUE cups_print(VALUE self)
|
|
|
154
155
|
job_id = cupsPrintFile2(http, target, fname, "rCups", num_options, options); // Do it. "rCups" should be the filename/path
|
|
155
156
|
|
|
156
157
|
cupsFreeOptions(num_options, options);
|
|
157
|
-
|
|
158
|
+
|
|
158
159
|
rb_iv_set(self, "@job_id", INT2NUM(job_id));
|
|
159
160
|
|
|
160
161
|
return Qtrue;
|