murmur-rpc 0.0.1 → 0.0.2
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/Rakefile +1 -1
- data/lib/{murmur-rpc.rb → murmur.rb} +1 -1
- data/vendor/ice/Murmur.ice +20 -2
- data/vendor/ice/Murmur.rb +37 -1
- metadata +27 -14
- /data/{README.rdoc → README.textile} +0 -0
data/Rakefile
CHANGED
data/vendor/ice/Murmur.ice
CHANGED
|
@@ -165,7 +165,7 @@ module Murmur
|
|
|
165
165
|
/** Reason for ban. */
|
|
166
166
|
string reason;
|
|
167
167
|
/** Date ban was applied in unix time format. */
|
|
168
|
-
|
|
168
|
+
int start;
|
|
169
169
|
/** Duration of ban. */
|
|
170
170
|
int duration;
|
|
171
171
|
};
|
|
@@ -237,6 +237,8 @@ module Murmur
|
|
|
237
237
|
exception InvalidTextureException extends MurmurException {};
|
|
238
238
|
/** This is thrown when you supply an invalid callback. */
|
|
239
239
|
exception InvalidCallbackException extends MurmurException {};
|
|
240
|
+
/** This is thrown when you supply the wrong secret in the calling context. */
|
|
241
|
+
exception InvalidSecretException extends MurmurException {};
|
|
240
242
|
|
|
241
243
|
/** Callback interface for servers. You can supply an implementation of this to receive notification
|
|
242
244
|
* messages from the server.
|
|
@@ -481,6 +483,12 @@ module Murmur
|
|
|
481
483
|
*/
|
|
482
484
|
idempotent ChannelMap getChannels() throws ServerBootedException;
|
|
483
485
|
|
|
486
|
+
/** Fetch certificate of user. This returns the complete certificate chain of a user.
|
|
487
|
+
* @param session Connection ID of user. See [User::session].
|
|
488
|
+
* @return Certificate list of user.
|
|
489
|
+
*/
|
|
490
|
+
idempotent CertificateList getCertificateList(int session) throws ServerBootedException, InvalidSessionException;
|
|
491
|
+
|
|
484
492
|
/** Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server
|
|
485
493
|
* as a tree. This is primarily used for viewing the state of the server on a webpage.
|
|
486
494
|
* @return Recursive tree of all channels and connected users.
|
|
@@ -616,7 +624,7 @@ module Murmur
|
|
|
616
624
|
idempotent void removeUserFromGroup(int channelid, int session, string group) throws ServerBootedException, InvalidChannelException, InvalidSessionException;
|
|
617
625
|
|
|
618
626
|
/** Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target".
|
|
619
|
-
* This is intended for context groups.
|
|
627
|
+
* To remove a redirect pass an empty target string. This is intended for context groups.
|
|
620
628
|
* @param session Connection ID of user. See [User::session].
|
|
621
629
|
* @param source Group name to redirect from.
|
|
622
630
|
* @param target Group name to redirect to.
|
|
@@ -682,6 +690,11 @@ module Murmur
|
|
|
682
690
|
* @param tex Texture to set for the user, or an empty texture to remove the existing texture.
|
|
683
691
|
*/
|
|
684
692
|
idempotent void setTexture(int userid, Texture tex) throws ServerBootedException, InvalidUserException, InvalidTextureException;
|
|
693
|
+
|
|
694
|
+
/** Get virtual server uptime.
|
|
695
|
+
* @return Uptime of the virtual server in seconds
|
|
696
|
+
*/
|
|
697
|
+
idempotent int getUptime() throws ServerBootedException;
|
|
685
698
|
};
|
|
686
699
|
|
|
687
700
|
/** Callback interface for Meta. You can supply an implementation of this to recieve notifications
|
|
@@ -760,5 +773,10 @@ module Murmur
|
|
|
760
773
|
* @param cb Callback interface to be removed.
|
|
761
774
|
*/
|
|
762
775
|
void removeCallback(MetaCallback *cb) throws InvalidCallbackException;
|
|
776
|
+
|
|
777
|
+
/** Get murmur uptime.
|
|
778
|
+
* @return Uptime of murmur in seconds
|
|
779
|
+
*/
|
|
780
|
+
idempotent int getUptime();
|
|
763
781
|
};
|
|
764
782
|
};
|
data/vendor/ice/Murmur.rb
CHANGED
|
@@ -393,7 +393,7 @@ module Murmur
|
|
|
393
393
|
["name", ::Ice::T_string],
|
|
394
394
|
["_hash", ::Ice::T_string],
|
|
395
395
|
["reason", ::Ice::T_string],
|
|
396
|
-
["start", ::Ice::
|
|
396
|
+
["start", ::Ice::T_int],
|
|
397
397
|
["duration", ::Ice::T_int]
|
|
398
398
|
])
|
|
399
399
|
end
|
|
@@ -845,6 +845,24 @@ module Murmur
|
|
|
845
845
|
InvalidCallbackException::ICE_TYPE = T_InvalidCallbackException
|
|
846
846
|
end
|
|
847
847
|
|
|
848
|
+
if not defined?(::Murmur::InvalidSecretException)
|
|
849
|
+
class InvalidSecretException < ::Murmur::MurmurException
|
|
850
|
+
def initialize
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
def to_s
|
|
854
|
+
'Murmur::InvalidSecretException'
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
def inspect
|
|
858
|
+
return ::Ice::__stringifyException(self)
|
|
859
|
+
end
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
T_InvalidSecretException = ::Ice::__defineException('::Murmur::InvalidSecretException', InvalidSecretException, ::Murmur::T_MurmurException, [])
|
|
863
|
+
InvalidSecretException::ICE_TYPE = T_InvalidSecretException
|
|
864
|
+
end
|
|
865
|
+
|
|
848
866
|
if not defined?(::Murmur::ServerCallback_mixin)
|
|
849
867
|
module ServerCallback_mixin
|
|
850
868
|
include ::Ice::Object_mixin
|
|
@@ -1200,6 +1218,7 @@ module Murmur
|
|
|
1200
1218
|
# def getLog(first, last, current=nil)
|
|
1201
1219
|
# def getUsers(current=nil)
|
|
1202
1220
|
# def getChannels(current=nil)
|
|
1221
|
+
# def getCertificateList(session, current=nil)
|
|
1203
1222
|
# def getTree(current=nil)
|
|
1204
1223
|
# def getBans(current=nil)
|
|
1205
1224
|
# def setBans(bans, current=nil)
|
|
@@ -1230,6 +1249,7 @@ module Murmur
|
|
|
1230
1249
|
# def verifyPassword(name, pw, current=nil)
|
|
1231
1250
|
# def getTexture(userid, current=nil)
|
|
1232
1251
|
# def setTexture(userid, tex, current=nil)
|
|
1252
|
+
# def getUptime(current=nil)
|
|
1233
1253
|
|
|
1234
1254
|
def inspect
|
|
1235
1255
|
::Ice::__stringify(self, T_Server)
|
|
@@ -1304,6 +1324,10 @@ module Murmur
|
|
|
1304
1324
|
Server_mixin::OP_getChannels.invoke(self, [], _ctx)
|
|
1305
1325
|
end
|
|
1306
1326
|
|
|
1327
|
+
def getCertificateList(session, _ctx=nil)
|
|
1328
|
+
Server_mixin::OP_getCertificateList.invoke(self, [session], _ctx)
|
|
1329
|
+
end
|
|
1330
|
+
|
|
1307
1331
|
def getTree(_ctx=nil)
|
|
1308
1332
|
Server_mixin::OP_getTree.invoke(self, [], _ctx)
|
|
1309
1333
|
end
|
|
@@ -1423,6 +1447,10 @@ module Murmur
|
|
|
1423
1447
|
def setTexture(userid, tex, _ctx=nil)
|
|
1424
1448
|
Server_mixin::OP_setTexture.invoke(self, [userid, tex], _ctx)
|
|
1425
1449
|
end
|
|
1450
|
+
|
|
1451
|
+
def getUptime(_ctx=nil)
|
|
1452
|
+
Server_mixin::OP_getUptime.invoke(self, [], _ctx)
|
|
1453
|
+
end
|
|
1426
1454
|
end
|
|
1427
1455
|
class ServerPrx < ::Ice::ObjectPrx
|
|
1428
1456
|
include ServerPrx_mixin
|
|
@@ -1462,6 +1490,7 @@ module Murmur
|
|
|
1462
1490
|
Server_mixin::OP_getLog = ::Ice::__defineOperation('getLog', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [::Ice::T_int, ::Ice::T_int], [], ::Murmur::T_LogList, [])
|
|
1463
1491
|
Server_mixin::OP_getUsers = ::Ice::__defineOperation('getUsers', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [], [], ::Murmur::T_UserMap, [::Murmur::T_ServerBootedException])
|
|
1464
1492
|
Server_mixin::OP_getChannels = ::Ice::__defineOperation('getChannels', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [], [], ::Murmur::T_ChannelMap, [::Murmur::T_ServerBootedException])
|
|
1493
|
+
Server_mixin::OP_getCertificateList = ::Ice::__defineOperation('getCertificateList', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [::Ice::T_int], [], ::Murmur::T_CertificateList, [::Murmur::T_ServerBootedException, ::Murmur::T_InvalidSessionException])
|
|
1465
1494
|
Server_mixin::OP_getTree = ::Ice::__defineOperation('getTree', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [], [], ::Murmur::T_Tree, [::Murmur::T_ServerBootedException])
|
|
1466
1495
|
Server_mixin::OP_getBans = ::Ice::__defineOperation('getBans', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [], [], ::Murmur::T_BanList, [::Murmur::T_ServerBootedException])
|
|
1467
1496
|
Server_mixin::OP_setBans = ::Ice::__defineOperation('setBans', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [::Murmur::T_BanList], [], nil, [::Murmur::T_ServerBootedException])
|
|
@@ -1492,6 +1521,7 @@ module Murmur
|
|
|
1492
1521
|
Server_mixin::OP_verifyPassword = ::Ice::__defineOperation('verifyPassword', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [::Ice::T_string, ::Ice::T_string], [], ::Ice::T_int, [::Murmur::T_ServerBootedException])
|
|
1493
1522
|
Server_mixin::OP_getTexture = ::Ice::__defineOperation('getTexture', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [::Ice::T_int], [], ::Murmur::T_Texture, [::Murmur::T_ServerBootedException, ::Murmur::T_InvalidUserException])
|
|
1494
1523
|
Server_mixin::OP_setTexture = ::Ice::__defineOperation('setTexture', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [::Ice::T_int, ::Murmur::T_Texture], [], nil, [::Murmur::T_ServerBootedException, ::Murmur::T_InvalidUserException, ::Murmur::T_InvalidTextureException])
|
|
1524
|
+
Server_mixin::OP_getUptime = ::Ice::__defineOperation('getUptime', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [], [], ::Ice::T_int, [::Murmur::T_ServerBootedException])
|
|
1495
1525
|
end
|
|
1496
1526
|
|
|
1497
1527
|
if not defined?(::Murmur::MetaCallback_mixin)
|
|
@@ -1587,6 +1617,7 @@ module Murmur
|
|
|
1587
1617
|
# def getVersion(current=nil)
|
|
1588
1618
|
# def addCallback(cb, current=nil)
|
|
1589
1619
|
# def removeCallback(cb, current=nil)
|
|
1620
|
+
# def getUptime(current=nil)
|
|
1590
1621
|
|
|
1591
1622
|
def inspect
|
|
1592
1623
|
::Ice::__stringify(self, T_Meta)
|
|
@@ -1632,6 +1663,10 @@ module Murmur
|
|
|
1632
1663
|
def removeCallback(cb, _ctx=nil)
|
|
1633
1664
|
Meta_mixin::OP_removeCallback.invoke(self, [cb], _ctx)
|
|
1634
1665
|
end
|
|
1666
|
+
|
|
1667
|
+
def getUptime(_ctx=nil)
|
|
1668
|
+
Meta_mixin::OP_getUptime.invoke(self, [], _ctx)
|
|
1669
|
+
end
|
|
1635
1670
|
end
|
|
1636
1671
|
class MetaPrx < ::Ice::ObjectPrx
|
|
1637
1672
|
include MetaPrx_mixin
|
|
@@ -1664,5 +1699,6 @@ module Murmur
|
|
|
1664
1699
|
Meta_mixin::OP_getVersion = ::Ice::__defineOperation('getVersion', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [], [::Ice::T_int, ::Ice::T_int, ::Ice::T_int, ::Ice::T_string], nil, [])
|
|
1665
1700
|
Meta_mixin::OP_addCallback = ::Ice::__defineOperation('addCallback', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, true, [::Murmur::T_MetaCallbackPrx], [], nil, [::Murmur::T_InvalidCallbackException])
|
|
1666
1701
|
Meta_mixin::OP_removeCallback = ::Ice::__defineOperation('removeCallback', ::Ice::OperationMode::Normal, ::Ice::OperationMode::Normal, true, [::Murmur::T_MetaCallbackPrx], [], nil, [::Murmur::T_InvalidCallbackException])
|
|
1702
|
+
Meta_mixin::OP_getUptime = ::Ice::__defineOperation('getUptime', ::Ice::OperationMode::Idempotent, ::Ice::OperationMode::Idempotent, true, [], [], ::Ice::T_int, [])
|
|
1667
1703
|
end
|
|
1668
1704
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: murmur-rpc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 0
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.0.2
|
|
5
10
|
platform: ruby
|
|
6
11
|
authors:
|
|
7
12
|
- Brian Stolz
|
|
@@ -9,19 +14,23 @@ autorequire:
|
|
|
9
14
|
bindir: bin
|
|
10
15
|
cert_chain: []
|
|
11
16
|
|
|
12
|
-
date: 2010-
|
|
17
|
+
date: 2010-12-28 00:00:00 -08:00
|
|
13
18
|
default_executable:
|
|
14
19
|
dependencies:
|
|
15
20
|
- !ruby/object:Gem::Dependency
|
|
16
21
|
name: rspec
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
prerelease: false
|
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
20
24
|
requirements:
|
|
21
25
|
- - "="
|
|
22
26
|
- !ruby/object:Gem::Version
|
|
27
|
+
segments:
|
|
28
|
+
- 1
|
|
29
|
+
- 3
|
|
30
|
+
- 0
|
|
23
31
|
version: 1.3.0
|
|
24
|
-
|
|
32
|
+
type: :development
|
|
33
|
+
version_requirements: *id001
|
|
25
34
|
description: RPC interface for Murmur
|
|
26
35
|
email: brian@tecnobrat.com
|
|
27
36
|
executables: []
|
|
@@ -29,14 +38,14 @@ executables: []
|
|
|
29
38
|
extensions: []
|
|
30
39
|
|
|
31
40
|
extra_rdoc_files:
|
|
32
|
-
- README.
|
|
41
|
+
- README.textile
|
|
33
42
|
files:
|
|
34
|
-
- README.
|
|
43
|
+
- README.textile
|
|
35
44
|
- Rakefile
|
|
36
45
|
- lib/interfaces/ice.rb
|
|
37
|
-
- lib/murmur
|
|
38
|
-
- vendor/ice/Murmur.ice
|
|
46
|
+
- lib/murmur.rb
|
|
39
47
|
- vendor/ice/Murmur.rb
|
|
48
|
+
- vendor/ice/Murmur.ice
|
|
40
49
|
has_rdoc: true
|
|
41
50
|
homepage: http://github.com/tecnobrat/murmur-rpc
|
|
42
51
|
licenses: []
|
|
@@ -47,25 +56,29 @@ rdoc_options:
|
|
|
47
56
|
- --title
|
|
48
57
|
- Murmur Ruby RPC
|
|
49
58
|
- --main
|
|
50
|
-
- README.
|
|
59
|
+
- README.textile
|
|
51
60
|
require_paths:
|
|
52
61
|
- lib
|
|
53
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
63
|
requirements:
|
|
55
64
|
- - ">="
|
|
56
65
|
- !ruby/object:Gem::Version
|
|
66
|
+
segments:
|
|
67
|
+
- 1
|
|
68
|
+
- 8
|
|
69
|
+
- 6
|
|
57
70
|
version: 1.8.6
|
|
58
|
-
version:
|
|
59
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
72
|
requirements:
|
|
61
73
|
- - ">="
|
|
62
74
|
- !ruby/object:Gem::Version
|
|
75
|
+
segments:
|
|
76
|
+
- 0
|
|
63
77
|
version: "0"
|
|
64
|
-
version:
|
|
65
78
|
requirements: []
|
|
66
79
|
|
|
67
80
|
rubyforge_project:
|
|
68
|
-
rubygems_version: 1.3.
|
|
81
|
+
rubygems_version: 1.3.6
|
|
69
82
|
signing_key:
|
|
70
83
|
specification_version: 3
|
|
71
84
|
summary: RPC interface for Murmur
|
|
File without changes
|