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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c24a0b872315d54cdd2c50e64492d9d8a6f528d76313d2f8de78a9576900210
4
- data.tar.gz: 4fb4b6b2a2c6117434679d192d09d366ffc7a51b84cb8fcbfc85896519b68fbd
3
+ metadata.gz: 92de4efe71d9d560fd6248b80b9216df8a607d7b7c3890834d6e7b3b19da24f8
4
+ data.tar.gz: 1aea72d9ccd7b02ae8ef2111f1902ddd9eff8858710111b9f4675ef13d0daefc
5
5
  SHA512:
6
- metadata.gz: 1d3808277b22b7383a16b1927b76ba55df6df0478d376856d0491f048295fd0a50eaad574c1384f8052019ffd124444d93040c7618244c272c231977396b3d57
7
- data.tar.gz: 1c8919d5bb096524d892d3d0b34c23f301b59e46e0c1e014871f3724c4264a31aae38b26dfd117d418b919da4cc10852a7b26a61819faaee75c5293cd3168034
6
+ metadata.gz: abeedc01c37d7d9e19981ea17253eabbc764cb1a24a8dce802fa1e2bf1de0575df03ae79e8215931a6061215efba7f670cc4e8f0a858031e7f222c49d0dab054
7
+ data.tar.gz: cb923f0a7d6fd4b7794aefa5d8b67ad08b91af728bd48bc3d9b08b8879b99dcbb5c12648069d847e8aeba03d1f993a76b48ebdb60a0ab5300fa0f328b367caae
@@ -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
- uint8_t commandint = NUM2INT(commandv);
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
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SelfMsg
4
4
 
5
- VERSION="0.0.6"
5
+ VERSION="0.0.7"
6
6
 
7
7
  end
@@ -13,6 +13,9 @@ class TestMessage < Minitest::Test
13
13
  p h.type
14
14
  p h.command
15
15
  p h.payload
16
+
17
+ p h.command = SelfMsg::AclCommandPERMIT
18
+ p h.to_fb
16
19
  end
17
20
 
18
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: self_msgproto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Bevan