dtr_core 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dtr_core/parser.rb +0 -6
- data/lib/dtr_core/user_defined_type.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: 2457b55c657b17f1c0f69183486c2dbb78ee0c7e68ed1572db089b10e285474b
|
4
|
+
data.tar.gz: e5aafcd885e48bfff0773db4ac961a48970b3f98648b3220abd29e3d34cc614c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f7cd472023cbfe46625ba9afa0fc8d0146ccbd0b39af87bc4157ba7d58f37760f7b07c50f76e3d2be057d2cc4650312a8ef166d3e12d0a09e9e1f90395abb09
|
7
|
+
data.tar.gz: bd868a7ad8c5526624b925f5f168d828b2bafc66cc62c7d226c4f7cd59c3ff2af04e008fb7d33ecc048f8c167d8c65307b7e4d2318c4cc1df90739a2cf37b223
|
data/lib/dtr_core/parser.rb
CHANGED
@@ -41,8 +41,6 @@ module DTRCore
|
|
41
41
|
.split(/\n\s*\*\s*\[/).map { |x| "[#{x.strip}" }
|
42
42
|
.map { |definition| DTRCore::State.from_definition(definition) }
|
43
43
|
|
44
|
-
raise 'Empty state section.' if state_definitions.empty?
|
45
|
-
|
46
44
|
@state_section ||= state_definitions
|
47
45
|
end
|
48
46
|
|
@@ -59,8 +57,6 @@ module DTRCore
|
|
59
57
|
|
60
58
|
function_definitions.reject! { |x| x.name.nil? }
|
61
59
|
|
62
|
-
raise 'Empty interface section.' if function_definitions.empty?
|
63
|
-
|
64
60
|
@interface_section ||= function_definitions
|
65
61
|
end
|
66
62
|
|
@@ -93,8 +89,6 @@ module DTRCore
|
|
93
89
|
|
94
90
|
function_definitions.reject! { |x| x.name.nil? }
|
95
91
|
|
96
|
-
raise 'Empty helpers section.' if function_definitions.empty?
|
97
|
-
|
98
92
|
@helpers_section ||= function_definitions
|
99
93
|
end
|
100
94
|
end
|
@@ -33,7 +33,7 @@ module DTRCore
|
|
33
33
|
next { name: splitted[0].strip, type: splitted[1].strip } if splitted.length > 1
|
34
34
|
|
35
35
|
splitted = x.split('=')
|
36
|
-
next { name: splitted[0].strip,
|
36
|
+
next { name: splitted[0].strip, type: splitted[1].strip } if splitted.length > 1
|
37
37
|
|
38
38
|
nil
|
39
39
|
end&.compact
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtr_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Durst
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Core smart contract intermediate language (Digicus Textual Representation)
|
14
14
|
parser.
|