universa 3.12.0.2 → 3.12.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/umi/bin/umi +1 -1
- data/bin/umi/bin/umi.bat +1 -1
- data/bin/umi/lib/{com.icodici.common_tools-3.12.0.2.jar → com.icodici.common_tools-3.12.4.jar} +0 -0
- data/bin/umi/lib/{com.icodici.crypto-3.12.0.2.jar → com.icodici.crypto-3.12.4.jar} +0 -0
- data/bin/umi/lib/{com.icodici.umi-0.8.60.jar → com.icodici.umi-0.8.61.jar} +0 -0
- data/bin/umi/lib/{com.icodici.universa_core-3.12.0.2.jar → com.icodici.universa_core-3.12.4.jar} +0 -0
- data/lib/universa/client.rb +2 -2
- data/lib/universa/contract.rb +4 -1
- data/lib/universa/fs_store/entry.rb +1 -1
- data/lib/universa/lazy.rb +8 -1
- data/lib/universa/service.rb +1 -1
- data/lib/universa/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8df35644224d54b2a26c036cb9b68c6709964772c6d8f116f65457908803c9b3
|
4
|
+
data.tar.gz: 50d94c91700271590636f43244598629572160852507cae092c7912c3f61903d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ebdccd5cfcfe3ecaf603fb062c06e5b4ed0e5405e979c186fc2eb0edb58d3761620846fccc1d3de203ace080e0c403e0420d1645263559e1c1b4e7664467b46
|
7
|
+
data.tar.gz: e21c958a4291a7153622eb521bef75bb38c73d92661dd6a538726fed4fb42e3f7c67487d7029cc579fd821ca042dcbcf948728888144ad2922fc73707d570c77
|
data/bin/umi/bin/umi
CHANGED
@@ -344,7 +344,7 @@ declare -r lib_dir="$(realpath "${app_home}/../lib")"
|
|
344
344
|
declare -a app_mainclass=(com.icodici.farcallscala.Main)
|
345
345
|
|
346
346
|
declare -r script_conf_file="${app_home}/../conf/application.ini"
|
347
|
-
declare -r app_classpath="$lib_dir/com.icodici.umi-0.8.
|
347
|
+
declare -r app_classpath="$lib_dir/com.icodici.umi-0.8.61.jar:$lib_dir/org.scala-lang.scala-library-2.12.7.jar:$lib_dir/com.icodici.universa_core-3.12.4.jar:$lib_dir/org.yaml.snakeyaml-1.18.jar:$lib_dir/com.icodici.nanohttpd-2.1.0.jar:$lib_dir/com.icodici.common_tools-3.12.4.jar:$lib_dir/com.eclipsesource.minimal-json.minimal-json-0.9.4.jar:$lib_dir/net.java.dev.jna.jna-4.5.1.jar:$lib_dir/org.checkerframework.checker-qual-2.3.2.jar:$lib_dir/com.icodici.crypto-3.12.4.jar:$lib_dir/org.bouncycastle.bcprov-jdk15on-1.62.jar:$lib_dir/com.squareup.jnagmp.jnagmp-2.0.0.jar:$lib_dir/com.typesafe.play.play-json_2.12-2.6.10.jar:$lib_dir/com.typesafe.play.play-functional_2.12-2.6.10.jar:$lib_dir/org.scala-lang.scala-reflect-2.12.7.jar:$lib_dir/org.typelevel.macro-compat_2.12-1.1.1.jar:$lib_dir/joda-time.joda-time-2.9.9.jar:$lib_dir/com.fasterxml.jackson.core.jackson-core-2.8.11.jar:$lib_dir/com.fasterxml.jackson.core.jackson-annotations-2.8.11.jar:$lib_dir/com.fasterxml.jackson.datatype.jackson-datatype-jdk8-2.8.11.jar:$lib_dir/com.fasterxml.jackson.core.jackson-databind-2.8.11.1.jar:$lib_dir/com.fasterxml.jackson.datatype.jackson-datatype-jsr310-2.8.11.jar:$lib_dir/org.scala-sbt.ipcsocket.ipcsocket-1.0.0.jar:$lib_dir/net.java.dev.jna.jna-platform-4.5.0.jar:$lib_dir/net.sf.jopt-simple.jopt-simple-4.9.jar"
|
348
348
|
|
349
349
|
# java_cmd is overrode in process_args when -java-home is used
|
350
350
|
declare java_cmd=$(get_java_cmd)
|
data/bin/umi/bin/umi.bat
CHANGED
@@ -80,7 +80,7 @@ rem "-J" is stripped, "-D" is left as is, and everything is appended to JAVA_OPT
|
|
80
80
|
set _JAVA_PARAMS=
|
81
81
|
set _APP_ARGS=
|
82
82
|
|
83
|
-
set "APP_CLASSPATH=%APP_LIB_DIR%\com.icodici.umi-0.8.
|
83
|
+
set "APP_CLASSPATH=%APP_LIB_DIR%\com.icodici.umi-0.8.61.jar;%APP_LIB_DIR%\org.scala-lang.scala-library-2.12.7.jar;%APP_LIB_DIR%\com.icodici.universa_core-3.12.4.jar;%APP_LIB_DIR%\org.yaml.snakeyaml-1.18.jar;%APP_LIB_DIR%\com.icodici.nanohttpd-2.1.0.jar;%APP_LIB_DIR%\com.icodici.common_tools-3.12.4.jar;%APP_LIB_DIR%\com.eclipsesource.minimal-json.minimal-json-0.9.4.jar;%APP_LIB_DIR%\net.java.dev.jna.jna-4.5.1.jar;%APP_LIB_DIR%\org.checkerframework.checker-qual-2.3.2.jar;%APP_LIB_DIR%\com.icodici.crypto-3.12.4.jar;%APP_LIB_DIR%\org.bouncycastle.bcprov-jdk15on-1.62.jar;%APP_LIB_DIR%\com.squareup.jnagmp.jnagmp-2.0.0.jar;%APP_LIB_DIR%\com.typesafe.play.play-json_2.12-2.6.10.jar;%APP_LIB_DIR%\com.typesafe.play.play-functional_2.12-2.6.10.jar;%APP_LIB_DIR%\org.scala-lang.scala-reflect-2.12.7.jar;%APP_LIB_DIR%\org.typelevel.macro-compat_2.12-1.1.1.jar;%APP_LIB_DIR%\joda-time.joda-time-2.9.9.jar;%APP_LIB_DIR%\com.fasterxml.jackson.core.jackson-core-2.8.11.jar;%APP_LIB_DIR%\com.fasterxml.jackson.core.jackson-annotations-2.8.11.jar;%APP_LIB_DIR%\com.fasterxml.jackson.datatype.jackson-datatype-jdk8-2.8.11.jar;%APP_LIB_DIR%\com.fasterxml.jackson.core.jackson-databind-2.8.11.1.jar;%APP_LIB_DIR%\com.fasterxml.jackson.datatype.jackson-datatype-jsr310-2.8.11.jar;%APP_LIB_DIR%\org.scala-sbt.ipcsocket.ipcsocket-1.0.0.jar;%APP_LIB_DIR%\net.java.dev.jna.jna-platform-4.5.0.jar;%APP_LIB_DIR%\net.sf.jopt-simple.jopt-simple-4.9.jar"
|
84
84
|
set "APP_MAIN_CLASS=com.icodici.farcallscala.Main"
|
85
85
|
set "SCRIPT_CONF_FILE=%APP_HOME%\conf\application.ini"
|
86
86
|
|
data/bin/umi/lib/{com.icodici.common_tools-3.12.0.2.jar → com.icodici.common_tools-3.12.4.jar}
RENAMED
Binary file
|
Binary file
|
Binary file
|
data/bin/umi/lib/{com.icodici.universa_core-3.12.0.2.jar → com.icodici.universa_core-3.12.4.jar}
RENAMED
Binary file
|
data/lib/universa/client.rb
CHANGED
@@ -33,7 +33,7 @@ module Universa
|
|
33
33
|
# in the network topology might require fresh topology file (or upgrade the gem).
|
34
34
|
#
|
35
35
|
#
|
36
|
-
# @param [String] topology
|
36
|
+
# @param [String] topology could be name of known network (e.g. mainnet as by default) or path to a .json file
|
37
37
|
# containing some network topology, for example, obtained from some external source like telegram
|
38
38
|
# channel.
|
39
39
|
# @param [PrivateKey] private_key to connect with.
|
@@ -262,7 +262,7 @@ module Universa
|
|
262
262
|
is_approved
|
263
263
|
end
|
264
264
|
|
265
|
-
# same as {
|
265
|
+
# same as {is_pending}
|
266
266
|
def pending?
|
267
267
|
is_pending
|
268
268
|
end
|
data/lib/universa/contract.rb
CHANGED
@@ -17,7 +17,7 @@ module Universa
|
|
17
17
|
end
|
18
18
|
|
19
19
|
# Utiliy to generate keys of arbitrary length derived from passwords using PBKDF2 algorithm. Use
|
20
|
-
# {
|
20
|
+
# {derive} to produce keys from passwords in a realtively safe way (safety depends on the password strength)
|
21
21
|
class PBKDF2 < RemoteAdapter
|
22
22
|
remote_class "com.icodici.crypto.PBKDF2"
|
23
23
|
|
@@ -37,6 +37,9 @@ module Universa
|
|
37
37
|
|
38
38
|
class Parcel < RemoteAdapter
|
39
39
|
remote_class "com.icodici.universa.contract.Parcel"
|
40
|
+
|
41
|
+
static_method :of
|
42
|
+
static_method :unpack
|
40
43
|
end
|
41
44
|
|
42
45
|
class UnsContract < RemoteAdapter
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Universa::FSStore
|
2
2
|
|
3
|
-
# The {
|
3
|
+
# The {StoredContractBase} implementation to work with {FileStore}. Not finished
|
4
4
|
#
|
5
5
|
# @!method name
|
6
6
|
# @return [String] the +contract.definition.data.name+ value or nil.
|
data/lib/universa/lazy.rb
CHANGED
@@ -54,7 +54,14 @@ module Universa
|
|
54
54
|
@@lazy_creation_mutex = Mutex.new
|
55
55
|
|
56
56
|
def Lazy.included(other)
|
57
|
-
|
57
|
+
|
58
|
+
|
59
|
+
# @!method lazy(name, &block)
|
60
|
+
# Provides create lazy instance variable calculated by a provided block
|
61
|
+
# @param [String] name of the created field
|
62
|
+
# @return [string] Returns the greeting.
|
63
|
+
# @yield calculates the value for the variable
|
64
|
+
|
58
65
|
def other.lazy(name, &block)
|
59
66
|
define_method(name.to_sym) {
|
60
67
|
x = @@lazy_creation_mutex.synchronize {
|
data/lib/universa/service.rb
CHANGED
@@ -78,7 +78,7 @@ module Universa
|
|
78
78
|
# of the corresponding remote class.
|
79
79
|
# @param [Class] klass that will be
|
80
80
|
def register_proxy(klass)
|
81
|
-
|
81
|
+
klass < RemoteAdapter or raise ArgumentError, "#{klass.name} must be based on RemoteAdapter"
|
82
82
|
remote_class_name = klass.remote_class_name
|
83
83
|
raise Error, "#{remote_class_name} is already registered in Service" if @known_proxies.include?(remote_class_name)
|
84
84
|
@known_proxies[remote_class_name] = klass
|
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.12.
|
4
|
+
version: 3.12.4.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-09-
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: farcall
|
@@ -149,11 +149,11 @@ files:
|
|
149
149
|
- bin/umi/lib/com.fasterxml.jackson.core.jackson-databind-2.8.11.1.jar
|
150
150
|
- bin/umi/lib/com.fasterxml.jackson.datatype.jackson-datatype-jdk8-2.8.11.jar
|
151
151
|
- bin/umi/lib/com.fasterxml.jackson.datatype.jackson-datatype-jsr310-2.8.11.jar
|
152
|
-
- bin/umi/lib/com.icodici.common_tools-3.12.
|
153
|
-
- bin/umi/lib/com.icodici.crypto-3.12.
|
152
|
+
- bin/umi/lib/com.icodici.common_tools-3.12.4.jar
|
153
|
+
- bin/umi/lib/com.icodici.crypto-3.12.4.jar
|
154
154
|
- bin/umi/lib/com.icodici.nanohttpd-2.1.0.jar
|
155
|
-
- bin/umi/lib/com.icodici.umi-0.8.
|
156
|
-
- bin/umi/lib/com.icodici.universa_core-3.12.
|
155
|
+
- bin/umi/lib/com.icodici.umi-0.8.61.jar
|
156
|
+
- bin/umi/lib/com.icodici.universa_core-3.12.4.jar
|
157
157
|
- bin/umi/lib/com.squareup.jnagmp.jnagmp-2.0.0.jar
|
158
158
|
- bin/umi/lib/com.typesafe.play.play-functional_2.12-2.6.10.jar
|
159
159
|
- bin/umi/lib/com.typesafe.play.play-json_2.12-2.6.10.jar
|