thorsson_cups 0.0.20 → 0.0.22

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 -6
  2. metadata +2 -2
data/ext/cups.c CHANGED
@@ -53,17 +53,13 @@ int printer_exists(VALUE printer){
53
53
  */
54
54
  static VALUE job_init(int argc, VALUE* argv, VALUE self)
55
55
  {
56
- VALUE filename, printer, job_options, job_id;
56
+ VALUE filename, printer, job_options;
57
57
 
58
- rb_scan_args(argc, argv, "12", &filename, &printer, &job_options, &job_id);
58
+ rb_scan_args(argc, argv, "12", &filename, &printer, &job_options);
59
59
 
60
60
  rb_iv_set(self, "@filename", filename);
61
61
  rb_iv_set(self, "@url_path", rb_str_new2(cupsServer()));
62
62
 
63
- if(!NIL_P(job_id)) {
64
- rv_iv_set(self, "@job_id", NUM2INT(job_id));
65
- }
66
-
67
63
  if (NIL_P(job_options)) {
68
64
  rb_iv_set(self, "@job_options", rb_hash_new());
69
65
  } else {
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 20
9
- version: 0.0.20
8
+ - 22
9
+ version: 0.0.22
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan Turkovic