self_msgproto 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/self_msgproto/acl.cpp +4 -1
- data/lib/self_msgproto/version.rb +1 -1
- data/test/unit/test_acl.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92de4efe71d9d560fd6248b80b9216df8a607d7b7c3890834d6e7b3b19da24f8
|
4
|
+
data.tar.gz: 1aea72d9ccd7b02ae8ef2111f1902ddd9eff8858710111b9f4675ef13d0daefc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abeedc01c37d7d9e19981ea17253eabbc764cb1a24a8dce802fa1e2bf1de0575df03ae79e8215931a6061215efba7f670cc4e8f0a858031e7f222c49d0dab054
|
7
|
+
data.tar.gz: cb923f0a7d6fd4b7794aefa5d8b67ad08b91af728bd48bc3d9b08b8879b99dcbb5c12648069d847e8aeba03d1f993a76b48ebdb60a0ab5300fa0f328b367caae
|
data/ext/self_msgproto/acl.cpp
CHANGED
@@ -63,17 +63,20 @@ VALUE acl_to_fb(VALUE self)
|
|
63
63
|
char *idstr = RSTRING_PTR(idv);
|
64
64
|
|
65
65
|
VALUE commandv = rb_ivar_get(self, rb_intern("@command"));
|
66
|
-
|
66
|
+
int64_t commandint = NUM2INT(commandv);
|
67
67
|
|
68
68
|
ACLCommand command;
|
69
69
|
|
70
70
|
switch(commandint) {
|
71
71
|
case 0:
|
72
72
|
command = ACLCommand_LIST;
|
73
|
+
break;
|
73
74
|
case 1:
|
74
75
|
command = ACLCommand_PERMIT;
|
76
|
+
break;
|
75
77
|
case 2:
|
76
78
|
command = ACLCommand_REVOKE;
|
79
|
+
break;
|
77
80
|
default:
|
78
81
|
rb_raise(rb_eStandardError, "acl command is invalid");
|
79
82
|
}
|
data/test/unit/test_acl.rb
CHANGED