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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 455360d34536d16c8bd4d228e882bc9a160707fadf9c5317cab5103da8bef451
4
- data.tar.gz: 327c3f941d6605f2b327379433ad81813ffacdaa839537deaaf9341cabf97c2f
3
+ metadata.gz: ea801baaa16e6c48cc33adebff87bd2fbb8154dd026a3437bafaa6594ceb608f
4
+ data.tar.gz: '08c6e2cfa3ae2c994cc331e3abd70c71eaf96f98b8b9212ac492c2f91505b155'
5
5
  SHA512:
6
- metadata.gz: '096273a60364a67a151162bc0c54077a11ec147741fd8222b8063b3f340ca34268145b92f864bae98e09d63fc6afe3b8d90667ae711a3b6975c7e6603b608f7e'
7
- data.tar.gz: 9526c94f01858b10a6eeaadc2f62bd6a376603c000a0f78a60ae4781f701127863cf5aa3fe971314bbb41e8bcbb4b93ab396126a4dbce8c0f0254ae0af8b8e78
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: 'sessionlog.txt', convert_case: true, factory: nil)
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(
@@ -1,4 +1,4 @@
1
1
  module Universa
2
2
  # Current gem version
3
- VERSION = "3.9.15.1"
3
+ VERSION = "3.9.15.2"
4
4
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2019-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: farcall