trisulrp 3.1.7 → 3.1.8
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/trisulrp/protocol.rb +10 -8
- data/lib/trisulrp/trp.pb.rb +1 -0
- data/lib/trisulrp/trp.proto +2 -1
- data/trisulrp.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9ec7eceb754bcae4093722e2daf39ded5f038ef
|
4
|
+
data.tar.gz: 9f2e44ad8b65f18c6f1cc366f263f540efcb5897
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba2c12aca2cb5c76bcdc2f42cbc60340459252b0313d14e086f97936dd342f75e2a4b5956db40539823b23dc2a2fd0f9f5690a1fa2da45fe2010b46d436d357f
|
7
|
+
data.tar.gz: 7963b2af67bc2a50bac47a1c3c4e15c5ea1d43da7b3b2e8000331c4bac6f3343431b264a02c4b8db52e544d7d6923f0aeb3448dc02dbc87910e0a08481d7d75b
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.8
|
data/lib/trisulrp/protocol.rb
CHANGED
@@ -259,18 +259,20 @@ module TrisulRP::Protocol
|
|
259
259
|
#
|
260
260
|
# </code>
|
261
261
|
#
|
262
|
-
def get_available_time(conn)
|
262
|
+
def get_available_time(conn,timeout=-1)
|
263
263
|
|
264
264
|
from_tm=to_tm=nil
|
265
265
|
req=mk_request(TRP::Message::Command::TIMESLICES_REQUEST,
|
266
266
|
:get_total_window => true )
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
267
|
+
begin
|
268
|
+
if conn.is_a?(String)
|
269
|
+
resp = get_response_zmq(conn,req,timeout)
|
270
|
+
else
|
271
|
+
resp = get_response(conn,req)
|
272
|
+
end
|
273
|
+
rescue Exception=>ex
|
274
|
+
raise ex
|
275
|
+
end
|
274
276
|
|
275
277
|
from_tm = Time.at(resp.total_window.from.tv_sec)
|
276
278
|
to_tm = Time.at(resp.total_window.to.tv_sec)
|
data/lib/trisulrp/trp.pb.rb
CHANGED
data/lib/trisulrp/trp.proto
CHANGED
@@ -850,7 +850,8 @@ message ContextCreateRequest {
|
|
850
850
|
// ContextInfo : one or all contexts
|
851
851
|
// use is_init to prime with config
|
852
852
|
message ContextInfoRequest {
|
853
|
-
optional string context_name=1;
|
853
|
+
optional string context_name=1; // if not set all context get in
|
854
|
+
optional bool get_size_on_disk=2[default=false]; // get size on disk (expensive)
|
854
855
|
}
|
855
856
|
|
856
857
|
message ContextInfoResponse {
|
data/trisulrp.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: trisulrp 3.1.
|
5
|
+
# stub: trisulrp 3.1.8 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "trisulrp"
|
9
|
-
s.version = "3.1.
|
9
|
+
s.version = "3.1.8"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["vivek"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-09-22"
|
15
15
|
s.description = "This gem deals about the trisul remote protocol"
|
16
16
|
s.email = "vivek_rajagopal@yahoo.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trisulrp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vivek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf
|