dtr_core 0.8.0 → 0.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfbb64221cf4951c057d70eebcfb02cfb6c26930db47e47e8b56b2d02619631b
4
- data.tar.gz: 99df8b3da4826433ceddb12930209c8bc0d55b91db84086a4485d13324a6c60f
3
+ metadata.gz: 2457b55c657b17f1c0f69183486c2dbb78ee0c7e68ed1572db089b10e285474b
4
+ data.tar.gz: e5aafcd885e48bfff0773db4ac961a48970b3f98648b3220abd29e3d34cc614c
5
5
  SHA512:
6
- metadata.gz: e158a6bdc13ea1ccd1923828b4c073c88412e7b515950c4a77bcf96d851bb0ea217c31fc68161b5a2d04cbbad49b19c76b1e7888294792eb01e1d84a1c0db7ed
7
- data.tar.gz: 64e797566826df76b489829408a3865de303e50481558844c0d51b718ae80d93ac6fb162393249d81a317b60a4963ed78c7f2b3d80cd57c1825df0890b48806c
6
+ metadata.gz: 1f7cd472023cbfe46625ba9afa0fc8d0146ccbd0b39af87bc4157ba7d58f37760f7b07c50f76e3d2be057d2cc4650312a8ef166d3e12d0a09e9e1f90395abb09
7
+ data.tar.gz: bd868a7ad8c5526624b925f5f168d828b2bafc66cc62c7d226c4f7cd59c3ff2af04e008fb7d33ecc048f8c167d8c65307b7e4d2318c4cc1df90739a2cf37b223
@@ -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, value: splitted[1].strip } if splitted.length > 1
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.0
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-23 00:00:00.000000000 Z
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.