universa 3.9.14 → 3.9.14.1
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/README.md +3 -1
- data/lib/universa/contract.rb +1 -1
- data/lib/universa/umi.rb +5 -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: d2915168933542d7fe792de5998d7b4de99538330d7b5be8a1a087e03757e467
|
4
|
+
data.tar.gz: 9f6a5129e4498b2e1040b7290d1607e6743579ae5adc96799e695e7b08865b29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dda3f861380d3afe695867dea33b41a9893663dd8d7ba293bf9759505bae29b4d4b4405423b4627d30bc7147d9c9b9b0a8b59628e237d7c93d3ca24f598c4bbd
|
7
|
+
data.tar.gz: e8c008f04189c65b66fd5f4dcba19b79c5785e4c3c27a25d63258da0dbe764400c57fe21644a5b3ddb2b789662a5daf9467fb03f4ff062bc1dd3244b70940a54
|
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# Universa
|
2
2
|
|
3
|
-
>
|
3
|
+
> beta state: direct full access to Java API ready for test, started adapter of remote objects - syntax sugar
|
4
4
|
for direct access to remote objects.
|
5
5
|
|
6
|
+
__attention__ since this release version numbers match the Universa Core library version included.
|
7
|
+
|
6
8
|
This is an under-construction official gem from [Universa][universa] to facilitate access to the
|
7
9
|
Java library using Universa's UMI protocol and Universa client services.
|
8
10
|
|
data/lib/universa/contract.rb
CHANGED
@@ -238,7 +238,7 @@ module Universa
|
|
238
238
|
# Helper for many token-like contracts containing state.data.amount
|
239
239
|
# @return [BigDecimal] amount or nil
|
240
240
|
def amount
|
241
|
-
v = state[:amount] and BigDecimal
|
241
|
+
v = state[:amount] and BigDecimal(v.to_s)
|
242
242
|
end
|
243
243
|
|
244
244
|
# Write helper for many token-like contracts containing state.data.amount. Saves value
|
data/lib/universa/umi.rb
CHANGED
@@ -241,7 +241,7 @@ module Universa
|
|
241
241
|
|
242
242
|
# convert ruby arguments array to corresponding UMI values
|
243
243
|
def prepare_args args
|
244
|
-
raise "pp bug" if args == [:pretty_print] # this often happens
|
244
|
+
raise "pp bug" if args == [:pretty_print] # this often happens while tracing
|
245
245
|
args.map {|x| prepare x}
|
246
246
|
end
|
247
247
|
|
@@ -270,6 +270,10 @@ module Universa
|
|
270
270
|
when RemoteAdapter
|
271
271
|
# this need special treatment with direct call:
|
272
272
|
x.__getobj__._as_umi_arg(self)
|
273
|
+
when Hash
|
274
|
+
result = {}
|
275
|
+
x.each { |k,v| result[k] = prepare(v)}
|
276
|
+
result
|
273
277
|
else
|
274
278
|
x
|
275
279
|
end
|
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.14
|
4
|
+
version: 3.9.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sergeych
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: farcall
|