universa 3.9.15.1 → 3.9.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/universa/umi.rb +10 -1
- data/lib/universa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea801baaa16e6c48cc33adebff87bd2fbb8154dd026a3437bafaa6594ceb608f
|
4
|
+
data.tar.gz: '08c6e2cfa3ae2c994cc331e3abd70c71eaf96f98b8b9212ac492c2f91505b155'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7cccffa44794f57649dfc1bbfa7541d4c19c6269ab1453566255bf2dad0c43ed5f30e7c8e22c8294f44eea344e04eb65ac7f4af46fdc23bca7f7910ea8b363a
|
7
|
+
data.tar.gz: c8090099a2fe713fc748d626ade4e13123f755135d0387f03e82e763574ce6140e3b9f351e01aa497624365be5e09fdd23bbc30b34b2e2e74ce804b5f292ae5b
|
data/lib/universa/umi.rb
CHANGED
@@ -49,6 +49,14 @@ module Universa
|
|
49
49
|
#
|
50
50
|
class UMI
|
51
51
|
|
52
|
+
@@session_log_path = nil
|
53
|
+
|
54
|
+
# Set the detault UMI session log path (including file) that will be used if no log parameter will be passed
|
55
|
+
# to the UMI constructor
|
56
|
+
def self.session_log_path= path
|
57
|
+
@@session_log_path = path
|
58
|
+
end
|
59
|
+
|
52
60
|
##
|
53
61
|
# Create UMI instance. It starts the private child process wit UMI server and securely connects to
|
54
62
|
# it so no other connection could occur.
|
@@ -65,7 +73,8 @@ module Universa
|
|
65
73
|
# @param [String] system expected on the remote side. 'UMI' us a universa umi server.
|
66
74
|
# @param [Boolean] convert_case it true, convert ruby style snake case `get_some_stuff()` to java style lower camel
|
67
75
|
# case `getSomeStuff()` while calling methods. Does not affect class names on {instantiate}.
|
68
|
-
def initialize(path = nil, version_check: /./, system: "UMI", log:
|
76
|
+
def initialize(path = nil, version_check: /./, system: "UMI", log: nil, convert_case: true, factory: nil)
|
77
|
+
log ||= @@session_log_path
|
69
78
|
path ||= File.expand_path(File.split(__FILE__)[0] + "/../../bin/umi/bin/umi")
|
70
79
|
@in, @out, @err, @wtr = Open3.popen3("#{path} #{log ? "-log #{log}" : ''}")
|
71
80
|
@endpoint = Farcall::Endpoint.new(
|
data/lib/universa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: universa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.15.
|
4
|
+
version: 3.9.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sergeych
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: farcall
|