universa 3.9.14 → 3.9.14.1

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: 3d1c925af356e902f33983285b331237f7283ed2d563521f237dc458e1bb1f9c
4
- data.tar.gz: 4dff2bbbfef40f17772e19581d88bfd46dccf832c93a88448ef2100457ec4bd7
3
+ metadata.gz: d2915168933542d7fe792de5998d7b4de99538330d7b5be8a1a087e03757e467
4
+ data.tar.gz: 9f6a5129e4498b2e1040b7290d1607e6743579ae5adc96799e695e7b08865b29
5
5
  SHA512:
6
- metadata.gz: 7e4b2ca62e620d7c53468e59d0af05777934ad816bf6694189d855648403329a179bd5535f91c4166b94fb3ba1ee660a187c412395c9f4aee55df537493f3ef2
7
- data.tar.gz: 7597eae31f40e78b8632adc4e8f916507996f9b8aee0fa3f39c91f6aa446514b40cae5cd8d9835890fc7aba460a14d981abfad8203b5497dbd1560390c53cf3b
6
+ metadata.gz: dda3f861380d3afe695867dea33b41a9893663dd8d7ba293bf9759505bae29b4d4b4405423b4627d30bc7147d9c9b9b0a8b59628e237d7c93d3ca24f598c4bbd
7
+ data.tar.gz: e8c008f04189c65b66fd5f4dcba19b79c5785e4c3c27a25d63258da0dbe764400c57fe21644a5b3ddb2b789662a5daf9467fb03f4ff062bc1dd3244b70940a54
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Universa
2
2
 
3
- > Alfa state: direct full access to Java API ready for test, started adapter of remote objects - syntax sugar
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
 
@@ -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.new(v.to_s)
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 whilte tracing
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
@@ -1,4 +1,4 @@
1
1
  module Universa
2
2
  # Current gem version
3
- VERSION = "3.9.14"
3
+ VERSION = "3.9.14.1"
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.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-22 00:00:00.000000000 Z
11
+ date: 2019-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: farcall