DrQueueRubyBindings 0.3 → 0.4.1
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/extconf.rb +1 -1
- data/ext/libdrqueue_ruby.i +6 -6
- metadata +20 -5
data/ext/extconf.rb
CHANGED
data/ext/libdrqueue_ruby.i
CHANGED
@@ -684,14 +684,14 @@ typedef unsigned char uint8_t;
|
|
684
684
|
VALUE pool_obj = rb_ary_entry(pool_list,i);
|
685
685
|
struct pool *tpool = NULL;
|
686
686
|
SWIG_ConvertPtr(pool_obj,(void **)&tpool, SWIGTYPE_p_pool, SWIG_POINTER_EXCEPTION | 0 );
|
687
|
-
request_slave_limits_pool_add(self->hwinfo.
|
687
|
+
request_slave_limits_pool_add(self->hwinfo.address,tpool->name,CLIENT);
|
688
688
|
}
|
689
689
|
int onpools = RARRAY(old_list)->len;
|
690
690
|
for (i=0;i<onpools;i++) {
|
691
691
|
VALUE pool_obj = rb_ary_entry(old_list,i);
|
692
692
|
struct pool *tpool = NULL;
|
693
693
|
SWIG_ConvertPtr(pool_obj,(void **)&tpool, SWIGTYPE_p_pool, SWIG_POINTER_EXCEPTION | 0 );
|
694
|
-
request_slave_limits_pool_remove(self->hwinfo.
|
694
|
+
request_slave_limits_pool_remove(self->hwinfo.address,tpool->name,CLIENT);
|
695
695
|
}
|
696
696
|
VALUE last_list = computer_list_pools(self);
|
697
697
|
return last_list;
|
@@ -699,14 +699,14 @@ typedef unsigned char uint8_t;
|
|
699
699
|
|
700
700
|
void request_enable (int who)
|
701
701
|
{
|
702
|
-
if (!request_slave_limits_enabled_set (self->hwinfo.
|
702
|
+
if (!request_slave_limits_enabled_set (self->hwinfo.address,1,who)) {
|
703
703
|
rb_raise(rb_eIOError,drerrno_str());
|
704
704
|
}
|
705
705
|
}
|
706
706
|
|
707
707
|
void request_disable (int who)
|
708
708
|
{
|
709
|
-
if (!request_slave_limits_enabled_set (self->hwinfo.
|
709
|
+
if (!request_slave_limits_enabled_set (self->hwinfo.address,0,who)) {
|
710
710
|
rb_raise(rb_eIOError,drerrno_str());
|
711
711
|
}
|
712
712
|
}
|
@@ -720,14 +720,14 @@ typedef unsigned char uint8_t;
|
|
720
720
|
|
721
721
|
void add_pool (char *pool_name, int who)
|
722
722
|
{
|
723
|
-
if (!request_slave_limits_pool_add(self->hwinfo.
|
723
|
+
if (!request_slave_limits_pool_add(self->hwinfo.address,pool_name,who)) {
|
724
724
|
rb_raise(rb_eIOError,drerrno_str());
|
725
725
|
}
|
726
726
|
}
|
727
727
|
|
728
728
|
void remove_pool (char *pool_name, int who)
|
729
729
|
{
|
730
|
-
if (!request_slave_limits_pool_remove(self->hwinfo.
|
730
|
+
if (!request_slave_limits_pool_remove(self->hwinfo.address,pool_name,who)) {
|
731
731
|
rb_raise(rb_eIOError,drerrno_str());
|
732
732
|
}
|
733
733
|
}
|
metadata
CHANGED
@@ -1,14 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: DrQueueRubyBindings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 13
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Andreas Schroeder
|
8
14
|
autorequire:
|
9
15
|
bindir: bin
|
10
16
|
cert_chain:
|
11
|
-
date: 2010-
|
17
|
+
date: 2010-09-29 00:00:00 +02:00
|
12
18
|
default_executable:
|
13
19
|
dependencies: []
|
14
20
|
|
@@ -23,6 +29,7 @@ extra_rdoc_files: []
|
|
23
29
|
files:
|
24
30
|
- COPYING
|
25
31
|
- ext/libdrqueue_ruby.i
|
32
|
+
- ext/extconf.rb
|
26
33
|
has_rdoc: true
|
27
34
|
homepage: http://www.drqueue.org
|
28
35
|
licenses: []
|
@@ -33,21 +40,29 @@ rdoc_options: []
|
|
33
40
|
require_paths:
|
34
41
|
- lib
|
35
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
36
44
|
requirements:
|
37
45
|
- - ">"
|
38
46
|
- !ruby/object:Gem::Version
|
47
|
+
hash: 31
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
- 0
|
51
|
+
- 0
|
39
52
|
version: 0.0.0
|
40
|
-
version:
|
41
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
42
55
|
requirements:
|
43
56
|
- - ">="
|
44
57
|
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
45
61
|
version: "0"
|
46
|
-
version:
|
47
62
|
requirements:
|
48
63
|
- Ruby bindings for DrQueue
|
49
64
|
rubyforge_project: drqueue
|
50
|
-
rubygems_version: 1.3.
|
65
|
+
rubygems_version: 1.3.7
|
51
66
|
signing_key:
|
52
67
|
specification_version: 1
|
53
68
|
summary: Ruby extension library providing an API to DrQueue
|