thorsson_cups 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/cups.c +2 -1
  2. 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;
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 17
9
- version: 0.0.17
8
+ - 18
9
+ version: 0.0.18
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan Turkovic